Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

dknigh

Reviews(1)
bydknigh, March 25, 2015
1 of 1 people found this review helpful
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 Files\NSClient++\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 Files\NSClient++\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 Files\NSClient++\scripts>check_windows_time.bat pool.ntp.org 30 10

You should see

C:\Program Files\NSClient++\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.