windows Tim sync alert is not generating.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

windows Tim sync alert is not generating.

Post 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.
Last edited by Anonymous on Wed Sep 20, 2017 9:45 am, edited 1 time in total.
Reason: Fixed exchange URL for plugin
kyang

Re: windows Tim sync alert is not generating.

Post 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?
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: windows Tim sync alert is not generating.

Post by anish »

We have uploaded the ini file and screenshot of service configuration.

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.

Post 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.
anish
Posts: 161
Joined: Tue Jul 19, 2016 5:29 am

Re: windows Tim sync alert is not generating.

Post by anish »

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.

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: windows Tim sync alert is not generating.

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked