On 11/16/2010 10:43 PM, Andreas Ericsson wrote:
> Please set your MUA to wrap long lines at something sensible (72 chars
> is the standard, I think).
> 
> On 11/16/2010 09:44 PM, Chung, Jeff wrote:
>> Hi, Here is the problem I'm trying to solve.  We have services that
>> have a set maintenance window, for example every Tuesday from 13:30
>> to 14:00.  So to stop Nagios from sending notifications during this
>> maintenance window I have created a time period that excludes
>> "tuesday 13:30-14:00" and use it as the notification_period for the
>> service.  When testing this it seems like Nagios isn't correctly
>> picking the next available time to send notifications out.  I have
>> configured a service called "TEST_SERVICE2" to return CRITICAL status
>> starting at 13:57:28 (which is during the maintenance window).  In
>> Nagios' debug log it says "Next possible notification time: Wed Nov
>> 17 00:00:00 2010", but I think the next possible time should be Nov
>> 16 14:00 or soon after.  Anyone else came across this issue?
>>
> 
> exclude is a fairly new feature, which surprisingly few people use.
> I have no doubts there are bugs in it. Thanks for reporting this
> though. I should probably write up a test-case for it, but that'll
> have to wait til next time I'm fiddling with the Nagios sources.
> 

On a side-note though; Does it work properly if you create your
'test' timeperiod like so:

define timeperiod {
        use             24x7
        timeperiod_name test
        alias           Test timeperiod
        tuesday         00:00-13:30,14:00-24:00
}

If it does, we'll know for sure that it's a bug with the 'exclude'
directive. Thanks.

-- 
Andreas Ericsson                   andreas.erics...@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231

Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
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

Reply via email to