Ad Widget

Collapse

Problems with Active Checks (DisableActive=0)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • torti-
    Junior Member
    • Mar 2007
    • 18

    #1

    Problems with Active Checks (DisableActive=0)

    Hello all,
    I have some problems, getting active checks to work. First of all, here ary my client and server config files:

    Client
    Code:
    Server=server.hostname.tld
    ServerPort=10051
    Hostname=client
    ListenPort=10050
    ListenIP=127.0.0.1
    StartAgents=5
    RefreshActiveChecks=60
    DisableActive=0
    EnableRemoteCommands=1
    DebugLevel=4
    PidFile=/tmp/zabbix_agentd.pid
    LogFile=/tmp/zabbix_agentd.log
    Timeout=3
    Server
    Code:
    Server=1
    StartPollers=6
    StartTrappers=5
    ListenPort=10051
    ListenIP=<server ip>
    HousekeepingFrequency=1
    SenderFrequency=30
    DebugLevel=3
    Timeout=5
    PidFile=/tmp/zabbix_server.pid
    LogFile=/tmp/zabbix_server.log
    FpingLocation=/usr/sbin/fping
    DBHost=localhost
    DBName=zabbix
    DBUser=zabbix
    DBPassword=<password for database>
    If I start the agent I get in the logs at the client:
    Code:
     27974:20070318:192749 zabbix_agentd started. ZABBIX 1.3.3.
     27975:20070318:192749 zabbix_agentd collector started
     27976:20070318:192749 zabbix_agentd listener started
     27977:20070318:192749 zabbix_agentd listener started
     27978:20070318:192749 zabbix_agentd listener started
     27979:20070318:192749 zabbix_agentd active check started [server.hostname.tld:10051]
     27979:20070318:192749 In init_active_metrics()
     27979:20070318:192749 In refresh_metrics('server.hostname.tld',10051)
     27979:20070318:192749 get_active_checks('server.hostname.tld',10051)
     27979:20070318:192749 Sending [ZBX_GET_ACTIVE_CHECKS
    <clients name>
    ]
     27979:20070318:192749 Before read
     27979:20070318:192749 In parse_list_of_checks('ZBXD')
     27979:20070318:192749 In disable_all_metrics()
     27979:20070318:192749 Parsed [ZBXD]
     27979:20070318:192749 In process_active_checks('server.hostname.tld',10051)
     27979:20070318:192749 In get_min_nextcheck()
     27979:20070318:192749 Sleeping for 60 seconds
    Port 10051 is open at the server and accepting connections.
    For testing purposes I have created an item 'system.localtime' as 'Zabbix agent (active)'.
    The hostname in the client.conf is the same as the hostname used in the webinterface for the client.

    In the webinterface you see the host as not responding (no wonder nat is blocking incomng connection attempts...):
    client-hostname <clients hostname>.dyndns.org <clients ip> 10050 VPN-Server Monitored Not available Cannot connect to [ghar-sshtunnel] [Connection refused] Items : Triggers : Graphs

    Does anyone have an idea whats wrong here? I'm a little clueless
  • torti-
    Junior Member
    • Mar 2007
    • 18

    #2
    Can anyone perhaps post a working client/server config for active checks?

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      My server is on defaults and accepts connections from active agents on port 10051.

      Make sure you have the item set for active in your zabbix web configuration.

      Also, "hostname" must be set on the agent config file to whatever the hostname is entered as on the server.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • torti-
        Junior Member
        • Mar 2007
        • 18

        #4
        hm well, the server responds well, but somehow the client doesn't reply the values requested from the server:

        -----------------------------pcap session---
        ZBX_GET_ACTIVE_CHECKS
        ariel
        ZBXD
        ........system.cpu.load[,avg15]:20:0
        ZBXD.........system.cpu.load[,avg1]:5:0
        ZBXD.........system.cpu.load[,avg5]:10:0
        ZBXD.........ZBX_EOF
        --------------------------------------------

        after this nothing gets transmitted.

        in the client.conf
        Code:
        Hostname=ariel

        Comment

        • medic
          Member
          • Feb 2007
          • 58

          #5
          an active check is an "active check" for the agent. The agent itself decides, when it will send data back to the server .. so a "normal" "Agent Check" is doing what you are thinking about:

          Agent Check:
          Server: Request Item
          Agent: Send Item
          [..]
          Server: Request Item
          Agent: Send Item
          [..]

          Agent Check (Active):
          Agent: Request Itemlist
          Server: Send Itemlist
          [...]
          Agent: Send Item
          [...]
          Agent: Send Item
          [...]
          Agent: Send Item

          Comment

          Working...