Ad Widget

Collapse

Zabbix Agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tbennett
    Junior Member
    • Oct 2009
    • 4

    #1

    Zabbix Agent

    I have several machine running a VNC type of application and I would like the agent on these machines to report back to the zabbix server if this application is not running.
  • Rudd
    Member
    • Mar 2011
    • 69

    #2
    Depending on how you want to check that any of these items may be able to assist you:

    net.tcp.listen[port]
    net.tcp.port[<ip>,port]
    net.tcp.service[service,<ip>,<port>]
    proc.num[<name>,<user>,<state>,<cmdline>]
    service_state[*] (Windows specific)

    Have a look here for more info - http://www.zabbix.com/documentation/...l/config/items

    Comment

    • tbennett
      Junior Member
      • Oct 2009
      • 4

      #3
      I'm currently testing a "ACTIVE" agent check using:
      UserParameter=system.test,wmic.exe process where name="winVNC4.exe" | find "." /c


      I will look into the the documentation you provided as well... Thanks

      Comment

      • Rudd
        Member
        • Mar 2011
        • 69

        #4
        That should work as long as there are VNC processes running. When there are no processes running that command will return a two line response with 0 being on the second line. I doubt the agent would handle that.

        Also double check if you have EnableRemoteCommands=1 in zabbix_agentd.conf.

        Having said all that, in my humble opinion it would be more elegant to use the built in agent capabilities. There is more than one way to do it, japh
        Last edited by Rudd; 11-04-2011, 05:29.

        Comment

        • tbennett
          Junior Member
          • Oct 2009
          • 4

          #5
          It seems to work some what, the zabbix server show unknown event when winVNC4.exe is not running. I'm using expression {camera14.oak:system.test.last(0)}=0 on the server. Not sure about this setting, and yes "EnableRemoteCommands=1".

          And are you speaking about the "agent capabilities" using the .conf or from the server?

          And I'm always open to opinons

          Comment

          • Rudd
            Member
            • Mar 2011
            • 69

            #6
            I guess that is because the test does not actually return 0 to the server when no vnc processes are running.

            By "agent capabilities" I meant that personally I would use one of the before mentioned items, already built in to the zabbix agent, instead of defining your own test with a UserParameter.

            Comment

            Working...