Ad Widget

Collapse

zabbix 1.8 active checks fail when hostname matches

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nids-arutledge
    Junior Member
    • Oct 2014
    • 7

    #1

    zabbix 1.8 active checks fail when hostname matches

    Hello,

    I've already searched the forums and found the most common cause of this problem. However, I've tried the resolutions suggested to no avail.

    On my agent:
    Code:
    24550:20141023:203652.659 No active checks on server: host [amqp2.cp] not found
    On my server:
    Code:
    28617:20141023:203652.657 Sending list of active checks to [www] failed: host [amqp2.cp] not found
    I can create a screenshot if you like but here's the configuration from the server typed out:
    Name: amqp2.cp
    DNS: vm-lnx-nids-amqp2.xxx.yyy.zzz
    IP: www

    I've tried, just for lack of anything else to try, setting Name = DNS = Hostname, still no go. I'm about at the end of my rope here.

    Thank you,
    -Andrea
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    On your monitored server, in zabbix_agentd.conf, do you have your Zabbix server IP address in the field for ServerActive= ?

    BTW, DNS name is irrelevant. The two things that must match are what you have in you zabbix_agentd.conf file for the Hostname= field as to what you have entered for the host's name in the Zabbix GUI under Configuration --> Hosts.

    Something else that matters is that port 10051 is not blocked on your host. Active checks use that port.
    Last edited by tchjts1; 23-10-2014, 23:16.

    Comment

    • nids-arutledge
      Junior Member
      • Oct 2014
      • 7

      #3
      Hello!

      I do not have a ServerActive value set. Per the documentation, that means it should use the first (and only) value in my Server list. I will try with ServerActive and get back to you though, just to be sure.

      Thank you,
      -Andrea

      Comment

      • nids-arutledge
        Junior Member
        • Oct 2014
        • 7

        #4
        Originally posted by tchjts1
        On your monitored server, in zabbix_agentd.conf, do you have your Zabbix server IP address in the field for ServerActive= ?
        No, I did not. However I tested with it set to the same IP as the "Server=", with the default (10051) port.

        Thank you,
        -Andrea

        Comment

        • tchjts1
          Senior Member
          • May 2008
          • 1605

          #5
          Originally posted by nids-arutledge
          Hello!

          I do not have a ServerActive value set. Per the documentation, that means it should use the first (and only) value in my Server list. I will try with ServerActive and get back to you though, just to be sure.

          Thank you,
          -Andrea
          ServerActive field controls active checks, so that needs set if using any active agent items. When you set it, use only the IP of your Zabbix server. Do not put multiple IP addresses, and no need to put a port number with it.

          After you make that change, you will need to restart your agent for it to take effect.

          Comment

          • nids-arutledge
            Junior Member
            • Oct 2014
            • 7

            #6
            Originally posted by tchjts1
            ServerActive field controls active checks, so that needs set if using any active agent items. When you set it, use only the IP of your Zabbix server. Do not put multiple IP addresses, and no need to put a port number with it.

            After you make that change, you will need to restart your agent for it to take effect.
            Made the change, restarted zabbix-agent, still no go. Exact same value as Server. I see the messages in the server log so it does seem to be connecting successfully. I do thank you for your help, and I'm honestly willing to keep trying anything. (=

            Thanks!
            -Andrea

            Comment

            • tchjts1
              Senior Member
              • May 2008
              • 1605

              #7
              Give it a little time. It won't be immediate, depending on some other settings.
              If you don't see it change within 20 - 30 minutes, we can dig a little deeper.
              Last edited by tchjts1; 23-10-2014, 23:53.

              Comment

              • nids-arutledge
                Junior Member
                • Oct 2014
                • 7

                #8
                Originally posted by tchjts1
                Give it a little time. It won't be immediate, depending on some other settings.
                If you don't see it change within 20 - 30 minutes, we can dig a little deeper.
                Sadly, it's already been 20-30 minutes with no improvement.

                Thank you,
                -Andrea

                Comment

                • tchjts1
                  Senior Member
                  • May 2008
                  • 1605

                  #9
                  Ok, Take a screenshot like mine below for your host so I can see the name as it is in the frontend.

                  Then also, copy and paste, (Do not manually type it out) from your zabbix_agentd.conf file the section for ServerActive= as well as the section for Hostname=
                  Attached Files

                  Comment

                  • nids-arutledge
                    Junior Member
                    • Oct 2014
                    • 7

                    #10
                    Originally posted by tchjts1
                    Ok, Take a screenshot like mine below for your host so I can see the name as it is in the frontend.

                    Then also, copy and paste, (Do not manually type it out) from your zabbix_agentd.conf file the section for ServerActive= as well as the section for Hostname=
                    Code:
                    Server=10.60.16.15
                    
                    ### Option: ServerActive
                    #       Comma-separated list of host:port pairs of Zabbix servers for active checks.
                    #       If ServerActive is specified, first host in the Server option is not used for active checks, only for passive checks.
                    #       If the port is not specified, ServerPort port is used for that host. If ServerPort 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.
                    #       Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
                    #
                    # Mandatory: no
                    # Default:
                    ServerActive=10.60.16.15
                    
                    ### 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=amqp2.cp
                    Image attached.

                    Thank you,
                    -Andrea
                    Attached Files

                    Comment

                    • tchjts1
                      Senior Member
                      • May 2008
                      • 1605

                      #11
                      Last 2 things before I head out for the day...

                      Do you have any items that are set to the type of "Zabbix agent (Active)" for that particular host?

                      Secondly, see if you can telnet from Zabbix server to port 10051 of that host.
                      That would be: telnet 123.45.67.89 10051 (substitute your hosts IP of course) Maybe that port is not open.

                      Comment

                      • nids-arutledge
                        Junior Member
                        • Oct 2014
                        • 7

                        #12
                        Originally posted by tchjts1
                        Last 2 things before I head out for the day...

                        Do you have any items that are set to the type of "Zabbix agent (Active)" for that particular host?

                        Secondly, see if you can telnet from Zabbix server to port 10051 of that host.
                        That would be: telnet 123.45.67.89 10051 (substitute your hosts IP of course) Maybe that port is not open.
                        I tested connectivity first thing, yes the ports are open. These are actually on the same (open) network segment, but yeah, I can pull a valid TCP connection too. (=

                        As for active, hrm, I thought I did since I put the Linux_Template on all of them but they all list "Zabbix agent", not "Zabbix agent (Active)". The thing is, none of them are gathering data successfully so I figured it was related to this message.

                        Thank you,
                        -Andrea

                        Comment

                        • tchjts1
                          Senior Member
                          • May 2008
                          • 1605

                          #13
                          I don't know what to tell you.

                          The host is enabled for monitoring in the frontend, right?

                          Right now when you go to that host and look at the items (Not at the template level), all the way out to the right, is there a red X that indicates an error for your items? If so, hover your mouse over the X. What is the error??

                          One last thing I would try. Possibly the dot in the hostname is tripping things up.
                          In zabbix_agentd.conf, try changing Hostname= from amqp2.cp to amqp2cp and restart the agent. Also make that change to the host name in Zabbix frontend.

                          Comment

                          Working...