PDA

View Full Version : service notification


makan
15th May 2006, 23:57
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
16th May 2006, 01:17
notify-by-email is for service notification

use host-notify-by-email for host notification

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

makan
16th May 2006, 20:45
mmm..

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

tencount
23rd June 2006, 19:00
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
23rd June 2006, 20:17
j'ai exactement le même problème avec la même commande dans le même context!!!!