I'm trying to send SMS with an rsh script that send a command to another linux machine with asterisk gsm.
If I execute command by command line all work and SMS is delivered.
If I configure a nagios notification command, when service is down it seems that it doesn't execute command.
I've created (for test purposes) another notification command, that append a text phrase at the end of /var/log/messages, but also this doesn't work.
Where I'm wrong?
Notification command by emai work properly.
My simple command is
command_line /bin/echo PROVA >> /var/log/messages
and the other is
If I execute both command from command line they work...