Monitoring for NTP in windows OS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: Monitoring for NTP in windows OS

Post by Uday Kumar »

Hi Team,

We have done the following changes in Nsclient file and executed the below command from Nagios server.
Even after that changes ,we are getting below error as output.Please help us.


[root@libexec]# ./check_nrpe -H xxxxxxxx -c check_ntp_time
C:\Program Files\NSClient++\scripts\check_time.vbs(53, 1) Microsoft VBScript runtime error: Invalid procedure call or argument
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: Monitoring for NTP in windows OS

Post by Uday Kumar »

Hi Team,

Thanks for your help.
I have sorted out this error and able to do monitoring for Windows NTP.

To run the script successfully, I have removed the "/nowarn" from check-time.vbs script and made changes as per the path in nsclient.ini.
amprantino
Posts: 140
Joined: Thu Apr 18, 2013 8:25 am
Location: libexec

Re: Monitoring for NTP in windows OS

Post by amprantino »

There seem to be a bug with the script.
If the server is not using the NTP server used by the script, the script crashes
For example:

Code: Select all

c:\Program Files\NSClient++\scripts>cscript.exe //T:30 //NoLogo check_time.vbs WRONG_SERVER 5 10 biggest
c:\Program Files\NSClient++\scripts\check_time.vbs(53, 1) Microsoft VBScript runtime error: Invalid procedure call or argument
There must be at least one working server for the script to function properly
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring for NTP in windows OS

Post by mcapra »

Thanks for pointing that out @amprantino!

@Uday Kumar is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
Uday Kumar
Posts: 32
Joined: Wed May 11, 2016 11:59 pm

Re: Monitoring for NTP in windows OS

Post by Uday Kumar »

Hi All ,

You can lock this thread. Thanks once again for your help.
Locked