Ad Widget

Collapse

Zabbix Server can´t connect with any agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iam33
    Junior Member
    • Jul 2009
    • 24

    #1

    Zabbix Server can´t connect with any agent

    Hi! thanks in advance!

    I have a problem with the zabbix server....
    All appears good in server, it connects with it own agent, and this appears in web interface without problems.

    But when I add a new agent, It doesn´t appear in web console like "Availability" = "Available". Only appear like "Unknown".
    And the server log show this:

    Code:
     4414:20090824:064931 Send list of active checks to [192.168.245.128] failed: host [pandora] not found
     4418:20090824:065151 Send list of active checks to [192.168.245.128] failed: host [pandora] not found
    From server I can arrive to the agent with ping:

    Code:
    ping pandora
    PING pandora (192.168.245.128) 56(84) bytes of data.
    64 bytes from pandora (192.168.245.128): icmp_seq=0 ttl=64 time=20.9 ms
    64 bytes from pandora (192.168.245.128): icmp_seq=1 ttl=64 time=1.07 ms
    64 bytes from pandora (192.168.245.128): icmp_seq=2 ttl=64 time=1.01 ms
    and vice versa

    Code:
    ping zabbixsrv2
    PING zabbixsrv2 (192.168.245.129) 56(84) bytes of data.
    64 bytes from zabbixsrv2 (192.168.245.129): icmp_seq=0 ttl=64 time=2.00 ms
    64 bytes from zabbixsrv2 (192.168.245.129): icmp_seq=1 ttl=64 time=1.16 ms
    64 bytes from zabbixsrv2 (192.168.245.129): icmp_seq=2 ttl=64 time=1.45 ms
    My configurations it´s this:

    Server name: zabbixsrv2
    Server IP: 192.168.245.129

    active parameters on zabbix_server.conf

    Code:
    DebugLevel=3
    
    Timeout=5
    
    PidFile=/var/tmp/zabbix_server.pid
    
    LogFile=/tmp/zabbix_server.log
    
    AlertScriptsPath=/home/zabbix/bin/
    
    DBName=zabbix
    
    DBUser=root
    
    DBPassword=pass

    Agent name: pandora
    Agent IP: 192.168.245.128

    active parameters on zabbix_agentd.conf

    Code:
    Server=192.168.245.129
    
    ServerPort=10051
    
    Hostname=pandora
    
    StartAgents=3
    
    DebugLevel=3
    
    PidFile=/tmp/zabbix/zabbix_agentd.pid
    
    LogFile=/tmp/zabbix/zabbix_agentd.log
    
    Timeout=3
    agentd.log

    Code:
      5805:20090824:032534 zabbix_agentd started. ZABBIX 1.6.5 (revision 7442).
      5806:20090824:032534 zabbix_agentd collector started
      5807:20090824:032534 zabbix_agentd listener started
      5808:20090824:032534 zabbix_agentd listener started
      5809:20090824:032534 zabbix_agentd listener started
      5810:20090824:032534 zabbix_agentd active check started [192.168.245.129:10051]
    Last edited by iam33; 24-08-2009, 12:38.
  • iam33
    Junior Member
    • Jul 2009
    • 24

    #2
    I have activated the debbug mode in the agent, I attach the agent log generated.

    thanks
    Attached Files

    Comment

    • NOB
      Senior Member
      Zabbix Certified Specialist
      • Mar 2007
      • 469

      #3
      Originally posted by iam33
      I have activated the debbug mode in the agent, I attach the agent log generated.

      thanks
      According to the log, everything works as designed.
      The agent requests the list of active checks and gets a response
      from the server with an empty list.

      Are you sure, that you have at least one active item for pandora
      configured in the web frontend ?

      HTH,

      Norbert.

      Comment

      • iam33
        Junior Member
        • Jul 2009
        • 24

        #4
        Thanks for your help!

        I have created the host on Web Console, if this is that you say... (first image)

        but.... when I have created it and I have tried to add a link with template the console give an error "Warning: Incorrect value for [templates] (second image)

        I have attached the zabbix_server.log and 2 screen captures with the problem.
        Attached Files

        Comment

        • iam33
          Junior Member
          • Jul 2009
          • 24

          #5
          I´ve just to solve the problem...with the NOB help, I´ve added a lot items to an agent and It´s OK.

          Now I have other problem, that I´ve said in this thread, I can´t add a link to a template in a host.

          Comment

          Working...