Notification periods question

Greg Vickers g.vickers at qut.edu.au
Tue Oct 11 11:31:12 CEST 2005


Hi Daniel,

Daniel Bimschas wrote:
> hi there!
> 
> i have the following problem and it seems i can't solve it
> without greater effort.
> 
> i have a service that is checked 24x7. during "workhours",
> meaning from 09:00 - 22:00 i want to notify always if the
> service is warning, critical or unknown (w,u,c,r) and when
> it recovers.
> 
> at "non-workhours" (22:00-09:00) i want only to notify if
> the service is critical or unknown.
> 
> can i realise that with nagios without writing my own
> notification plugin and how?

Here's one way to do it:

Notifications during work hours:
define contact{
contact_name fredworkhours
alias Notifications to Fred during work hours
host_notification_period something
service_notification_period workhours
host_notification_options n
service_notification_options w,u,c,r
email fred at someserver
}

Notifications during non-work hours:
define contact{
contact_name frednonworkhours
alias Notifications to Fred outside of work hours
host_notification_period something
service_notification_period nonworkhours
host_notification_options n
service_notification_options w,u
email fred at someserver
}

> thanks for your replies

Such a spoon-fed reply is given because I am feeling out of touch with 
my server atm :)

-- 
Greg Vickers
Project Manager, IT Security
Information Technology Services
Queensland University of Technology
L12, 126 Margaret St, Brisbane

Phone: (07) 3864 9536
Email: g.vickers at qut.edu.au
IT Security web site: http://www.its.qut.edu.au/itsecurity/

CRICOS No. 00213J


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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