Build precise queries to find exactly what you need
Press ESC to close
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
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.
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!