Running Command on Remote hosts

Mies, Christian cmies at itnovum.de
Wed Jul 2 00:45:53 CEST 2008


Hi Jai,
have a look at Nagios Documentation - Eventhandling. This is the
solution you are looking for.
http://nagios.sourceforge.net/docs/3_0/eventhandlers.html
 
Regards
Christian

it-novum GmbH
Ein Unternehmen der Mehler AG
  
Christian Mies
Consultant Systemmanagement
  
Edelzeller Stra?e 44   
36043 Fulda            
  
FON:            +49 (661) 103-874      (-333)
FAX:            +49 (661) 103-17874            (-334)
MAIL:           cmies at itnovum.de
WEB:            http://www.itnovum.de
  
Handelsregister:                  Amtsgericht Fulda, HRB 1934
Geschaftsfuhrer:                  Michael Kienle
Sitz der Gesellschaft:            Fulda, Deutschland/Germany
UstID-Nr:                         DE813211784
Steuernr.:                        018/225/03095
  
Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der eigentliche Empfanger sein sollten, informieren Sie bitte sofort den Absender oder vernichten umgehend diese Mail. Jegliche unerlaubte Vervielfaltigung oder Weiterleitung dieser Mail ist strengstens verboten.
  
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of material in this e-mail is strictly forbidden.
________________________________

Von: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] Im Auftrag von Jai
Rangi
Gesendet: Mittwoch, 2. Juli 2008 00:19
An: nagios-users at lists.sourceforge.net
Betreff: [Nagios-users] Running Command on Remote hosts



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/20080702/5aeba66b/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