[Nagios-users] Nagios disfunctional , perhaps due to time change ?
- Nagios 3.2.0 --- - This morning, I find nagios stopped death in it's tracks. Single daemon running, servcie and host checks are no longer executed. Stopping and restarting NAGIOS does not help. How can I remedy this ? We left DST in Europe. Can this be due to a time change ? All hints welcomed ! Marc. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Hi, This happened to us as well. All services had been scheduled to execute at 11 PM today. The quick fix we used was to stop Nagios, move the objects.cache and retention.dat files and then start it back up again. All acknowledgements etc. were lost but we needed to get back up again soon. Note that this only happened on our 3.2.0 install, another 3.0.6 was fine. I'm still investigating what happened, but the above should let you get it back up again. Regards Martin Melin On Mon, Oct 26, 2009 at 9:05 AM, Mark Elsen wrote: > - Nagios 3.2.0 > --- > > - This morning, I find nagios stopped death in it's tracks. Single > daemon running, > servcie and host checks are no longer executed. > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > We left DST in Europe. Can this be due to a time change ? > > All hints welcomed ! > > Marc. > > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Same here! I spent some time last night figuring out what happended. I ended up downgrading to 3.0.6. I also had to remove the retention.dat. The queue looked really strange. All hosts at top and then services, all at times on the hour (like 23:00:00 today). Reschedule them did not help. I'll stay on 3.0.6 till someone finds an explanation ... :-) Regards, /Marcus On 10/26 09:21, Martin Melin wrote: > Hi, > > This happened to us as well. All services had been scheduled to execute at > 11 PM today. > > The quick fix we used was to stop Nagios, move the objects.cache and > retention.dat files and then start it back up again. All acknowledgements > etc. were lost but we needed to get back up again soon. > > Note that this only happened on our 3.2.0 install, another 3.0.6 was fine. > > I'm still investigating what happened, but the above should let you get it > back up again. > > Regards > Martin Melin > > On Mon, Oct 26, 2009 at 9:05 AM, Mark Elsen wrote: > > > - Nagios 3.2.0 > > --- > > > > - This morning, I find nagios stopped death in it's tracks. Single > > daemon running, > > servcie and host checks are no longer executed. > > > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > > We left DST in Europe. Can this be due to a time change ? > > > > All hints welcomed ! > > > > Marc. > > > > > > -- > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Marcus Rejåsjabber: mar...@jabber.rejas.se ,= ,-_-. =. Rejås Datakonsult ABe-mail: mar...@rejas.se((_/)o o(\_)) Vårgatan 2 web: http://www.rejas.se `-'(. .)`-' s-761 50 Norrtälje gpg-key: http://gpg.rejas.se \_/ -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
This can be solved with issue the following error. service nagios stop; now=$(date +%s); sed -i "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; service nagios start this will only work if: 1. you can issue command 'service' :) 2. you have it installed to /usr/local/nagios On Mon, Oct 26, 2009 at 10:09 AM, Marcus Rejås wrote: > Same here! > > I spent some time last night figuring out what happended. I ended up > downgrading to 3.0.6. I also had to remove the retention.dat. The queue > looked really strange. All hosts at top and then services, all at times on > the hour (like 23:00:00 today). > > Reschedule them did not help. > > I'll stay on 3.0.6 till someone finds an explanation ... :-) > > Regards, > > /Marcus > > On 10/26 09:21, Martin Melin wrote: > > Hi, > > > > This happened to us as well. All services had been scheduled to execute > at > > 11 PM today. > > > > The quick fix we used was to stop Nagios, move the objects.cache and > > retention.dat files and then start it back up again. All acknowledgements > > etc. were lost but we needed to get back up again soon. > > > > Note that this only happened on our 3.2.0 install, another 3.0.6 was > fine. > > > > I'm still investigating what happened, but the above should let you get > it > > back up again. > > > > Regards > > Martin Melin > > > > On Mon, Oct 26, 2009 at 9:05 AM, Mark Elsen > wrote: > > > > > - Nagios 3.2.0 > > > --- > > > > > > - This morning, I find nagios stopped death in it's tracks. Single > > > daemon running, > > > servcie and host checks are no longer executed. > > > > > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > > > We left DST in Europe. Can this be due to a time change ? > > > > > > All hints welcomed ! > > > > > > Marc. > > > > > > > > > > -- > > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > > is the only developer event you need to attend this year. Jumpstart > your > > > developing skills, take BlackBerry mobile applications to market and > stay > > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > > http://p.sf.net/sfu/devconference > > > ___ > > > Nagios-users mailing list > > > Nagios-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > ::: Please include Nagios version, plugin version (-v) and OS when > > > reporting any issue. > > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > -- > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > -- > Marcus Rejåsjabber: mar...@jabber.rejas.se ,= ,-_-. =. > Rejås Datakonsult ABe-mail: mar...@rejas.se((_/)o o(\_)) > Vårgatan 2 web: http://www.rejas.se `-'(. .)`-' > s-761 50 Norrtälje gpg-key: http://gpg.rejas.se \_/ > > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Vänliga hälsningar / Best Regards Mattias Ryrlén __ op5 AB Första Långgatan 19 SE-413 27 Göteborg Mobil: +46 735-17 70 99 Support: +46 31-774 09 24 www.op5.com -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 -
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Ref : service nagios stop; now=$(date +%s); sed -i "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; service nagios start - > The purpose is that due to daylight saving, the schedule queue is broken. > (will probably catchup at 23:00:00 tonight) > what you do is stop nagios > update the timestamp for next_check in status.sav to $now (instead of > 23:00:00 tonight) on all your services. > then start up nagios again and service-checks will start checking again. > As I would like , NAGIOS to keep working, during DST related changes, can this be considered as a bug ? M. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Hi! On 26 Oct 2009, at 10:18, Mattias Ryrlén wrote: This can be solved with issue the following error. service nagios stop; now=$(date +%s); sed -i "s/^next_check=.*/ next_check=$now/" /usr/local/nagios/var/status.sav; service nagios start this will only work if: 1. you can issue command 'service' :) 2. you have it installed to /usr/local/nagios We've also seen this bug. We've provided another way of fixing this. You can find more details here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Ton -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Ton Voon wrote: > Hi! > > On 26 Oct 2009, at 10:18, Mattias Ryrlén wrote: > >> This can be solved with issue the following error. >> >> service nagios stop; now=$(date +%s); sed -i >> "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; >> service nagios start >> >> this will only work if: >> 1. you can issue command 'service' :) >> 2. you have it installed to /usr/local/nagios > > We've also seen this bug. > > We've provided another way of fixing this. You can find more details > here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Hi, this change is causing the wrong reschedule: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch It has been applied on 15th of January 2009 and introduced some statements t->tm_isdst=-1; into base/utils.c. Affected are all Nagios versions >= 3.1.0. I could reproduce it here: if the patch above is backed out, the scheduling behaves correctly. -Matthias -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Ton Voon escribió: > Hi! > > On 26 Oct 2009, at 10:18, Mattias Ryrlén wrote: > >> This can be solved with issue the following error. >> >> service nagios stop; now=$(date +%s); sed -i >> "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; >> service nagios start >> >> this will only work if: >> 1. you can issue command 'service' :) >> 2. you have it installed to /usr/local/nagios > > We've also seen this bug. OK, but have you saw this bug afer changing the system clock ? I have saw thsi issue about 13 hours later. I am not sure about the relation between the nagios problem and have detected a similar error 2 weeks ago. 1 week ago I have upgraded my Nagios 3.0 installation to a 3.2 version. This is my message (if you are interesting): http://sourceforge.net/mailarchive/forum.php?thread_name=4AE562F7.4090904%40gmail.com&forum_name=nagios-users > > We've provided another way of fixing this. You can find more details > here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html > > Ton > > > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > > > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
2009/10/26 Mark Elsen : > - Nagios 3.2.0 > --- > > - This morning, I find nagios stopped death in it's tracks. Single > daemon running, > servcie and host checks are no longer executed. > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > We left DST in Europe. Can this be due to a time change ? > > All hints welcomed ! Hi, For people that does not want to patch Nagios nor lost ack, comment, downtime but fix the problem see : http://blog.centreon.com/index.php?post/2009/10/26/Nagios-disfunctional-due-to-time-change Hope it helps. -- Cédric Temple | Chef de Projet ctem...@merethis.com Tél: +33 (0)1 49 69 97 12 Mob: +33 (0)6 63 67 77 66 Fax: +33 (0)1 78 12 00 28 MERETHIS est éditeur du logiciel Centreon. -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
When we run into this in the US, what is the easiest way to correct the issue if we don't need to retain and downtime, acts or any status data. Is there a file or two that just needs to be deleted? Thanks, Chris -Original Message- From: Matthias Flacke [mailto:matthias.fla...@gmx.de] Sent: Monday, October 26, 2009 8:55 AM To: Ton Voon Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ? Ton Voon wrote: > Hi! > > On 26 Oct 2009, at 10:18, Mattias Ryrlén wrote: > >> This can be solved with issue the following error. >> >> service nagios stop; now=$(date +%s); sed -i >> "s/^next_check=.*/next_check=$now/" /usr/local/nagios/var/status.sav; >> service nagios start >> >> this will only work if: >> 1. you can issue command 'service' :) >> 2. you have it installed to /usr/local/nagios > > We've also seen this bug. > > We've provided another way of fixing this. You can find more details > here: http://opsview-blog.opsera.com/dotorg/2009/10/nagios-scheduling-bug.html Hi, this change is causing the wrong reschedule: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch It has been applied on 15th of January 2009 and introduced some statements t->tm_isdst=-1; into base/utils.c. Affected are all Nagios versions >= 3.1.0. I could reproduce it here: if the patch above is backed out, the scheduling behaves correctly. -Matthias -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
Hello, Same bug. Last sunday, in France, Daylight saving time ends so clocks retreat from 03:00 CEST to 02:00 CET. Today, I see that many checks of my nagios server have problems : next check is scheduled today at 11:00pm but, in the config files, the check interval is set to 5 minutes. More over, last week, it works as expected with checks every 5 minutes. Mark Elsen a écrit : > - Nagios 3.2.0 > --- > > - This morning, I find nagios stopped death in it's tracks. Single > daemon running, > servcie and host checks are no longer executed. > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > We left DST in Europe. Can this be due to a time change ? > > All hints welcomed ! > > Marc. > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when reporting > any issue. > ::: Messages without supporting info will risk being sent to /dev/null > > > -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
If our configuration is not using daytime offset, are we still affected by this bug. Nagios version 3.2.0 Please advise on this. Thanks On Mon, Oct 26, 2009 at 12:57 PM, xesos wrote: > Hello, > > Same bug. > > Last sunday, in France, Daylight saving time ends so clocks retreat from > 03:00 CEST to 02:00 CET. > > Today, I see that many checks of my nagios server have problems : next > check is scheduled today > at 11:00pm but, in the config files, the check interval is set to 5 > minutes. More over, last week, it works as expected with checks every 5 > minutes. > > > Mark Elsen a écrit : > > - Nagios 3.2.0 > > --- > > > > - This morning, I find nagios stopped death in it's tracks. Single > > daemon running, > > servcie and host checks are no longer executed. > > > > Stopping and restarting NAGIOS does not help. How can I remedy this ? > > We left DST in Europe. Can this be due to a time change ? > > > > All hints welcomed ! > > > > Marc. > > > > > -- > > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > > is the only developer event you need to attend this year. Jumpstart your > > developing skills, take BlackBerry mobile applications to market and stay > > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > > http://p.sf.net/sfu/devconference > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > > ::: Messages without supporting info will risk being sent to /dev/null > > > > > > > > > > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
On 26 Oct 2009, at 12:53, Matthias Flacke wrote: this change is causing the wrong reschedule: http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch It has been applied on 15th of January 2009 and introduced some statements t->tm_isdst=-1; into base/utils.c. Affected are all Nagios versions >= 3.1.0. I could reproduce it here: if the patch above is backed out, the scheduling behaves correctly. I've managed to get a libtap test case with the failure now. As you correctly say, removing the t->tm_isdst=-1 in utils.c fixes it. However, the fact it works is lucky. The check is that the scheduled time is between a date_range_start and a date_range_end. This date_range_end is based on the timeperiod definitions. However, an end point of 00:00 is calculated as 24*60*60. Obviously, this is wrong on the day that the clocks go back as there are 25 hours in that day. So removing tm_isdst gets the calculation for the epoch time wrong, but that luckily works because the time falls within the 24 hour period. I've applied the patch to remove that single tm_isdst. Tests are also added now, for this specific issue. Long term, I think it is correct that the isdst flag be set, but there are other problems that are lurking in the code, such as the calculation for the next appropriate time. Any comments? Ton -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios disfunctional , perhaps due to time change ?
All Is there an official patch for this? can someone please advise on this? Thanks On Mon, Oct 26, 2009 at 1:36 PM, Ton Voon wrote: > > On 26 Oct 2009, at 12:53, Matthias Flacke wrote: > > > this change is causing the wrong reschedule: > > http://nagios.cvs.sourceforge.net/viewvc/nagios/nagios/base/utils.c?r1=1.236&r2=1.237&view=patch > > It has been applied on 15th of January 2009 and introduced some > statements > > t->tm_isdst=-1; > > into base/utils.c. > > Affected are all Nagios versions >= 3.1.0. > > I could reproduce it here: if the patch above is backed out, the > scheduling behaves correctly. > > > > I've managed to get a libtap test case with the failure now. As you > correctly say, removing the t->tm_isdst=-1 in utils.c fixes it. > > However, the fact it works is lucky. > > The check is that the scheduled time is between a date_range_start and a > date_range_end. This date_range_end is based on the timeperiod definitions. > However, an end point of 00:00 is calculated as 24*60*60. Obviously, this is > wrong on the day that the clocks go back as there are 25 hours in that day. > > So removing tm_isdst gets the calculation for the epoch time wrong, but > that luckily works because the time falls within the 24 hour period. > > I've applied the patch to remove that single tm_isdst. > > Tests are also added now, for this specific issue. > > Long term, I think it is correct that the isdst flag be set, but there are > other problems that are lurking in the code, such as the calculation for the > next appropriate time. > > Any comments? > > Ton > > > > > -- > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null > -- Cordially, Shadhin Rahman -- Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null