(no subject)

Marc Powell mpowell at ena.com
Wed Oct 1 15:26:45 CEST 2003


Well, without seeing your specific host, service and notify commands and a sample notification email, it's going to be hard to diagnose further. This functionality is very stable within nagios itself (i.e. it's very unlikely that it's a bug) and is more likely the result of a formatting error or the use of some unusual character in a definition somewhere. Also, since we're relying on other components of the OS like /bin/mail, OS vendor and version information might prove useful as well for vendor specific implementation issues. Finally, as the footer says --

::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

--
Marc

> -----Original Message-----
> From: Alexis Chauvin [mailto:Alexis.chauvin at courtsplc.com]
> Sent: Wednesday, October 01, 2003 8:19 AM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> 
> 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