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
Monitoring for NTP in windows OS
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Monitoring for NTP in windows OS
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.
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.
-
- Posts: 140
- Joined: Thu Apr 18, 2013 8:25 am
- Location: libexec
Re: Monitoring for NTP in windows OS
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:
There must be at least one working server for the script to function properly
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
Re: Monitoring for NTP in windows OS
Thanks for pointing that out @amprantino!
@Uday Kumar is it alright if we lock this thread and mark the issue as resolved?
@Uday Kumar is it alright if we lock this thread and mark the issue as resolved?
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Monitoring for NTP in windows OS
Hi All ,
You can lock this thread. Thanks once again for your help.
You can lock this thread. Thanks once again for your help.