Cannot use some Macros in notification.
Marc Powell
marc at ena.com
Tue Jul 15 16:05:51 CEST 2008
On Jul 14, 2008, at 11:59 PM, Kasper wrote:
>
> Hi there.
>
> I'm trying to get nagios to send sms notofications via my kannel sms
> gateway.
>
> I'm using this command as notify-by-pager:
>
> /usr/bin/curl -s
> "http://10.64.48.154:13013/cgi-bin/sendsms\?username=username
> \&password=password\&to=$CONTACTPAGER$&text=$NOTIFICATIONTYPE$:+
> $HOSTALIAS$/$SERVICEDESC$+is+$SERVICESTATE$"
>
> But the two macros $CONTACTPAGER$& and $NOTIFICATIONTYPE$ do not get
> replaced with anything. Initially i thought it had something to do
> with the
> = sign so i tried to escape it with \= but thats not it. I then
> tried the
To have the best chance at receiving an answer, please post the full
notification command{} definition, contact{} definition and nagios
version.
--
Marc
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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