(no subject)
Alexis Chauvin
Alexis.chauvin at courtsplc.com
Wed Oct 1 15:18:38 CEST 2003
Well, I 've got the same command, but what I meant is that I filled all options in the config files. But the macros don't get the values, that is, I receive email with blank spaces instead of informations
Cheers,
alex
-----Original Message-----
From: Marc Powell [mailto:mpowell at ena.com]
Sent: 01 October 2003 14:12
To: Alexis Chauvin; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] (no subject)
This works for me --
# 'service-notify-by-email' command definition
define command{
command_name service-notify-by-email
command_line /bin/echo -e "Subject: Service $SERVICEDESC$ $SERVICESTATE$ alert for $HOSTNAME$!\n\n***** Nagios *****\n\
nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $SERVICESTATE$\nAddress: $HOSTADDRESS$\n\nService: $SERVICEDESC$\nI
nfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
**' $CONTACTEMAIL$
}
When you say that you checked the variables in the config files and they weren't blank, what do you mean? They shouldn't be specified as they are used internally by nagios and change for each notification.
--
Marc
________________________________________
From: Alexis Chauvin [mailto:Alexis.chauvin at courtsplc.com]
Sent: Wednesday, October 01, 2003 6:12 AM
To: nagios-users at lists.sourceforge.net
Hi,
Does anybody has a problem with macros and notification by email ?
It appears that I can't have $SERVISTATE$ and $SERVICEDESC$ in the notification by email.
In the documentation, it is written that these macros should be available for service notifications.
I checked that the variables in the config files are not blank, and I use the "default" command for emailing, provided by the "make install-config".
Any ideas ?
Thanks
Alexis
Alexis Chauvin
International IT
tel +44(0)2084109476
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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