Email notifications cont.

Marc Powell marc at ena.com
Mon Jan 15 20:57:52 CET 2007



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Nedim Bicic
> Sent: Sunday, January 14, 2007 11:04 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Email notifications cont.
> 
> I am using Nagios 2.4
> 
> I can not get email notifications when my system is timing out but
when i
> check the event log on nagios i see the log:
>  "
>  Service Warning<https://10.8.1.100/nagios/images/warning.png>
[01-14-2007
> 23:47:16] SERVICE ALERT: nedo;PING;WARNING;HARD;4;PING WARNING -
Packet
> loss = 0%, RTA = 135.06 ms
>  Service Warning<https://10.8.1.100/nagios/images/warning.png>
[01-14-2007
> 23:46:16] SERVICE ALERT: nedo;PING;WARNING;SOFT;3;PING WARNING -
Packet
> loss = 0%, RTA = 173.10 ms
>  Service Warning<https://10.8.1.100/nagios/images/warning.png>
[01-14-2007
> 23:45:16] SERVICE ALERT: nedo;PING;WARNING;SOFT;2;PING WARNING -
Packet
> loss = 0%, RTA = 141.35 ms
>  Service Critical<https://10.8.1.100/nagios/images/critical.png>
[01-14-
> 2007 23:44:56] SERVICE ALERT: nedo;PING;CRITICAL;SOFT;1;CRITICAL -
Plugin
> timed out after 10 seconds
>  Host Up<https://10.8.1.100/nagios/images/recovery.png> [01-14-2007
> 23:44:56] HOST ALERT: nedo;UP;SOFT;4;PING WARNING - Packet loss = 85%,
RTA
> = 17.35 ms
>  Host Down<https://10.8.1.100/nagios/images/critical.png> [01-14-2007
> 23:44:50] HOST ALERT: nedo;DOWN;SOFT;3;CRITICAL - Plugin timed out
after
> 10 seconds
>  Host Down<https://10.8.1.100/nagios/images/critical.png> [01-14-2007
> 23:44:40] HOST ALERT: nedo;DOWN;SOFT;2;CRITICAL - Plugin timed out
after
> 10 seconds
> "

I only see a HARD state for 1 WARNING. I also don't see any SERVICE
NOTIFICATION entries. Nagios doesn't think it's supposed to send a
notification on WARNING and nothing else reached a HARD state.

> i think my contacts are all set right since i can get notifications
when a
> host is unreachable

Guess we'll have to take your word on that but just because you have
your host notification options right doesn't mean that service
notification options are right. They're independent (for the most part).
 
> here is my misccomands.cfg file
> 
> # 'host-notify-by-email' command definition
> # 'notify-by-email' command definition
> define command{
>  command_name host-notify-by-email
>  command_line /bin/echo -e "***** Nagios  *****\n\nNotification Type:
> $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
> $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" |
> /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$
>        }

Looks pretty standard for a host notification. Seems irrelevant since
you seem to be looking for help with service notifications.

Read through http://nagios.sourceforge.net/docs/2_0/notifications.html.
That details the filters that must be met before a notification will go
out. Chances are high that if you go through that you'll hit upon what
you've missed. Arbitrarily, I'd guess that either your service/contact
definitions have incorrect notification periods or notification options.

HTH
--
Marc

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