I'm having a frustrating problem which I hope you can help solve.
I've got the following service command set up:
command_line curl "http://127.0.0.1:13004/cgi-bin/sendsms?username=simple&password=simple&to=$CONTACTPAGER$&text=$NOTIFICATIONTYPE$:+$HOSTALIAS$/$SERVICEDESC$+is+$SERVICESTATE$"
The curl command calls a SMS gateway we set up on the Nagios server and is tested and working.
This works fine when the host comes up and reports:
RECOVERY: MyServer/PING is OK
When the service goes down, however, some of the variables are missing resulting in a message like the following:
PROBLEM: MyServer/ is
The $SERVICEDESC$ and $SERVICESTATE$ variables just don't show up for the party.
Thanks in advance.