Page 2 of 2

Re: freshness checks stop working periodically

Posted: Sat May 21, 2016 3:28 am
by WillemDH
Sean,

I'm having the issue again at this moment and it's again on an event from 07:02.

I've been looking for the SQL query and indeed my password has chaged, so I updated the query which gave me no results..

Code: Select all

echo "select * from nagios_timedevents; select * from nagios_timedeventqueue;" | mysql -pCorrectPassword nagios
So I know at 07:00 exact there is a scheduled apply configuration. As a test I changed the schedule, so it now runs at 07:15 instead of at 07:00.

I added another screenshot. As you can see everything seemed to work well for some time. States were always reset after 5 minutes. Untill 13/05 where freshnesh apprently no longer resets the state..

I did a minor unrelated change which needed an apply and just noticed that suddenly the state did reset to an OK state at 10:32. See screenshot. Please let me know what else I can do to troubleshoot this.

Grtz

Re: freshness checks stop working periodically

Posted: Mon May 23, 2016 2:33 am
by WillemDH
So, very weird, but after changing the automatic apply from 07:00 to 07:15, it appears the state gets reset right after the apply configuration... Check the screenshot. Please advice what to do with this and make my XI reset states after 5 minutes as defined in my config by the freshnesh directive..

Re: freshness checks stop working periodically

Posted: Mon May 23, 2016 11:56 am
by ssax
Does it happen every time you apply config or just when run through Reactor?

Re: freshness checks stop working periodically

Posted: Mon May 23, 2016 4:03 pm
by WillemDH
Not sure what you mean.. the apply is not the cause.it seems like the apply is the solution to get it working again?

Re: freshness checks stop working periodically

Posted: Mon May 23, 2016 4:34 pm
by tgriep
Do you have active checks enabled for that service?
If the check results is found to be stale, Nagios will force an active check of the host or service by executing the command specified by in the host or service definition.
https://assets.nagios.com/downloads/nag ... hness.html
Check that and see if this helps out on this issue.

Re: freshness checks stop working periodically

Posted: Tue May 24, 2016 2:51 am
by WillemDH
Active checks were not enabled for these services Tom, becasue the documentation says:
An active check is executed even if active checks are disabled on a program-wide or host- or service-specific basis.
Anyway I just enabled acive checks for these services. Active check interval is 1440, retry and max check is 1. Who knows it might help..

Grtz

Willem

Re: freshness checks stop working periodically

Posted: Tue May 24, 2016 11:57 am
by tgriep
Just trying one more thing to troubleshoot this. Let us know how it works out.