include notification number in subject

Oliver Hookins oliver.hookins at anchor.com.au
Thu Mar 6 09:04:01 CET 2008


On Thu Mar 06, 2008 at 08:40:18 +0100, Sebastian Ries wrote:
>Hi
>
>Regarding to my post on Topic "Escalations and notification_intervall"
>
>Is it possible to include the Notification number in the Subject of a
>notification email?
>
>I know that I just can edit the command definition
>define command{
>        command_name    notify-by-email
>        command_line    /usr/bin/printf "%b" "***** Nagios  *****\n
>\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
>$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
>$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /usr/bin/mail -s "**
>$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$
>**" $CONTACTEMAIL$
>        }
>
>But I do not know how the variable is called - or even if it exists...
>
>Is there a list of available variables anywhere in the documentation?
>I did not find it...

http://nagios.sourceforge.net/docs/2_0/macros.html

-- 
Regards,
Oliver Hookins
Anchor Systems

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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