$NOTIFICATIONISESCALATED$ not defined
Marc Powell
marc at ena.com
Mon Jul 20 16:36:56 CEST 2009
On Jul 20, 2009, at 8:03 AM, Michael Schwartzkopff wrote:
> my command definition is:
>
> define command{
> command_name notify-netappvol-by-email
> command_line /usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTNAME$ ($HOSTALIAS$)\nAddress:
> $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
> $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nWebsite:
> http://cpwa-nagios05-t/nagios/nagvis/nagvis/index.php?map=$HOSTNAME$
> \n\n
> Is escalated: $NOTIFICATIONISESCALATED$\n\nService
> ChecksNotification number:
> $SERVICENOTIFICATIONNUMBER$" | /bin/mail -r "Nagios
> 05 test <nagios-noreply at xxx.de>" -s "** $NOTIFICATIONTYPE$ Service
> Alert: $HOSTNAME$ ($HOSTALIAS$)/$SERVICEDESC$ is $SERVICESTATE$ **"
> $CONTACTEMAIL$
> }
Looks good.
> nagios version 3.0.6
And replicated with nagios-HEAD. Try the attached patch. It adds one
line to initialize the macro. I _think_ that's what it is; at least
the macro populates now but I can't test the escalated part of it
without jumping through a lot of hoops. I've submitted it to
tracker.nagios.org for you just in case there's more to it.
http://tracker.nagios.org/view.php?id=61
--
Marc
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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