Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-1147

Active checks fail to load.

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.9.0 (alpha)
    • 1.9.0 (alpha)
    • Agent (G)
    • None
    • ms windows 2003 sp2 quad dual core proc with 8gb of memory

      Active checks fail to load with "Can't open JSON object "x=""

      Below is the area of the log that details the active check refresh and subsequent failure

      5600:20091027:161816.531 refresh_active_checks('10.4.57.216',10051)
      5688:20091027:161816.531 In GetCounterName() pdhIndex:44
      5600:20091027:161816.531 Sending [

      { "request":"active checks", "host":"Server_Prod.GA016DEC"}

      ]
      5600:20091027:161816.531 Before read
      5688:20091027:161816.531 In collect_cpustat()
      5600:20091027:161816.531 Got [x=]
      5600:20091027:161816.531 In parse_list_of_checks()
      5600:20091027:161816.531 In disable_all_metrics()
      5600:20091027:161816.547 Can't parse list of active checks. Can't open JSON object "x="

      Below is the conf file used for the agent that produced the log snipped from above

      1. This is a config file for Zabbix Agent (Unix)
      2. To get more information about Zabbix, visit http://www.zabbix.com
                            1. GENERAL PARAMETERS #################
          1. Option: PidFile
      1. Name of PID file.
        #
      2. Mandatory: no
      3. Default:
      4. PidFile=/tmp/zabbix_agentd.pid
          1. Option: LogFile
      1. Name of log file.
      2. If not set, syslog is used.
        #
      3. Mandatory: no
      4. Default:
      5. LogFile=
        LogFile=F:\Logfiles\zabbix_log\zabbix_log.log
          1. Option: LogFileSize
      1. Maximum size of log file in MB.
      2. 0 - disable automatic log rotation.
        #
      3. Mandatory: no
      4. Range: 1-1024
      5. Default:
        LogFileSize=25
          1. Option: DebugLevel
      1. Specifies debug level
      2. 0 - no debug
      3. 1 - critical information
      4. 2 - error information
      5. 3 - warnings
      6. 4 - for debugging (produces lots of information)
        #
      7. Mandatory: no
      8. Default:
        DebugLevel=5
          1. Option: SourceIP
      1. Source IP address for outgoing connections.
        #
      2. Mandatory: no
      3. Default:
      4. SourceIP=
          1. Option: EnableRemoteCommands
      1. Whether remote commands from Zabbix server are allowed.
      2. 0 - not allowed
      3. 1 - allowed
        #
      4. Mandatory: no
      5. Default:
        EnableRemoteCommands=1
              1. Passive checks related
          1. Option: Server
      1. List of comma delimited IP addresses (or hostnames) of Zabbix servers.
      2. No spaces allowed. First entry is used for receiving list of and sending active checks.
      3. Note that hostnames must resolve hostname->IP address and IP address->hostname.
        #
      4. Mandatory: yes
      5. Default:
      6. Server=

      Server=10.4.57.216

          1. Option: Hostname
      1. Unique hostname.
      2. Required for active checks and must match hostname as configured on the server.
        #
      3. Default:
      4. Hostname=system.uname

      Hostname=Server_Prod.GA016DEC

          1. Option: ListenPort
      1. Agent will listen on this port for connections from the server.
        #
      2. Mandatory: no
      3. Range: 1024-32767
      4. Default:
      5. ListenPort=10050
          1. Option: ListenIP
      1. Agent will listen on the specified interface.
        #
      2. Mandatory: no
      3. Default:
      4. ListenIP=0.0.0.0
      1. ListenIP=127.0.0.1
          1. Option: DisablePassive
      1. Disable passive checks. The agent will not listen on any TCP port.
      2. Only active checks will be processed.
      3. 0 - do not disable
      4. 1 - disable
        #
      5. Mandatory: no
      6. Default:
      7. DisablePassive=0
              1. Active checks related
          1. Option: DisableActive
      1. Disable active checks. The agent will work in passive mode listening for server.
        #
      2. Mandatory: no
      3. Default:
      4. DisableActive=0
      1. DisableActive=1
          1. Option: ServerPort
      1. Server port for retrieving list of and sending active checks.
        #
      2. Mandatory: no
      3. Default:
      4. ServerPort=10051
          1. Option: RefreshActiveChecks
      1. How often list of active checks is refreshed, in seconds.
        #
      2. Mandatory: no
      3. Range: 60-3600
      4. Default:
        RefreshActiveChecks=120
          1. Option: BufferSend
      1. Do not keep data longer than N seconds in buffer.
        #
      2. Mandatory: no
      3. Range: 1-3600
      4. Default:
      5. BufferSend=5
          1. Option: BufferSize
      1. Maximum number of values in a memory buffer. The agent will send
      2. all collected data to Zabbix Server or Proxy if the buffer is full.
        #
      3. Mandatory: no
      4. Range: 1-65535
      5. Default:
      6. BufferSize=100
          1. Option: MaxLinesPerSecond
      1. Maximum number of new lines the agent will send per second to Zabbix Server
      2. or Proxy processing 'log' and 'eventlog' active checks.
      3. The provided value will be overridden by the parameter 'maxlines',
      4. provided in 'log' or 'eventlog' item key.
        #
      5. Mandatory: no
      6. Range: 1-1000
      7. Default:
      8. MaxLinesPerSecond=100
                            1. ADVANCED PARAMETERS #################
          1. Option: StartAgents
      1. Number of pre-forked instances of zabbix_agentd that process passive checks.
        #
      2. Mandatory: no
      3. Range: 1-16
      4. Default:
      5. StartAgents=3
          1. Option: Timeout
      1. Spend no more than Timeout seconds on processing
        #
      2. Mandatory: no
      3. Range: 1-30
      4. Default:
      5. Timeout=3
          1. Option: Include
      1. You may include individual files or all files in a directory in the configuration file.
        #
      2. Mandatory: no
      3. Default:
      4. Include=
      1. Include=/etc/zabbix/zabbix_agent.userparams.conf
      2. Include=/etc/zabbix/zabbix_agentd/
                  1. USER-DEFINED MONITORED PARAMETERS #######
          1. Option: UserParameter
      1. User-defined parameter to monitor. There can be several user-defined parameters.
      2. Format: UserParameter=<key>,<shell command>
      3. Note that shell command must not return empty string or EOL only.
      4. Example: UserParameter=system.test,who|wc -l
        #UserParameter=system.test,who|wc -l
          1. Set of parameters for monitoring MySQL server (v3.23.42 and later)
          2. Change -u<username> and add -p<password> if required
            #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
            #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
            #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
            #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
            #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
            #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
            #UserParameter=mysql.version,mysql -V

      #Standard Windows Custom counters
      UserParameter=Established.Port.Connections[*],netstat -na|find "$1"|find "ESTABLISHED" /c
      UserParameter=Port.Connections[*],netstat -na|find "$1" /c
      UserParameter=Number.of.Established.Connections[*],netstat -na|find "ESTABLISHED" /c
      UserParameter=Number.of.files.exist[*],dir "$1" | find "$2" /c
      UserParameter=Connections.IP_Port.state[*],netstat -na|find "$1" | find "$2" /c
      PerfCounter=CPU.usage,"\Processor(_Total)% Processor Time",10
      PerfCounter=zabbix.cpu,"\Process(zabbix_agentd)% Processor Time",10

      PerfCounter=physicaldisk.F.Avg.Disk.Queue.Length,"\physicaldisk(2 F\Avg. Disk Queue Length",10
      PerfCounter=physicaldisk.F.pcnt.Idle.Time,"\physicaldisk(2 F% Idle Time",10
      PerfCounter=physicaldisk.F.pcnt.Disk.Write.Time,"\physicaldisk(2 F% Disk Write Time",10
      PerfCounter=physicaldisk.F.pcnt.Disk.Time,"\physicaldisk(2 F% Disk Time",10
      PerfCounter=physicaldisk.F.pcnt.Disk.Read.Time,"\physicaldisk(2 F% Disk Read Time",10

      Here is information on one of the items that will produce an active check refresh failure

      It is set as type "log"
      EventLog.SQL.SAN.Issue.KAPL08022-E eventlog[application,KAPL08022-E A path error occurred] 60 7 0 ZABBIX agent (active)

      Please let me know what other information i can offer that would help.

            Unassigned Unassigned
            doublep Paul Parcell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: