Can't get service failure(warning) to send notification

James Pifer jamespifer at hotmail.com
Sun Oct 14 17:09:38 CEST 2012


I'm trying to add an http check to one of my hosts. It appears as though
it is doing the check and correctly finding a problem, yet I am not
getting any email notification. Below are the nagios config files:
/etc/nagios/hosts.cfg and services.cfg.

define host{
host_name login2.mycompany.com
use generic-host
alias login2.mycompany.com
address login2.mycompany.com
_HOST_ID 2923
hostgroups corporate
check_command check_host_alive
check_interval 5
retry_interval 5
check_period 24x7
contact_groups Notify_james
notification_interval 10
first_notification_delay 1
notification_period 24x7
notification_options d
notifications_enabled 1
}



define service{
host_name login2.mycompany.com
service_description check_http
_SERVICE_ID 1879
use CheckHTTP
check_command check_http
max_check_attempts 5
normal_check_interval 5
retry_check_interval 1
active_checks_enabled 1
check_period 24x7
notification_interval 5
first_notification_delay 1
notification_period 24x7
notification_options w,u,c,r
notifications_enabled 1
contact_groups Notify_james
contacts james
}


The contact_groups and contacts are definitely right as I get host down
notifications from other hosts.

My service template for CheckHTTP looks like:

define service{
name CheckHTTP
service_description CheckHTTP
use generic-service
is_volatile 0
check_command check_http
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
notification_period 24x7
notification_interval 5
notification_options w,u,c,r
notifications_enabled 1
first_notification_delay 1
contact_groups Supervisors
register 0
}

Is there a way to make the check failure for CheckHTTP be a critical
rather than a warning?

Right now the warning shows:
login2.mycompany.com check_http Warning login2.mycompany.com 22h 10m 51s
2012/10/11 8:18 HTTP WARNING: HTTP/1.1 404 Not Found - 1428 bytes in
0.020 second response time

Any help is appreciated.

Thanks,
James

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
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