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]#