0

I have an app that reports the status of another app. It does a little more than just check if the app is in the process list.

It returns 0 if OK and -1 if error.

How would I call this app through the zabbix agent and use that to determine if the process that it checks on is OK or not?

MadHatter
  • 79,770
  • 20
  • 184
  • 232
hookenz
  • 14,472
  • 23
  • 88
  • 143
  • https://www.zabbix.com/documentation/2.2/manual/config/items/userparameters/extending_agent – Michael Hampton Mar 13 '14 at 03:14
  • Thanks for the link @MichaelHampton. What's completely unclear is how the output from scripts/commands are interpreted by zabbix. Using zabbix_get it works. When I create a template and link it to a host I get "unsupported" as my error. The key is correct though. Any ideas? – hookenz Mar 13 '14 at 09:42
  • Never mind, I fixed it. Turns out I was monitoring on localhost instead of the DNS name. So of course it wasn't supported. Thanks for your help. You could pull out the relevant bits from the docs and paste them here and I'd be happy accept an answer. – hookenz Mar 13 '14 at 10:08
  • @Matt - you should post that as an answer isntead of as a comment, as it's not obvious that you've been able to resolve the issue (hence why you just got a new answer) – Mark Henderson May 17 '14 at 09:14

1 Answers1

1

There is a option in zabbix-agent named UserParameter which can help you. In this case you yourself generate a parameter on the guest machine and on the zabbix server you just define an item with the key you specified on that machine. See this links:

User parameters

shgnInc
  • 1,804
  • 3
  • 22
  • 29