Re: monitor device on internet?
Posted: Mon Jan 18, 2016 2:50 pm
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 -
Let me know if this works for you, or if you need further assistance.
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]#