Getting Notifications Outside of Defined Time Periods

Matt Baer matt at baerconsult.com
Wed Mar 3 04:28:34 CET 2010


SImply genious . That appears to be the issue, but I haven't a clue how to fix it, as it appears to be a formatting error. 

Here's what the cfg file shows: 

# Mail Server Downtime 
define timeperiod{ 
timeperiod_name MailServ 
alias Monitored 24x7 Except During A Backup 
sunday 00:00-02:45,03:30-24:00 
monday 00:00-02:45,03:30-24:00 
tuesday 00:00-02:45,03:30-24:00 
wednesday 00:00-02:45,03:30-24:00 
thursday 00:00-02:45,03:30-24:00 
friday 00:00-02:45,03:30-24:00 
saturday 00:00-02:45,03:30-24:00 
} 


And here's what's given with the method you described: 

MailServ 	Monitored 24x7 Except During A Backup 	
	sunday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 

	monday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 

	tuesday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 

	wednesday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 

	thursday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 

	friday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 

	saturday 	03:30:00 - 24:00:00, 00:00:00 - 02:45:00 
Is the formatting an issue? 

define host{ 
use generic-host 
host_name Mail 
alias Mail_Server 
address 10.0.0.10 
check_command check-host-alive 
max_check_attempts 10 
notification_interval 10 
notification_period MailServ 
notification_options d,u,r 
} 




----- Original Message ----- 
From: "Martin Melin" <martinm at op5.org> 
To: "Matt Baer" <matt at baerconsult.com> 
Cc: "nagios-users" <nagios-users at lists.sourceforge.net> 
Sent: Tuesday, March 2, 2010 7:07:50 PM 
Subject: Re: [Nagios-users] Getting Notifications Outside of Defined Time Periods 

It sounds like the check_time_period of your checks is not being set to what you think it is. 


I suggest that you use config.cgi (View Config in the sidebar menu) to check what Nagios is actually using as the running configuration. Go to Services, check the Check Period value. Then go to Time Periods and verify what the definition of that Check Period alias is ("never" is not a magic word, it is just an alias so it could conceivably be something else than never). 


On Wed, Mar 3, 2010 at 1:07 AM, Matt Baer < matt at baerconsult.com > wrote: 




I'm having an issue with Nagios sending me notifications during time periods that are not included within the designated period. I've tested this by setting the time period to 'never', restarting Nagios and I STILL get notifications. 

I have a backup that runs on my Mail Server 3-4 times a week. In order to do the backup process, I have to down my mail server. So you can imagine that I'm getting dozens of emails at very early times in the morning. Any ideas? 


-- 
Martin Melin 

May your delusions be benign and your compulsions have utility 
____________________________ 
op5 AB 
http://www.op5.com 

http://www.op5.org/ 
http://www.op5.com/op5/products/network-monitor/nagios/ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100302/0929b48c/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- 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