Issues with timeperiods

Fulton, David dfulton at nuvox.com
Tue Jul 22 22:41:43 CEST 2008


BTW, I am running 3.0.3 on a RHEL 5 box on x86_64

David Fulton
Systems Administrator
NUVOX
O:407-835-0470
C:321-246-2238 

> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net 
> [mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf 
> Of Fulton, David
> Sent: Tuesday, July 22, 2008 4:34 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Issues with timeperiods
> 
> I was attempting to setup an on call rotation per the 
> directions on the website and have run into a little snag 
> that I am not sure really is a snag. My timeperiods file 
> looks like this:
> 
> define timeperiod{
> 	timeperiod_name	cbakeroncall
> 	alias		Charles Baker on call weeks
> 	2008-07-21	00:00-24:00
> }
> # timeperiods.cfg - Config file for Nagios (www.nagios.org) # 
> # Written by Nawui 0.1.5-dev. Manually editing this file is a 
> bad idea since Nawui will # overwrite it. 
> #
> # Exported at 11:54:47 - 01 Apr 2004
> #
> 
> 
> define timeperiod {
> 	timeperiod_name	24x7
> 	alias		24 Hours A Day, 7 Days A Week
> 	sunday		00:00-24:00
> 	monday		00:00-24:00
> 	tuesday		00:00-24:00
> 	wednesday	00:00-24:00
> 	thursday	00:00-24:00
> 	friday		00:00-24:00
> 	saturday	00:00-24:00
> }
> 
> define timeperiod {
> 	timeperiod_name	workhours
> 	alias		Work hours
> 	monday		08:00-18:00
> 	tuesday		08:00-18:00
> 	wednesday	08:00-18:00
> 	thursday	08:00-18:00
> 	friday		08:00-18:00
> }
> 
> define timeperiod {
> 	timeperiod_name	nonworkhours
> 	alias		Non-Work Hours
> 	sunday		00:00-24:00
> 	monday		00:00-09:00,17:00-24:00
> 	tuesday		00:00-09:00,17:00-24:00
> 	wednesday	00:00-09:00,17:00-24:00
> 	thursday	00:00-09:00,17:00-24:00
> 	friday		00:00-09:00,17:00-24:00
> 	saturday	00:00-24:00
> }
> 
> define timeperiod {
> 		timeperiod_name	none
> 		alias		No Time Is A Good Time
> }
> 
> # This says some guy named Nawui is gonna overwrite this file 
> if I put this here.
> # Well, I'm just that crazy.
> define timeperiod {
> 	timeperiod_name	non_netapp_maintenance
> 	alias		Always except NetApp Maintenance cronjobs
> 	sunday		00:00-01:00,05:00-24:00
> 	monday		00:00-01:00,05:00-24:00
> 	tuesday		00:00-01:00,05:00-24:00
> 	wednesday	00:00-01:00,05:00-24:00
> 	thursday	00:00-01:00,05:00-24:00
> 	friday		00:00-01:00,05:00-24:00
> 	saturday	00:00-01:00,05:00-24:00
> }
> 
> Now, the problem is at the top of the file, if I look at the 
> timeperiods config in the CGI it looks like this:
> 
> Time Periods
> 
> Name 	Alias/Description 	Exclusions 	Days/Dates 	Times
> 24x7 	24 Hours A Day, 7 Days A Week 		sunday	00:00:00 -
> 24:00:00 
> 	monday	00:00:00 - 24:00:00 
> 	tuesday	00:00:00 - 24:00:00 
> 	wednesday	00:00:00 - 24:00:00 
> 	thursday	00:00:00 - 24:00:00 
> 	friday	00:00:00 - 24:00:00 
> 	saturday	00:00:00 - 24:00:00 
> cbakeroncall 	Charles Baker on call weeks 		2008-05-21
> 00:00:00 - 24:00:00
> non_netapp_maintenance 	Always except NetApp 
> Maintenance cronjobs
> sunday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> 	monday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> 	tuesday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> 	wednesday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> 	thursday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> 	friday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> 	saturday	05:00:00 - 24:00:00, 00:00:00 - 01:00:00 
> none 	No Time Is A Good Time 		
> nonworkhours 	Non-Work Hours 		sunday	00:00:00 - 24:00:00 
> 	monday	17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
> 	tuesday	17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
> 	wednesday	17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
> 	thursday	17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
> 	friday	17:00:00 - 24:00:00, 00:00:00 - 09:00:00 
> 	saturday	00:00:00 - 24:00:00 
> workhours 	Work hours 		monday	08:00:00 - 18:00:00 
> 	tuesday	08:00:00 - 18:00:00 
> 	wednesday	08:00:00 - 18:00:00 
> 	thursday	08:00:00 - 18:00:00 
> 	friday	08:00:00 - 18:00:00 
> 
> Notice the date in the config file is 2008-07-21 and the date 
> the CGI reports is 2008-05-21. So my question is this, is 
> this just a matter of the CGI being broken and not being able 
> to correctly interpret the configuration, or is it nagios 
> itself that is broken. If it is just the CGI I will be 
> perfectly okay with that. If not, I would like to put it in as a bug.
> 
> Thanks
> 
> David Fulton
> Systems Administrator
> NUVOX
> O:407-835-0470
> C:321-246-2238
> 
> 
> This email and any attachments ("Message") may contain 
> legally privileged and/or confidential information.  If you 
> are not the addressee, or if this Message has been addressed 
> to you in error, you are not authorized to read, copy, or 
> distribute it, and we ask that you please delete it 
> (including all copies) and notify the sender by return email. 
>  Delivery of this Message to any person other than the 
> intended recipient(s) shall not be deemed a waiver of 
> confidentiality and/or a privilege.
> 
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move 
> Developer's challenge Build the coolest Linux based 
> applications with Moblin SDK & win great prizes Grand prize 
> is a trip for two to an Open Source event anywhere in the 
> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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 email and any attachments ("Message") may contain legally privileged and/or confidential information.  If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email.  Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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