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 following: echo "$CONTACTPAGER$ $NOTIFICATIONTYPE$ $HOSTALIAS$ $SERVICEDESC$ $SERVICESTATE$" > /home/kasper/test.txt as my command. And the result is the same, the two macros are empty. I know i have put in a pager number on my contact account. Anyone knows what to do? ------------------------------------------------------------------------- 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@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