Monitoring for NTP in windows OS
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Monitoring for NTP in windows OS
Hi Team,
Is it possible to monitor NTP configuration in windows.
IF so ,can you please provide us the plugin and steps to define commands and requirements from server end.
If anything else need from my end please let me know.
Thanks & Regards
Uday.
Is it possible to monitor NTP configuration in windows.
IF so ,can you please provide us the plugin and steps to define commands and requirements from server end.
If anything else need from my end please let me know.
Thanks & Regards
Uday.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Monitoring for NTP in windows OS
This plugin on the Nagios exchange should be what you are after:
https://exchange.nagios.org/directory/P ... 29/details
https://exchange.nagios.org/directory/P ... 29/details
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Monitoring for NTP in windows OS
Hi,
As per the link you provided, we have done all the required changes in Nagios server and remote host as well.
When we tried to test the check, locally in remote host we are facing the below attached error.
Can you please help me to sort out this.
Regards
B Uday Kumar
As per the link you provided, we have done all the required changes in Nagios server and remote host as well.
When we tried to test the check, locally in remote host we are facing the below attached error.
Can you please help me to sort out this.
Regards
B Uday Kumar
- Attachments
-
- Error we are facing while executing script locally in remote machine.
- Error.PNG (4.17 KiB) Viewed 5429 times
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Monitoring for NTP in windows OS
I tested this and I found I got the same error when I provided an invalid IP address. When the IP address I provided was able to be contacted it worked OK. Check your firewall to see if the NTP ports are open.
From looking at the script, here is the command the script executes:
You can see the second attempt is to an unreachable address.
From looking at the script, here is the command the script executes:
You can see the second attempt is to an unreachable address.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Monitoring for NTP in windows OS
i have tested the NTP port and the command line.
Everything looks fine and executing correctly.
But sill getting same error as earlier when checking the script locally from Remote host.
And in Nagios server we are getting the below error while executing command.
#./check_nrpe -H XXXXXX -c check_ntp_time
No handler for command: check_ntp_time
Everything looks fine and executing correctly.
But sill getting same error as earlier when checking the script locally from Remote host.
And in Nagios server we are getting the below error while executing command.
#./check_nrpe -H XXXXXX -c check_ntp_time
No handler for command: check_ntp_time
- Attachments
-
- NTP Execution.
- NTP.PNG (3.45 KiB) Viewed 5425 times
Re: Monitoring for NTP in windows OS
You'll need to add the command for check_ntp_time to your nsclient.ini file.
Under the section labeled [/settings/external scripts/scripts] in nsclient.ini, add this below -
Then, restart the NSClient++ (nscp) service, and try once again.
Under the section labeled [/settings/external scripts/scripts] in nsclient.ini, add this below -
Code: Select all
command[check_ntp_time]=cscript.exe //T:30 //NoLogo check_time.vbs server1,server2,server3 20 240
Former Nagios Employee
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Monitoring for NTP in windows OS
Hi Kennedy,
I have added the line in nsclient.ini file and restarted.
But still getting same error.
# ./check_nrpe -H XXXXXXXXXX -c check_ntp_time
No handler for command: check_ntp_time
I have added the line in nsclient.ini file and restarted.
But still getting same error.
# ./check_nrpe -H XXXXXXXXXX -c check_ntp_time
No handler for command: check_ntp_time
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Monitoring for NTP in windows OS
Please post your nsclient.ini file.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
- Posts: 32
- Joined: Wed May 11, 2016 11:59 pm
Re: Monitoring for NTP in windows OS
Hi ,
Please find the attached nsclient file.
Please find the attached nsclient file.
- Attachments
-
- nsclient.txt
- (8.95 KiB) Downloaded 249 times
Re: Monitoring for NTP in windows OS
Thanks for the INI file. The example on the Exchange Site isn't correct so if you edit the nsclient.ini file and change this line from
to
Restart the NSClient service, it should work for you.
You may have to adjust the path for the check_time.vbs script, for example if you copied the script to the scripts folder, the command would be defined like this.
Try that and let us know if it works for you.
Code: Select all
command[check_ntp_time]=cscript.exe //T:30 //NoLogo check_time.vbs server1,server2,server3 20 240
Code: Select all
check_ntp_time=cscript.exe //T:30 //NoLogo check_time.vbs server1,server2,server3 20 240
You may have to adjust the path for the check_time.vbs script, for example if you copied the script to the scripts folder, the command would be defined like this.
Code: Select all
check_ntp_time=cscript.exe //T:30 //NoLogo scripts\\check_time.vbs server1,server2,server3 20 240
Be sure to check out our Knowledgebase for helpful articles and solutions!