Next scheduled check time one year ahead

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Next scheduled check time one year ahead

Postby Asm0 » Sun Nov 04, 2018 4:48 am

Hi,

So I have an odd problem with Nagios core since a few months. For some reason the next check time of a service will be scheduled one year ahead after it is being executed. When I manually re-schedule the check it is working and the next scheduled time is correct again until some random point where it's getting wrong again. This happens for a lot of services with different which all have different check intervals. I don't see pattern in this behaviour.

As a workaround I have a script which sets the use_retained_scheduling_info to 0, restarts Nagios, sets it back to 1 and restarts again. This corrects the scheduled time for some checks but not for all.

Does anyone know what could be the reason of such behaviour?
I am new to Nagios so I do not have a lot of experience with it.

Thanks a lot.
Attachments
nagios_bug_2.PNG
nagios_bug.PNG
Asm0
 
Posts: 3
Joined: Wed Sep 27, 2017 9:09 am

Re: Next scheduled check time one year ahead

Postby mcapra » Mon Nov 05, 2018 11:59 am

Which version of Nagios Core are you using?

How many total checks is Nagios Core processing? Can you share the output of a nagiostats execution?
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3462
Joined: Thu May 05, 2016 3:54 pm

Re: Next scheduled check time one year ahead

Postby scottwilkerson » Mon Nov 05, 2018 3:23 pm

Also, are you sure your server didn't inadvertently experience a time shift where at some point the server was updated to a date in the future?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Next scheduled check time one year ahead

Postby Asm0 » Mon Dec 03, 2018 8:02 am

Sorry for the late response.

The version which is in use is 3.0.6.
I do not have the utility nagiostats. I can only share the output of the extinfo.cgi with you.
Is there any way to get the utility. I havent found any download source for it.

About the time shift. I thought the same thing at first. But the problem is happening every few days again with only some checks. And I have not found any evidence that the server time changed in any way.
Attachments
nagios_info2.PNG
nagios_info1.PNG
Asm0
 
Posts: 3
Joined: Wed Sep 27, 2017 9:09 am

Re: Next scheduled check time one year ahead

Postby scottwilkerson » Mon Dec 03, 2018 5:25 pm

Version 3.0.6 was released just over 10 years ago, and I know for fact that dozens of scheduling bugs have been fixed over the last 10 years
Version 3.x changes
https://github.com/NagiosEnterprises/nagioscore/blob/nagios-3.5.0/Changelog
Version 4.x changes
https://github.com/NagiosEnterprises/nagioscore/blob/master/Changelog

Is there any chance of upgrading, picking out which may have caused this on a 10 year old version will be very tricky
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Next scheduled check time one year ahead

Postby Asm0 » Tue Dec 04, 2018 4:06 am

I am aware that the version in use is very outdated. But i wanted to avoid to upgrade it because it has not been installed by me in the first place. I am just the guy who has to add new checks and maintain them. Therefore it is not easy to upgrade from 3.0.6 to 4.x for me because the directory stucture is completely different to the ones used in all the upgrade manuals.

But yeah, you are 100% right. Sooner or later i have to do the upgrade anyway. What i will probably do is setup a completely new Nagios installation on another server and migrate the config files.

Thanks for your help.
Asm0
 
Posts: 3
Joined: Wed Sep 27, 2017 9:09 am

Re: Next scheduled check time one year ahead

Postby scottwilkerson » Tue Dec 04, 2018 8:30 am

Asm0 wrote:But yeah, you are 100% right. Sooner or later i have to do the upgrade anyway. What i will probably do is setup a completely new Nagios installation on another server and migrate the config files.


That is a solid idea, then you can leave them both running until everything is working properly on the new system
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 12594
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises


Return to Nagios Core

Who is online

Users browsing this forum: thembre, Zen and 22 guests