email / gnokii not working
Posted: Thu May 16, 2013 3:23 am
Hi,
Ive installed this before many times and never had a problem but this time i just cant get it working, ive re-installed my opensuse about 10 times now and still no joy.
My commands.cfg looks like this:
define command{
command_name notify-service-by-pager
command_line /bin/echo $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ $SERVICEOUTPUT$ $SHORTDATETIME$ |/usr/bin/gnokii --sendsms xxxxxxxxx
}
i tried changing this command line to: /bin/echo test | >/var/log/test
thinking that this should just generate a text file but it doesnt, if i run it from the command line as root it works fine.
Anyone any ideas ?
thanks.
Ive installed this before many times and never had a problem but this time i just cant get it working, ive re-installed my opensuse about 10 times now and still no joy.
My commands.cfg looks like this:
define command{
command_name notify-service-by-pager
command_line /bin/echo $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ $SERVICEOUTPUT$ $SHORTDATETIME$ |/usr/bin/gnokii --sendsms xxxxxxxxx
}
i tried changing this command line to: /bin/echo test | >/var/log/test
thinking that this should just generate a text file but it doesnt, if i run it from the command line as root it works fine.
Anyone any ideas ?
thanks.