Notification problem

Carl Schelin cschelin at hq.nasa.gov
Wed Feb 18 20:41:34 CET 2004


On Tue, 2004-02-10 at 22:34, nagios at acmecargo.com wrote:
> I am having a problem getting my notifications working. I see the service 
> notification go through on the log but I never see the message being sent 
> through the outgoing mail log file nor do I get the email of course.
> Feb  6 17:39:15 src at sysmon nagios: SERVICE NOTIFICATION: 
> contactname;temp_probe1;Central DC temp;WARNING;notify-phone-by-email;Temp 
> Warning: Probe 3 = 71.1 F
> 
> I can send a message manually simulating what is in my misccommands.cfg. 
> The actual line says:
> /usr/bin/printf "%b $NOTIFICATIONTYPE$ $SERVICEDESC$ $HOSTALIAS$ 
> $SERVICESTATE$ $DATETIME$ Info:$OUTPUT$" | /bin/mail -s ALERT $CONTACTEMAIL$

One little point that doesn't match mine. You don't have quotes between
"%b $NOTIFICATION" separating them into format string and data. It seems
to work with quick testing on my sun box but every little thing helps.

Carl



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
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