Service Alerts and Notifications

wnorth at verizon.net wnorth at verizon.net
Sat Jan 6 00:48:03 CET 2007


I have setup a few host and HTTP service checks and alerts. When a host goes down I recieve an email, but when the check_http service fails (e.g. the TCP port is shutdown on the web server) I see the service alert in the nagios.log as follows:

[1168038639] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;ebro;Website App Server MS2;1168038636
[1168038644] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;1;Connection refused
[1168038824] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;2;Connection refused
[1168039004] SERVICE ALERT: ebro;Website App Server MS2;CRITICAL;SOFT;3;Connection refused

But I do not recieve an email. The following service is defined:

define service{
        host_name               ebro
        service_description     Website App Server MS2
        check_command           check_http_fitness_app
        max_check_attempts      5
        normal_check_interval   5
        retry_check_interval    3
        check_period            24x7
        contact_groups          jboss-admins
        notification_interval   30
        notification_period     24x7
        notification_options    w,u,c,r,f
}

The following contact is setup for the jboss-admins groups:

define contactgroup{
 contactgroup_name jboss-admins
 alias JBoss Administrators
 members wnorth
}

The following contact is setup for wnorth:
define contact{
        contact_name                    wnorth
        alias                           Wes North
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r,f
        host_notification_options       d,u,r,f
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           wnorth at verizon.net
}

If I bring a host offline I see the following alert in the nagios.log:

[1168037707] HOST NOTIFICATION: wnorth;ebro;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.33.8)
[1168037767] HOST ALERT: ebro;UP;HARD;1;PING OK - Packet loss = 0%, RTA = 0.40 ms
[1168037767] HOST NOTIFICATION: wnorth;ebro;UP;host-notify-by-email;PING OK - Packet loss = 0%, RTA = 0.40 ms

But if I bring a web service offline it fails to email me. I don't know why, I have specified everything correctly. Any insight would be much appreciated.

-Wes


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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