Build precise queries to find exactly what you need
Press ESC to close
@dknigh
Favorites0
Views
Projects0
I am a Noob and here is my instructions for getting it to work. This will hard code the arguments ( I am still trying to figure out why I get errors passing arguments ) Tested on NSClient++ 0.4.1.101 on client machine 1. Open C:Program FilesNSClient++nsclient.ini add to the bottom: [/settings/external scripts/wrapped scripts] ; check_windows_time - check_windows_time = check_windows_time.bat pool.ntp.org 30 10 2. Copy check_windows_time.bat to C:Program FilesNSClient++scripts 3. Restart NSClient++ service 4. open command prompt Navigate to script folder Check with this command(check_windows_time.bat pool.ntp.org 30 10) C:Program FilesNSClient++scripts>check_windows_time.bat pool.ntp.org 30 10 You should see C:Program FilesNSClient++scripts>check_windows_time.bat pool.ntp.org 30 10 OK: Time is -00.0274625s from pool.ntp.org|'Offset'=00s;30;10;0 On Nagios server 1. Go to Nagios server and setup the check without arguments ( they are hard coded in the nsclient.ini file on client machine ). $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c check_windows_time To test from nagios server in Putty cd /usr/local/nagios/libexec ./check_nrpe -H YOUR_SERVER_TO_CHECK -c check_windows_time You should see OK: Time is -00.1961396s from ralpdc01|'Offset'=0s;30;10;0 I hope this helps If anyone has the Noob steps to allow arguments to be passed from Nagios server to client that could be added to this it would be great if you shared it. Thanks.
Reviewed 11 years ago