mail notifications

Neil neil-on-nagios at restricted.dyndns.org
Tue Jan 13 19:49:30 CET 2004


Here is how I wrote it: 

in hosts.cfg:
define host{
       use                     generic-host            ; Name of host 
template to use 

       host_name               nonexistent
       alias                   Nonexistent machine
       address                 10.43.1.1
       check_command           check-host-alive
       max_check_attempts      10
       notification_interval   5
       notification_period     24x7
       notification_options    d,u,r
       } 

in services.cfg: 

define service{
       use                             generic-service         ; Name of 
service template to use 

       host_name                       nonexistent
       service_description             PING
       is_volatile                     0
       check_period                    24x7
       max_check_attempts              3
       normal_check_interval           5
       retry_check_interval            1
       contact_groups                  linux-admins
       notification_interval           240
       notification_period             24x7
       notification_options            c,w
       check_command                   check_ping!100.0,20%!500.0,60%
       } 

But I didn't get any warning emails. Although I got an email with the 
subject of Host DOWN alert for nonexistent! Then on the body of that email, 
on the Info line, it says, CRITICAL - plugin timeout after 10 seconds. 

What I was expecting to get is an email with a WARNING message. 

Please clarify. 

Thanks again. 


Anders Holm writes: 

> Hi Neil. 
> 
> Use a non-existent host for testing purposes perhaps? Should definitely 
> give you at least a warning message. ;) 
> 
> //Anders// 
> 
> Neil wrote: 
> 
>> Regarding notification_options, specifically to w which is warning. Can 
>> someone give me a service that will give a warning status? Am I correct 
>> that with the service written below, the parameters specifies the warning 
>> and critical values?
>> check_ping!100.0,20%!500.0,60%
>> Then if I put w,c in notification options, I will get email too?
>> If I correctly understood it, how would I simulate this service to fail 
>> on the host I am monitoring without shutting down the host?
>> Thanks.
>> Neil 
>> 
>> 
>> -------------------------------------------------------
>> 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
> 
> -- 
> Anders Holm 
> 
> Sustaining QA Engineer
> CriticalPath - Dublin - Ireland 
> 
> Support Site:    http://support.criticalpath.net/
> Corporate Site:  http://www.criticalpath.net/ 
> 
 


-------------------------------------------------------
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