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.
windows Tim sync alert is not generating.
windows Tim sync alert is not generating.
Last edited by Anonymous on Wed Sep 20, 2017 9:45 am, edited 1 time in total.
Reason: Fixed exchange URL for plugin
Reason: Fixed exchange URL for plugin
-
kyang
Re: windows Tim sync alert is not generating.
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?
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.
We have uploaded the ini file and screenshot of service configuration.
Please Check this and let us know.
Please Check this and let us know.
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: windows Tim sync alert is not generating.
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.
Attached the script file and Please validate it and let us know.
You do not have the required permissions to view the files attached to this post.
-
dwhitfield
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: windows Tim sync alert is not generating.
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.
I am not able to recreate the issue. I tried running the check against a Windows 7 machine. Here's the output:
Can you show us similar checks, run from the command line on the Nagios XI server along with the output of them?
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;0Be sure to check out our Knowledgebase for helpful articles and solutions!