Oct 16, 2009 5:05 PM
Custom script output parsing?
-
Like (0)
Hi All,
I'm a n00b when it comes to Zenoss, so pardon my ignorance here, but I have a question. We're thinking of moving from Nagios top Zenoss, but in nagios we make very, very heavy use of custom 'NRPE' nagios service checks. i.e., the Nagios server connects to the nagios client agent on a host, runs a script I wrote which produces output in the form of a string of text. The script exits with exit code '0' for 'everything is all good', exit code '1' for 'something is messed up', and exit code '2' for 'we're in a critical mess'. If the state changes from '0' to '1', for example, nagios emails me the script output so I can get specific details produced by my script on the nature of the problem from the service I am watching.
Can I do this with Zenoss? I see a lot of Zenoss stuff that uses SNMP, but really I care way more about custom script output being interpretted and emailed to me when something is amiss. Can someone tell me if that is possible, and how to go about doing it?
Thanks a million in advance! BTW - I have read the documentation but have come up short. Maybe I have to create a custom Zenpack or something?
Cheers,
erich
Take a look at Chapter 6.2 of the Admin Guide, 6.2 Performance Monitoring. You should be able to re-use all of your existing Nagios plugins as Command data sources. 6.3 Monitoring Using ZenCommand has more information and examples as well.
You might try my paper on monitoring processes with Zenoss - docs/DOC-3537 . There's an example and explanation in there.
Cheers,
Jane
Follow Us On Twitter »
|
Latest from the Zenoss Blog » | Community | Products | Services Resources | Customers Partners | About Us | ||
Copyright © 2005-2011 Zenoss, Inc.
|
||||||||