Ad Widget

Collapse

No active checks on server: host not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • uknet80
    Member
    • Apr 2010
    • 55

    #1

    No active checks on server: host not found

    Hi Guys,

    I am using save Linux machine as Zabbix server and agent, but still i get error host not found as shown bellow:

    server hostname is (test.linux.local), i have this record under DNS and /etc/hosts file, I can ping test.linux.local, linux.local, test and localhost too.

    zabbix_agentd.conf file configuration is

    Server=127.0.0.1
    Hostname=test.linux.local
    LogFile=/tmp/zabbix_agentd.log



    zabbix_server.log
    Sending list of active checks to [127.0.0.1] failed: host [test.linux.local] not found

    zabbix_agentd.log
    No active checks on server: host [test.linux.local] not found

    netstat -tupln
    tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 4232/zabbix_agentd
    tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 4185/zabbix_server

    any idea how to solve this?

    thanks
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #2
    Have you tried to write server IP instead of 127.0.0.1?

    Do you specify server port?
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

    Comment

    • uknet80
      Member
      • Apr 2010
      • 55

      #3
      I have even specified server IP, still same thing. do i have to mention Hostname, I haven't specify server port, what do i need to add?

      Server=192.168.1.110
      Hostname=test.linux.local
      LogFile=/tmp/zabbix_agentd.log

      Comment

      • bashman
        Senior Member
        • Dec 2009
        • 432

        #4
        You have to specify the Server IP and if you don't specify the port, 10050 will be the default port.

        http://www.zabbix.com/documentation/.../zabbix_agentd
        978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

        Comment

        • uknet80
          Member
          • Apr 2010
          • 55

          #5
          how about adding new host, I have added new host and i am not getting errors. from web browser -> configuration -> Hosts, I have added the host, and it is monitored, but under Availability column, the Z mark is gray, it looks like the server can't see it agent. is that true or I am missing something?

          Comment

          • bashman
            Senior Member
            • Dec 2009
            • 432

            #6
            Yeah, that's right, when the Z mark is green means that the server can see the agent and they can communicate.
            978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

            Comment

            • MrKen
              Senior Member
              • Oct 2008
              • 652

              #7
              Don't confuse DNS name with Zabbix Hostname.

              Your test.linux.local looks like a dns name. DNS names should resolve with the IP address, however the Hostname in the zabbix_agentd.conf and in the GUI does not need to resolve anything, only itself.

              Try this:
              Server=192.168.1.110
              Hostname=uknet80Server

              Then in the gui, host config be sure you have the same Hostname and that you have selected 'Connect to: IP Address'.

              If test.linux.local is a resolvable dns name, you could do this:

              Server=test.linux.local
              Hostname=uknet80Server

              And then be sure that you have selected 'Connect to: DNS Name' in the gui.

              MrKen
              Disclaimer: All of the above is pure speculation.

              Comment

              • uknet80
                Member
                • Apr 2010
                • 55

                #8
                I restarted the server, and haven't start zabbix_server or agentd that is running on the same server. the strange think is till from the browser i can see the agent that is on the zabbix_server, and it is active.

                you said Hostname=uknet80Server, that is agent name or server name?
                Attached Files

                Comment

                • uknet80
                  Member
                  • Apr 2010
                  • 55

                  #9
                  Let me tell you my setting & Steps, I have been trying to fix this for three days with no luck:

                  Server IP address is 192.168.1.119 (test.linuxtest.localhost), i can ping the name from any where it is on DNS, the zabbix server act as server and agent, the following settings:

                  /etc/zabbix/zabbix_server.conf
                  ListenPort=10051
                  DBName=zabbix
                  DBUser=root
                  DBPassword=Password

                  /etc/zabbix/zabbix_agentd.conf
                  Server=192.168.1.119
                  Hostname=test.linuxtest.localhost
                  ListenPort=10050
                  LogFile=/tmp/zabbix_agentd.log


                  machine 2 (Agent 2) has the following setting
                  /etc/zabbix/zabbix_agent.d.conf
                  Server=192.168.1.119
                  Hostname=mv
                  ListenPort=10050
                  LogFile=/tmp/zabbix_agentd.log


                  zabbix_server.log
                  4878:20100505:162204.796 Deleted 0 records from history and trends
                  4870:20100505:162458.422 Sending list of active checks to [192.168.1.119] failed: host [test.linuxtest.localhhost] not found

                  zabbix_agentd.log
                  4933:20100505:162458.419 zabbix_agentd active check started [192.168.1.119:10051]
                  4933:20100505:162458.422 No active checks on server: host [test.linuxtest.localhhost] not found

                  zabbix_agentd.loc on Agent2
                  2230:20100505:162817.174 zabbix_agentd collector started
                  2234:20100505:162817.183 No active checks on server: host [mv] not found


                  I will be so grateful if you could help me with this
                  Attached Files
                  Last edited by uknet80; 05-05-2010, 15:32.

                  Comment

                  • alixen
                    Senior Member
                    • Apr 2006
                    • 474

                    #10
                    Hi,

                    You have to make sure that server name in Zabbix server and agent are the same. See my remarks below.

                    Originally posted by uknet80
                    Let me tell you my setting & Steps, I have been trying to fix this for three days with no luck:

                    Server IP address is 192.168.1.119 (test.linuxtest.localhost), i can ping the name from any where it is on DNS, the zabbix server act as server and agent, the following settings:

                    /etc/zabbix/zabbix_server.conf
                    ListenPort=10051
                    DBName=zabbix
                    DBUser=root
                    DBPassword=Password

                    /etc/zabbix/zabbix_agentd.conf
                    Server=192.168.1.119
                    Hostname=test.linuxtest.localhost
                    According to screenshot this machine is called "Zabbix Server" not "test.linuxtest.localhost" in Zabbix.
                    Originally posted by uknet80
                    ListenPort=10050
                    LogFile=/tmp/zabbix_agentd.log


                    machine 2 (Agent 2) has the following setting
                    /etc/zabbix/zabbix_agent.d.conf
                    Server=192.168.1.119
                    Hostname=mv
                    According to screenshot this machine is called vm not mv in Zabbix.
                    Originally posted by uknet80
                    ListenPort=10050
                    LogFile=/tmp/zabbix_agentd.log


                    zabbix_server.log
                    4878:20100505:162204.796 Deleted 0 records from history and trends
                    4870:20100505:162458.422 Sending list of active checks to [192.168.1.119] failed: host [test.linuxtest.localhhost] not found

                    zabbix_agentd.log
                    4933:20100505:162458.419 zabbix_agentd active check started [192.168.1.119:10051]
                    4933:20100505:162458.422 No active checks on server: host [test.linuxtest.localhhost] not found

                    zabbix_agentd.loc on Agent2
                    2230:20100505:162817.174 zabbix_agentd collector started
                    2234:20100505:162817.183 No active checks on server: host [mv] not found


                    I will be so grateful if you could help me with this
                    Rename host "Zabbix Server" to "test.linuxtest.localhost" and replace "mv" by "vm" in zabbix agent configuration and it should be OK.

                    Regards,
                    Alixen
                    http://www.alixen.fr/zabbix.html

                    Comment

                    • uknet80
                      Member
                      • Apr 2010
                      • 55

                      #11
                      after changing the server name as you advised, I am not getting errors for the agent under the server test.linuxtest.localhost (192.168.1.119). THANKS FOR YOUR HELP

                      still I am getting error for machine 2 (Agent 2)
                      i have reinstalled the machine with a new name to prevent confution. Setting

                      Agent name (redhat2) 192.168.122.239
                      Server=192.168.1.119
                      Hostname=redhat2
                      ListenPort=10050
                      LogFile=/tmp/zabbix_agentd.log

                      server same "test.linuxtest.localhost (192.168.1.119)"

                      Error on server
                      13238:20100506:102935.455 Sending list of active checks to [192.168.122.239] failed: host [redhat2] not found

                      Error on Agent
                      11418:20100506:102732.513 No active checks on server: host [redhat2] not found

                      I can ping redhat2 from server side.

                      On the webmonitor host has been added: redhat2 with 192.168.122.239 (see image)

                      Do I need to add agent name into zabbix_server.conf file or any where else, because how can the server knows if a specific Agent authorised to send reports, is it only from the web browser (Configuration->Host->Create host)?
                      Attached Files
                      Last edited by uknet80; 06-05-2010, 09:14.

                      Comment

                      • MrKen
                        Senior Member
                        • Oct 2008
                        • 652

                        #12
                        What happens if you link the Template_Linux to your Host redhat2?

                        [Shouldn't need to, but, maybe restart zabbix_agentd on redhat2]

                        MrKen
                        Disclaimer: All of the above is pure speculation.

                        Comment

                        • uknet80
                          Member
                          • Apr 2010
                          • 55

                          #13
                          what do you mean by (What happens if you link the Template_Linux to your Host redhat2?) how can i do that?

                          Comment

                          • alixen
                            Senior Member
                            • Apr 2006
                            • 474

                            #14
                            Hi,

                            Originally posted by uknet80
                            what do you mean by (What happens if you link the Template_Linux to your Host redhat2?) how can i do that?
                            According to your snapshot, redhat2 host has 0 items, 0 triggers, 0 graphs. What do you expect ?

                            May be it is time to stop hacking Zabbix configuration, relax and read the manual: http://www.zabbix.com/documentation/1.8/manual

                            Regards,
                            Alixen
                            http://www.alixen.fr/zabbix.html

                            Comment

                            • uknet80
                              Member
                              • Apr 2010
                              • 55

                              #15
                              the problem i have is the error message i am getting from the minute i start the service. active and passive check is disabled by default, do i need to enable them? do you have any other suggestions? as i have followed all the stop needed

                              thanks

                              Comment

                              Working...