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.
Ad Widget
Collapse
Zabbix Agent
Collapse
X
-
-
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 -
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
-
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
-
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
Comment