Hi sysmanz,
To help you debug your command, here is what you can do:
At the end of your command in your command.cfg add the following red part
Code:
command_line echo "NAGIOS $NOTIFICATIONTYPE$ ($DATE$ $TIME$) Host: $HOSTNAME$ is $HOSTSTATE$ $HOSTOUTPUT$ | /usr/bin/gnokii --sendsms $CONTACTPAGER$" >> /tmp/nagios.notification
if you don't get anything in
/tmp/nagios.notification with
>> try with
tee
Code:
command_line echo "NAGIOS $NOTIFICATIONTYPE$ ($DATE$ $TIME$) Host: $HOSTNAME$ is $HOSTSTATE$ $HOSTOUTPUT$ | /usr/bin/gnokii --sendsms $CONTACTPAGER$" tee /tmp/nagios.notification
Quote:
it work in command line and send a empty message
|
This is normal as you didn't specify any message to be send.
Best regards,
Angel.