PDA

View Full Version : service notification


makan
05-15-2006, 11:57 PM
hello,

i have a problem with service notification that sent by nagios.
some variables are blank:

=========================================
Subject: ** PROBLEM alert - myhost/ is **
---------------------------------------------------------
***** Nagios *****

Notification Type: PROBLEM

Service:
Host: myhost
Address: 192.200.200.65
State:

Date/Time: Tue May 16 04:14:04 WIT 2006

Additional Info:
=========================================



here is my notify-by-email command:
---------------------------------------------
/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info: $SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
---------------------------------------------

i've tried with nagios-2.0-2.2, nagios-2.3-1 and nagios-plugins-1.4-2.2, nagios-plugins-1.4.2-1.2. but no luck.... :?:

wistof
05-16-2006, 01:17 AM
notify-by-email is for service notification

use host-notify-by-email for host notification

makan
05-16-2006, 01:50 AM
yes, i know...
i'm using notify-by-email because i want to monitoring a service (e.g.: http).

makan
05-16-2006, 08:45 PM
mmm..

it's only happen when i use check_ping and confgure it with oreon.
anybody knows why?

tencount
06-23-2006, 07:00 PM
Makan,

I am wondering if you can try that check command from the shell and see if it works, also make sure that mail is in the bin/mail directory. Maybe looking into your mail logs may help. I believe my debian is in the /usr/bin/mail dir.

srenon
06-23-2006, 08:17 PM
j'ai exactement le même problème avec la même commande dans le même context!!!!