monitor device on internet?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: monitor device on internet?

Post by rkennedy »

I believe the permissions are failing somewhere for PSExec, which could be related to UAC. I just setup a fresh test environment on 2008R2 where I'll use the built in shutdown command - this should work for you.

Here's what I did -
1. Create a script called reboot.bat on the windows server, in it put shutdown -r -t 0 in the NSClient++\scripts\ directory.
2. Under the external scripts part in NSClient, add this to a line reboot=scripts\reboot.bat.
3. Restart the NSClient++ service.
4. End result will appear as so -

Code: Select all

[root@suse11 libexec]# ./check_nrpe -H 192.168.3.15 -c reboot

C:\Program Files\NSClient++>shutdown -r -t 0
[root@suse11 libexec]#
Let me know if this works for you, or if you need further assistance.
Former Nagios Employee
Locked