Ad Widget

Collapse

zabbix agent vs. zabbix agent (active)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MRG
    Junior Member
    • Feb 2006
    • 9

    #1

    zabbix agent vs. zabbix agent (active)

    Hey Guys,

    I have 2 machines.

    1) running as server, and agent

    2) agent

    -----

    on #1 the agent is reporting the data normally, only when I set it to 'zabbix agent (active)', otherwise the server log reports it is timing out.

    #2 will not report the data to #1, no matter whether i set it to 'zabbix agent' or 'zabbix agent (active)'.

    So my question is: what is the difference between active and not active? is the active agent initiating the connection? And what is wrong with #2?

    here is the /tmp/zabbix_agentd.log on #2:

    016007:20060214:154721 zabbix_agentd started. ZABBIX 1.1beta6.
    016008:20060214:154721 zabbix_agentd 16008 started
    016008:20060214:154721 In init_list()
    016008:20060214:154721 In refresh_metrics()
    016008:20060214:154721 get_active_checks: host[10.4.50.12] port[10051]
    016008:20060214:154721 Sending [ZBX_GET_ACTIVE_CHECKS
    hostname removed for security
    ]
    016008:20060214:154721 Before read
    016008:20060214:154721 In delete_all_metrics()
    016008:20060214:154721 Parsed [ZBX_EOF]
    016008:20060214:154721 Sleeping for 60 seconds
    016008:20060214:154821 Sleeping for 60 seconds
    016008:20060214:154921 In refresh_metrics()
    016008:20060214:154921 get_active_checks: host[10.4.50.12] port[10051]
    016008:20060214:154921 Sending [ZBX_GET_ACTIVE_CHECKS

    ]
  • MRG
    Junior Member
    • Feb 2006
    • 9

    #2
    Solved it. In case someone else runs into this problem:

    'hostname=' in zabbix_agentd.conf is the hostname of the agent computer, not the server. Upon connecting to zabbix_server it supplies this parameter and zabbix_server does a query on the database looking for the active checks associated with this name.

    zabbix agent is passive and waits for the server to connect to it.

    zabbix agent (active) connects to the server, the server never initiates the connection.

    Comment

    Working...