Page 2 of 2
Re: Monitoring for NTP in windows OS
Posted: Wed Jul 20, 2016 9:37 pm
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
Re: Monitoring for NTP in windows OS
Posted: Wed Jul 20, 2016 10:44 pm
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.
Re: Monitoring for NTP in windows OS
Posted: Thu Jul 21, 2016 8:05 am
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
Re: Monitoring for NTP in windows OS
Posted: Thu Jul 21, 2016 9:59 am
by mcapra
Thanks for pointing that out
@amprantino!
@Uday Kumar is it alright if we lock this thread and mark the issue as resolved?
Re: Monitoring for NTP in windows OS
Posted: Fri Jul 22, 2016 4:43 am
by Uday Kumar
Hi All ,
You can lock this thread. Thanks once again for your help.