Running Command on Remote hosts

Jai Rangi jrangi at automotive.com
Wed Jul 2 00:19:24 CEST 2008


Hello,

We have Nagios setup with Groundworks, doing all sort of checks on our
servers at datacenter. We get the emails for warning and critical
alerts. Everything seems to running pretty good. 

What I want to achieve is build a script/system that can fix problems by
itself. 

For example for our Windows IIS servers the scripts should restart the
application pool if it finds any problem with http port. Cause that's
what we do manually to get it fixed. It seems to be working when I run
from the command line, like this, 

 

./check_nrpe -H server -n -p PORTNUMBE -t 30 -c restartapppool. 

 

restartapppool is the command defined in the NRPE Client. Now I need to
understand is what I need to do to run this command as soon as the
nagios find a problem with the http service. 

 

Has anyone done something like this? I will appreciate if you can share
some thoughts. 

 

Thank you,

 


Jai Rangi


 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20080701/aa67ce10/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list