[Zenoss-dev] Re: How to monitor water pumps?
ecn
ecn at zenoss.com
Tue Jan 8 11:19:39 EST 2008
You could use maintenance windows to do this.
Write a shell script to poll your pumps that produces output that conforms to the nagios plug-in interface:
Code:
$ check_pump 123.45.67.89
Pump is On|pump=1
Add a data source to your pump device template with a pump datapoint.
Add a threshold to alarm whenever pump is less than 1.
Put all your pumps into a maintenance mode.
Add maintenance windows to put your pumps into production mode when the pumps should be on.
Alternatively, you could incorporate a schedule into the check_pump command:
Code:
$ check_pump 123.45.67.89
Pump is off and should be|pump=1
$ check_pump 123.45.67.89
Pump is on but should be off|pump=0
-Eric
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=15042#15042
-------------------- m2f --------------------
More information about the zenoss-dev
mailing list