Hi guys,
I have a Zabbix server running Debian 3.1 "sarge".
With a 6310i telephone on /dev/ttyS1, with gnokii installed.
I can send sms with gnokii with this command:
echo "blablablabla" | gnokii --sendsms +90******
I created a sms.sh script:
#!/bin/bash
echo $1 $3 | gnokii --sendsms $2 >sms.log
exit 0
Gave the zabbix user access to the /dev/ttyS1 and gnokki, and i have test the command ./sms.sh subject text +90****** and it works
But when i for example have a trigger that is going of and i monitor the actions screen, it says that the SMS has been send... but no sms is recieved on the phone
Does anybody have a explanation?
I think it has something to do with how zabbix starts the sms.sh and the attributed that comes with it...
ps. the documention of how zabbix sends SMS is really CRAP! there is absolutely nothing about it... for example: what kind of attributes zabbix sends with sms.h ...
I have a Zabbix server running Debian 3.1 "sarge".
With a 6310i telephone on /dev/ttyS1, with gnokii installed.
I can send sms with gnokii with this command:
echo "blablablabla" | gnokii --sendsms +90******
I created a sms.sh script:
#!/bin/bash
echo $1 $3 | gnokii --sendsms $2 >sms.log
exit 0
Gave the zabbix user access to the /dev/ttyS1 and gnokki, and i have test the command ./sms.sh subject text +90****** and it works
But when i for example have a trigger that is going of and i monitor the actions screen, it says that the SMS has been send... but no sms is recieved on the phone
Does anybody have a explanation?
I think it has something to do with how zabbix starts the sms.sh and the attributed that comes with it...
ps. the documention of how zabbix sends SMS is really CRAP! there is absolutely nothing about it... for example: what kind of attributes zabbix sends with sms.h ...
Comment