Exclude Notifications during certian hours

Alex Griffin agriffin at nagios.com
Mon Feb 27 17:25:36 CET 2012


There may be a better way to do this, but I believe this will work. 
Define a new timeperiod like so:

     define timeperiod{
         timeperiod_name 	exclude_nights
         alias           	No notifications 00:30-6:30
         sunday          	00:00-00:29,06:31-24:00
         monday          	00:00-00:29,06:31-24:00
         tuesday         	00:00-00:29,06:31-24:00
         wednesday       	00:00-00:29,06:31-24:00
         thursday        	00:00-00:29,06:31-24:00
         friday          	00:00-00:29,06:31-24:00
         saturday        	00:00-00:29,06:31-24:00
         }

Then in the appropriate host definitions add 'check_period exclude_nights'.

Alex Griffin
---
Tech Team
agriffin at nagios.com

Andrew Thompson wrote:
> Hi all,
>
> I have all my servers (approx. 70) monitored by PING using the 24x7 time
> period and notifications set to 24x7.
>
> Im happy with this as I want to know when my servers go down at all
> times as a lot are critical and under strict SLA’s.
>
> However I have the need to exclude notifications for 1 physical host and
> 6 virtual hosts that sit on this physical host during the hours of
> 00:30-06:30 every night.
>
> These machines are not under any SLA and often reboot during the night
> for various reasons and I’m done with waking up at all hours for these
> non-critical servers!
>
> What is the quickest way for me to exclude these 7 hosts from notifying
> during these hours whilst leaving all other servers at 24x7?
>
> Ive had a read the nagios docs but it didn’t really help me as I didn’t
> really understand it.
>
> I have edited my server.cfg to show the scenario I want to achieve and
> that can be found at the link below.
>
> http://dl.dropbox.com/u/895609/servers.cfg
>
> The layout etc is identical to my live configs, I have just edited the
> number of hosts/names/contacts etc (the 3 hosts named NOT CRITICAL are
> the example for the “7 hosts” I first talked about)
>
> What is the quickest and most effective way for me to keep checking ALL
> my servers 24x7 and notifying 24x7, BUT exclude 7 particular servers
> from checks/notifications between 00:30-06:30 every night?
>
> Thanks in advance for your help.
>
>
>
> ------------------------------------------------------------------------------
> Virtualization&  Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
>
>
>
> _______________________________________________
> 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

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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