PDA

View Full Version : SMS and gnokii


larsdbj
17-06-2006, 14:43
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 ... :confused:

larsdbj
18-06-2006, 15:08
Seems to be working suddenly without editing files/permission.
Spoke with some people on irc.freenode #zabbix, they did not have any idea either of what was the problem.
I rebooted my machine and it works... there goes my 500 days uptime :(

evgeny elkin
27-09-2007, 14:31
larsdbj, can you resolve it? I´m getting the same error ((