Excluding timeperiods

Marco Ramos mramos at co.sapo.pt
Wed Jun 20 00:34:32 CEST 2007


Hi,

if I'm not missing something, you want to be notified everytime except 
between 04:00 and 04:30, am I right?

If this is what you want, simply dedine something like this in your 
timeperiod.cfg:

define timeperiod {
  timeperiod_name       foobar
  alias           Foo Bar
  sunday          00:00-04:00,04:30-24:00
  monday          00:00-04:00,04:30-24:00
  tuesday         00:00-04:00,04:30-24:00
  wednesday       00:00-04:00,04:30-24:00
  thursday        00:00-04:00,04:30-24:00
  friday          00:00-04:00,04:30-24:00
  saturday        00:00-04:00,04:30-24:00
}

And then you just have to apply this timeperiod to every object you want.

HTH,
Marco Ramos

----- Original Message ----- 
From: "john" <lists at cloned.org.uk>
To: <nagios-users at lists.sourceforge.net>
Sent: Tuesday, June 19, 2007 11:21 PM
Subject: [Nagios-users] Excluding timeperiods


> Hi,
> I'm using nagios 2.5 and I need to exclude a service from notifying within
> a certain time as it performs regular maintenance by itself.
>
> I set the time period to notify to be 04:30-04:00 and it doesn't seem to
> notify at all. I assume this doesn't understand it to be from 0430am to
> 0400am the next day?
>
> Is there a way around this (apart from upgrading to 3.0 which is on my
> list of thigns to look at)?
>
> Cheers,
>
> john
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> 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 SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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