Page 1 of 1
windows Tim sync alert is not generating.
Posted: Wed Sep 20, 2017 7:09 am
by anish
Hi
We have configured the windows time sync on Nagiosxi console but critical or warning alerts are not recognize by check_nrpe.
It's always collecting showing as OK state .even if critical or warning threshold limit crossed also.
Target server level windows time sync script is working and generating alerts but It's not generated on Nagiosxi console.
https://exchange.nagios.org/directory/P ... 29/details
This not working All windows OS server.
Please provide solution on this.
Re: windows Tim sync alert is not generating.
Posted: Wed Sep 20, 2017 9:43 am
by kyang
Hi
@anish,
Did you enable command arguments on your nsclient.ini file?
Can you post the command that you using so I can see how you are passing thresholds?
Can you upload your nsclient.ini file?
Re: windows Tim sync alert is not generating.
Posted: Wed Sep 20, 2017 10:18 am
by anish
We have uploaded the ini file and screenshot of service configuration.
Please Check this and let us know.
Re: windows Tim sync alert is not generating.
Posted: Wed Sep 20, 2017 5:06 pm
by dwhitfield
There appears to be something wrong with that script. We get the exact same behavior as you. That is not a script we wrote, so you will need to modify it or find one that works.
Re: windows Tim sync alert is not generating.
Posted: Thu Sep 21, 2017 5:44 am
by anish
Attached the script file and Please validate it and let us know.
Re: windows Tim sync alert is not generating.
Posted: Thu Sep 21, 2017 9:58 am
by dwhitfield
What versions of Windows are giving you this issue? I know you said it was all of them, but we are able to get it to work on some versions of Windows, so we want to make sure we test all of your versions.
Re: windows Tim sync alert is not generating.
Posted: Thu Sep 21, 2017 10:10 am
by lmiltchev
I am not able to recreate the issue. I tried running the check against a Windows 7 machine. Here's the output:
Code: Select all
[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x
I (0.4.4.15 2015-11-25) seem to be doing fine...
[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_windows_time -a 'pool.ntp.org 20 80'
OK: Time is +02.8174125s from pool.ntp.org|'Offset'=2s;20;80;0
[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_windows_time -a 'pool.ntp.org 1 2'
CRITICAL: Time is +02.8148015s from pool.ntp.org|'Offset'=2s;1;2;0
[root@main-nagios-xi ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_windows_time -a 'pool.ntp.org 2 3'
WARNING: Time is +02.8112573s from pool.ntp.org|'Offset'=2s;2;3;0
Can you show us similar checks, run from the command line on the Nagios XI server along with the output of them?