Flexible downtime not working

Claudio Kuenzler ck at claudiokuenzler.com
Mon Apr 2 15:38:27 CEST 2012


Well without blaming anyone, the easiest reason for this to cause would be
a human mistake in interpreting the schedule downtime form (often happens
with fixed/flexible) and by setting a wrong end date.
When you were in the Downtime overview, did you take a look at the
specified End Time column? What was written there before you clicked the
delete icon?

I suggest you go to your var/archives folder and check the logfile of April
1st for the external command, sth like this:

[1333358804] EXTERNAL COMMAND:
SCHEDULE_SVC_DOWNTIME;hostname;NTP;1333358695;1333365895;0;0;3600;Nagios
Admin;test flexible
[1333373670] EXTERNAL COMMAND:
SCHEDULE_SVC_DOWNTIME;hostname;SSH;1333373648;1333384448;1;0;7200;Nagios
Admin;test fixed

These timestamps tell you WHEN the external command was launched, when the
downtime starts and when the downtime ends.
Also, note the 0 and 1 behind the end timestamp. Integer 0 indicates a
flexible downtime, a 1 indicates a fixed scheduled downtime.

To answer your question: Yes, after the end of the scheduled downtime,
normal monitoring should have resumed.



On Mon, Apr 2, 2012 at 2:54 PM, Deborah Martin
<Deborah.Martin at kognitio.com>wrote:

> Hi Claudio, ****
>
> ** **
>
> Thanks for info. But I’m a little puzzled. ****
>
> ** **
>
> I clarified the steps that were taken. It turns out that he didn’t use
> Flexible but instead used fixed. However, he’s sure that the dates were set
> to 1st April for the start and end date. ****
>
> So, surely once the date changed to the 2nd April, at the very least,
> normal monitoring should have resumed or is that not correct ? ****
>
> ** **
>
> In fact I took your advice and removed the fixed downtime manually. ****
>
> ** **
>
> ** **
>
> These are the nagios log entries I see for this service :-****
>
> ** **
>
> 04-01-2012 00:00:00****
>
> 04-01-2012 06:00:00****
>
> 0d 6h 0m 0s****
>
> SERVICE OK (HARD)****
>
> 60 rows in dsa.mdf_reservation in last 10 minutes****
>
> 04-01-2012 06:00:00****
>
> 04-01-2012 06:46:11****
>
> 0d 0h 46m 11s****
>
> SERVICE DOWNTIME START****
>
> Start of scheduled downtime****
>
> 04-01-2012 06:46:11****
>
> 04-01-2012 14:00:10****
>
> 0d 7h 13m 59s****
>
> SERVICE CRITICAL (HARD)****
>
> 0 rows in dsa.mdf_reservation in last 10 minutes****
>
> 04-01-2012 14:00:10****
>
> 04-02-2012 11:26:18****
>
> 0d 21h 26m 8s****
>
> SERVICE OK (HARD)****
>
> 331 rows in dsa.mdf_reservation in last 10 minutes****
>
> 04-02-2012 11:26:18****
>
> 04-02-2012 11:47:16****
>
> 0d 0h 20m 58s+****
>
> SERVICE DOWNTIME END****
>
> End of scheduled downtime****
>
> ** **
>
> The last entry is when I manually put the service back to normal
> monitoring. ****
>
> ** **
>
> Regards,****
>
> Deborah ****
>
> ** **
>
> ** **
>
> *From:* Claudio Kuenzler [mailto:ck at claudiokuenzler.com]
> *Sent:* 02 April 2012 10:29
> *To:* Nagios Users List
> *Subject:* Re: [Nagios-users] Flexible downtime not working****
>
> ** **
>
> Hello Deborah,
>
> If you use Flexible Downtimes, don't forget to select "Flexible" from the
> Select-Menu (Type). Otherwise the fixed dates are taken (Start Date, End
> Date).
>
> To remove a host or service from a scheduled downtime, click on "Downtime"
> in the left navigation. There you can delete the wanted entry.
>
> cheers****
>
> On Mon, Apr 2, 2012 at 10:42 AM, Deborah Martin <
> Deborah.Martin at kognitio.com> wrote:****
>
> Hi, ****
>
>  ****
>
> We use Nagios 3.2.0 on SLES 10 SP2 to monitor a few hundred services. ****
>
>  ****
>
> Yesterday, we put a particular service into flexible downtime from around
> 7am to 2pm. However, it seems to still be stuck in flexible downtime so any
> alerts after 2pm haven’t been sent out. ****
>
>  ****
>
> I’m not entirely sure why this is happening as I’ve used this before and
> never had any problems. Has anyone come across this before ? Is there a way
> to kick this service back into normal monitoring ? ****
>
>  ****
>
> Thanks,****
>
> Deborah ****
>
>  ****
>
>
> ****
>
> This e-mail and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. If you are not the intended recipient, please delete this e-mail
> immediately. Any unauthorised distribution or copying is strictly
> prohibited.
>
> Whilst Kognitio endeavours to prevent the transmission of viruses via
> e-mail, we cannot guarantee that any e-mail or attachment is free from
> computer viruses and you are strongly advised to undertake your own
> anti-virus precautions. Kognitio grants no warranties regarding
> performance, use or quality of any e-mail or attachment and undertakes no
> liability for loss or damage, howsoever caused.****
>
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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****
>
> ** **
>
> **
>
> This e-mail and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they are
> addressed. If you are not the intended recipient, please delete this e-mail
> immediately. Any unauthorised distribution or copying is strictly
> prohibited.
>
> Whilst Kognitio endeavours to prevent the transmission of viruses via
> e-mail, we cannot guarantee that any e-mail or attachment is free from
> computer viruses and you are strongly advised to undertake your own
> anti-virus precautions. Kognitio grants no warranties regarding
> performance, use or quality of any e-mail or attachment and undertakes no
> liability for loss or damage, howsoever caused.
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120402/ec37b9dd/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list