Ad Widget

Collapse

"Cannot parse list of active checks"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PongLenis
    Junior Member
    • Dec 2015
    • 3

    #1

    "Cannot parse list of active checks"

    Hey guys,

    Zabbix is truly awe inspiring when it comes to features etc.
    Sadly I'm still stuck at the Zabbix server -> host part. I added several machines with what I think to be the right config. But everytime I do tail -f /var/log/zabbix/zabbix_agentd.log I keep getting the error stated in the thread title. I added the 10050 and 10051 port in my firewall (it's all internal, same IP range) but the agent isn't detected. I've only got one item per host because I'm still testing and hoping to get this working. The item is an active zabbix agent check (ping).

    Output looks like this:

    HTML Code:
      3033:20151203:152106.587 Zabbix Agent stopped. Zabbix 2.4.7 (revision 56694).
      6138:20151203:152106.696 Starting Zabbix Agent [>DNSNAMEHERE<]. Zabbix 2.4.7 (revision 56694).
      6138:20151203:152106.696 using configuration file: /etc/zabbix/zabbix_agentd.conf
      6138:20151203:152106.703 agent #0 started [main process]
      6144:20151203:152106.703 agent #1 started [collector]
      6145:20151203:152106.704 agent #2 started[listener #1]
      6146:20151203:152106.704 agent #3 started[listener #2]
      6147:20151203:152106.704 agent #4 started[listener #3]
      6148:20151203:152106.704 agent #5 started [active checks #1]
      6148:20151203:152106.705 cannot parse list of active checks:
      6148:20151203:152306.898 cannot parse list of active checks:
      6148:20151203:152506.071 cannot parse list of active checks:
    The config looks like this:

    HTML Code:
    # This is a config file for the Zabbix agent daemon (Unix)
    # To get more information about Zabbix, visit http://www.zabbix.com
    
    ############ GENERAL PARAMETERS #################
    
    ### Option: PidFile
    #	Name of PID file.
    #
    # Mandatory: no
    # Default:
    # PidFile=/tmp/zabbix_agentd.pid
    
    PidFile=/var/run/zabbix/zabbix_agentd.pid
    
    ### Option: LogFile
    #	Name of log file.
    #	If not set, syslog is used.
    #
    # Mandatory: no
    # Default:
    # LogFile=
    
    LogFile=/var/log/zabbix/zabbix_agentd.log
    
    ### Option: LogFileSize
    #	Maximum size of log file in MB.
    #	0 - disable automatic log rotation.
    #
    # Mandatory: no
    # Range: 0-1024
    # Default:
    # LogFileSize=1
    
    LogFileSize=0
    
    ### Option: DebugLevel
    #	Specifies debug level
    #	0 - basic information about starting and stopping of Zabbix processes
    #	1 - critical information
    #	2 - error information
    #	3 - warnings
    #	4 - for debugging (produces lots of information)
    #
    # Mandatory: no
    # Range: 0-4
    # Default:
    # DebugLevel=3
    
    ### Option: SourceIP
    #	Source IP address for outgoing connections.
    #
    # Mandatory: no
    # Default:
    # SourceIP=
    
    ### Option: EnableRemoteCommands
    #	Whether remote commands from Zabbix server are allowed.
    #	0 - not allowed
    #	1 - allowed
    #
    # Mandatory: no
    # Default:
    # EnableRemoteCommands=0
    
    ### Option: LogRemoteCommands
    #	Enable logging of executed shell commands as warnings.
    #	0 - disabled
    #	1 - enabled
    #
    # Mandatory: no
    # Default:
    # LogRemoteCommands=0
    
    ##### Passive checks related
    
    ### Option: Server
    #	List of comma delimited IP addresses (or hostnames) of Zabbix servers.
    #	Incoming connections will be accepted only from the hosts listed here.
    #	If IPv6 support is enabled then '127.0.0.1', '::127.0.0.1', '::ffff:127.0.0.1' are treated equally.
    #
    # Mandatory: no
    # Default:
    # Server=
    
    Server=IP OF ZABBIX SERVER HERE
    
    ### Option: ListenPort
    #	Agent will listen on this port for connections from the server.
    #
    # Mandatory: no
    # Range: 1024-32767
    # Default:
    # ListenPort=10050
    
    ### Option: ListenIP
    #	List of comma delimited IP addresses that the agent should listen on.
    #	First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
    #
    # Mandatory: no
    # Default:
    # ListenIP=0.0.0.0
    
    ### Option: StartAgents
    #	Number of pre-forked instances of zabbix_agentd that process passive checks.
    #	If set to 0, disables passive checks and the agent will not listen on any TCP port.
    #
    # Mandatory: no
    # Range: 0-100
    # Default:
    # StartAgents=3
    
    ##### Active checks related
    
    ### Option: ServerActive
    #	List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks.
    #	If port is not specified, default port is used.
    #	IPv6 addresses must be enclosed in square brackets if port for that host is specified.
    #	If port is not specified, square brackets for IPv6 addresses are optional.
    #	If this parameter is not specified, active checks are disabled.
    #	Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
    #
    # Mandatory: no
    # Default:
    # ServerActive=
    
    ServerActive=IP OF ZABBIX SERVER + PORT 10050
    
    ### Option: Hostname
    #	Unique, case sensitive hostname.
    #	Required for active checks and must match hostname as configured on the server.
    #	Value is acquired from HostnameItem if undefined.
    #
    # Mandatory: no
    # Default:
    # Hostname=
    
    Hostname=HOST NAME USED IN FRONT END HERE
    
    ### Option: HostnameItem
    #	Item used for generating Hostname if it is undefined. Ignored if Hostname is defined.
    #	Does not support UserParameters or aliases.
    #
    # Mandatory: no
    # Default:
    # HostnameItem=system.hostname
    
    ### Option: HostMetadata
    #	Optional parameter that defines host metadata.
    #	Host metadata is used at host auto-registration process.
    #	An agent will issue an error and not start if the value is over limit of 255 characters.
    #	If not defined, value will be acquired from HostMetadataItem.
    #
    # Mandatory: no
    # Range: 0-255 characters
    # Default:
    # HostMetadata=
    
    ### Option: HostMetadataItem
    #	Optional parameter that defines an item used for getting host metadata.
    #	Host metadata is used at host auto-registration process.
    #	During an auto-registration request an agent will log a warning message if
    #	the value returned by specified item is over limit of 255 characters.
    #	This option is only used when HostMetadata is not defined.
    #
    # Mandatory: no
    # Default:
    # HostMetadataItem=
    
    ### Option: RefreshActiveChecks
    #	How often list of active checks is refreshed, in seconds.
    #
    # Mandatory: no
    # Range: 60-3600
    # Default:
    # RefreshActiveChecks=120
    
    ### Option: BufferSend
    #	Do not keep data longer than N seconds in buffer.
    #
    # Mandatory: no
    # Range: 1-3600
    # Default:
    # BufferSend=5
    
    ### Option: BufferSize
    #	Maximum number of values in a memory buffer. The agent will send
    #	all collected data to Zabbix Server or Proxy if the buffer is full.
    #
    # Mandatory: no
    # Range: 2-65535
    # Default:
    # BufferSize=100
    
    ### Option: MaxLinesPerSecond
    #	Maximum number of new lines the agent will send per second to Zabbix Server
    #	or Proxy processing 'log' and 'logrt' active checks.
    #	The provided value will be overridden by the parameter 'maxlines',
    #	provided in 'log' or 'logrt' item keys.
    #
    # Mandatory: no
    # Range: 1-1000
    # Default:
    # MaxLinesPerSecond=100
    
    ############ ADVANCED PARAMETERS #################
    
    ### Option: Alias
    #	Sets an alias for an item key. It can be used to substitute long and complex item key with a smaller and simpler one.
    #	Multiple Alias parameters may be present. Multiple parameters with the same Alias key are not allowed.
    #	Different Alias keys may reference the same item key.
    #	For example, to retrieve the ID of user 'zabbix':
    #	Alias=zabbix.userid:vfs.file.regexp[/etc/passwd,^zabbix:.:([0-9]+),,,,\1]
    #	Now shorthand key zabbix.userid may be used to retrieve data.
    #	Aliases can be used in HostMetadataItem but not in HostnameItem parameters.
    #
    # Mandatory: no
    # Range:
    # Default:
    
    ### Option: Timeout
    #	Spend no more than Timeout seconds on processing
    #
    # Mandatory: no
    # Range: 1-30
    # Default:
    # Timeout=3
    
    ### Option: AllowRoot
    #	Allow the agent to run as 'root'. If disabled and the agent is started by 'root', the agent
    #	will try to switch to the user specified by the User configuration option instead.
    #	Has no effect if started under a regular user.
    #	0 - do not allow
    #	1 - allow
    #
    # Mandatory: no
    # Default:
    # AllowRoot=0
    
    ### Option: User
    #	Drop privileges to a specific, existing user on the system.
    #	Only has effect if run as 'root' and AllowRoot is disabled.
    #
    # Mandatory: no
    # Default:
    # User=zabbix
    
    ### Option: Include
    #	You may include individual files or all files in a directory in the configuration file.
    #	Installing Zabbix will create include directory in /usr/local/etc, unless modified during the compile time.
    #
    # Mandatory: no
    # Default:
    # Include=
    
    Include=/etc/zabbix/zabbix_agentd.d/
    
    # Include=/usr/local/etc/zabbix_agentd.userparams.conf
    # Include=/usr/local/etc/zabbix_agentd.conf.d/
    # Include=/usr/local/etc/zabbix_agentd.conf.d/*.conf
    
    ####### USER-DEFINED MONITORED PARAMETERS #######
    
    ### Option: UnsafeUserParameters
    #	Allow all characters to be passed in arguments to user-defined parameters.
    #	0 - do not allow
    #	1 - allow
    #
    # Mandatory: no
    # Range: 0-1
    # Default:
    # UnsafeUserParameters=0
    
    ### Option: UserParameter
    #	User-defined parameter to monitor. There can be several user-defined parameters.
    #	Format: UserParameter=<key>,<shell command>
    #	See 'zabbix_agentd' directory for examples.
    #
    # Mandatory: no
    # Default:
    # UserParameter=
    
    ####### LOADABLE MODULES #######
    
    ### Option: LoadModulePath
    #	Full path to location of agent modules.
    #	Default depends on compilation options.
    #
    # Mandatory: no
    # Default:
    # LoadModulePath=${libdir}/modules
    
    ### Option: LoadModule
    #	Module to load at agent startup. Modules are used to extend functionality of the agent.
    #	Format: LoadModule=<module.so>
    #	The modules must be located in directory specified by LoadModulePath.
    #	It is allowed to include multiple LoadModule parameters.
    #
    # Mandatory: no
    # Default:
    # LoadModule=
    I'm currently runing 2.4.7 on Centos 6.7

    Thanks in advance guys!
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please try chenge ServerActive value.
    Code:
    ServerActive=IP OF ZABBIX SERVER + PORT 10051

    Comment

    • PongLenis
      Junior Member
      • Dec 2015
      • 3

      #3
      Originally posted by Atsushi
      Please try chenge ServerActive value.
      Code:
      ServerActive=IP OF ZABBIX SERVER + PORT 10051
      Thanks for replying
      What value should it be? 10.0.0.1:10050 (example) isn't that the right way to do it?

      EDIT: Got it, port 10050 is for passive checks only. 10051 handles active checks. I still don't see it active in my Zabbix front-end.
      Last edited by PongLenis; 04-12-2015, 10:22.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        The default is to use the port number 10050 for access the server to the agent.
        The default is to use the port number 10051 for access the agent to the server.

        Active check use port number 10051 by default.

        After setting change, Did you make the restart of the agent?
        Is not log message change?

        Comment

        • PongLenis
          Junior Member
          • Dec 2015
          • 3

          #5
          Originally posted by Atsushi
          The default is to use the port number 10050 for access the server to the agent.
          The default is to use the port number 10051 for access the agent to the server.

          Active check use port number 10051 by default.

          After setting change, Did you make the restart of the agent?
          Is not log message change?
          Yeah as soon as I noticed I changed it to 10051, restart and voila, done.
          I stil get the "Get value from agent failed: cannot connect to [[IP]:10050]: [111] Connection refused" in the front-end though...

          Comment

          • Panda
            Junior Member
            • Oct 2015
            • 17

            #6
            You have to wait a bit before the change are made on frontend.

            So do you still have problem ?

            Comment

            • Erravandrhel
              Junior Member
              • Dec 2015
              • 14

              #7
              It seems that the remote host that u want to monitor refusing connection on that port:

              Try to use telnet from ur zabbix server:
              telnet ip port

              to check if u have connection on that port. Maybe a firewall rule block it.

              Comment

              • Mehmet ARIKAN
                Junior Member
                • Mar 2020
                • 1

                #8
                Hi,
                It is useful to control iptables and firewall. Please Control; # systemctl stop iptables # systemctl stop firewalld # systemctl stop zabbix-agent.service # systemctl start zabbix-agent.service Enjoy watching...

                Comment

                Working...