Search found 8 matches
- Thu Jun 25, 2015 12:04 pm
- Forum: Nagios XI
- Topic: Not working: Restart windows service with NRPE
- Replies: 7
- Views: 3385
Re: Not working: Restart windows service with NRPE
Nailed it! All is working. Thanks Sax!!
- Thu Jun 25, 2015 11:30 am
- Forum: Nagios XI
- Topic: Not working: Restart windows service with NRPE
- Replies: 7
- Views: 3385
Re: Not working: Restart windows service with NRPE
Confirmed. Here are screenshots of the service common and variable settings.
- Thu Jun 25, 2015 10:35 am
- Forum: Nagios XI
- Topic: Not working: Restart windows service with NRPE
- Replies: 7
- Views: 3385
Re: Not working: Restart windows service with NRPE
Here's the entry in nsclient.log when it fails while having the %1 in the batch file:
Code: Select all
2015-06-25 11:32:28: debug:D:\source\nscp\modules\CheckExternalScripts\CheckExternalScripts.cpp:459: Command line: scripts\restart_service.bat “spooler”- Thu Jun 25, 2015 10:27 am
- Forum: Nagios XI
- Topic: Not working: Restart windows service with NRPE
- Replies: 7
- Views: 3385
Re: Not working: Restart windows service with NRPE
Excellent! Now when I run either of these commands, the service is bounced. And the event handler is restarting the stopped service automatically as it should. ./check_nrpe -H <hostname or IP> -p 5666 -c restart_service -a spooler ./servicerestart.sh CRITICAL <hostname or IP> spooler The Print Spool...
- Thu Jun 25, 2015 8:57 am
- Forum: Nagios XI
- Topic: Best practices: Monitoring multiple windows services
- Replies: 4
- Views: 1770
Re: Best practices: Monitoring multiple windows services
Here's the thread on their forum for anyone interested.
- Thu Jun 25, 2015 7:51 am
- Forum: Nagios XI
- Topic: Best practices: Monitoring multiple windows services
- Replies: 4
- Views: 1770
Re: Best practices: Monitoring multiple windows services
Great, thanks Box. I'll see what they say over there.Box293 wrote:Using NSClient++ I don't believe what you want is possible, I don't think you can be that specific with the warning and critical definitions for multiple services. I would suggest you post a question in the NSClient++ forums about this.
- Wed Jun 24, 2015 10:59 pm
- Forum: Nagios XI
- Topic: Best practices: Monitoring multiple windows services
- Replies: 4
- Views: 1770
Best practices: Monitoring multiple windows services
I have successfully set up monitoring multiple Windows services with NRPE using the command below. We have several server "types" we group our servers in (i.e. Citrix, Web, Database, etc.) which will each have their own bag of services we want to watch. Easy enough to configure and manage ...
- Wed Jun 24, 2015 10:42 pm
- Forum: Nagios XI
- Topic: Not working: Restart windows service with NRPE
- Replies: 7
- Views: 3385
Not working: Restart windows service with NRPE
[I have requested access to the Customer Support forum previously and do not yet have access.] System profile attached. Nagios installed manually on a minimal CentOS 6 VM. Everything is vanilla. I am trying to follow the guide here here for automatically restarting a windows service via NRPE when it...