mail notifications
Neil
neil-on-nagios at restricted.dyndns.org
Tue Jan 13 18:57:10 CET 2004
Hi Marc,
I thought 240 means 240 seconds.
What about these lines:
normal_check_interval 5
retry_check_interval 1
Does it mean 5 minutes for normal_check_interval and 1 minute for
retry_check_interval?
Thanks for the link.
Marc Powell writes:
>
>
>> -----Original Message-----
>> From: Neil [mailto:neil-on-nagios at restricted.dyndns.org]
>> Sent: Tuesday, January 13, 2004 11:31 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] mail notifications
>>
>> Hi guys,
>>
>> I am wondering why I am getting emails in 2 hours interval for this
>> specific
>> service. Here is what I have in services:
>>
>> define service{
>> use generic-service
>>
>> host_name cluster1
>> service_description Microsoft Cluster Service
>> is_volatile 0
>> check_period 24x7
>> max_check_attempts 3
>> normal_check_interval 5
>> retry_check_interval 1
>> contact_groups microsoft-admins
>> notification_interval 240
>> notification_period 24x7
>> notification_options c,r
>> check_command
>> check_nrpe!check_service_ClusterService
>> }
>>
>> How and what should I modify so that nagios will email me in the
> interval
>> of
>> 5 or 10 minutes?
>
> Your notification interval is currently set to 240 minutes (4 hours) so
> I'm not sure why you're getting them every two hours for this service.
> Changing it to 5 or 10 should do what you want.
>
> http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service
>
> notification_interval: This directive is used to define the number of
> "time units" to wait before re-notifying a contact that this service is
> still in a non-OK state. Unless you've changed the interval_length
> directive from the default value of 60, this number will mean minutes.
> If you set this value to 0, Nagios will not re-notify contacts about
> problems for this service - only one problem notification will be sent
> out.
>
>
>> And can also give me some insights about how "notification_options"
> can be
>> useful in notification. I mean such as, when can "c", "r", "d", or "u"
> be
>> useful in mail notifications. I couldn't find some help from the
> manual.
>
> They're useful (and designed) for specifying what state changes you get
> notified for. If you only want to be notified when something goes
> critical and then recovers, your notification_options would be 'c,r'. If
> you only care to be notified when something is unreachable but not when
> it's critical, down or recovering, then your notification_options would
> be only 'u'.
>
> See the host and service definition documentation on
> http://nagios.sourceforge.net/docs/1_0/xodtemplate.html if it's still
> not clear.
>
> --
> Marc
>
-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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