Ad Widget

Collapse

SMS and gnokii

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • larsdbj
    Junior Member
    • Jun 2006
    • 3

    #1

    SMS and gnokii

    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 ...
  • larsdbj
    Junior Member
    • Jun 2006
    • 3

    #2
    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

    Comment

    • evgeny elkin
      Member
      • Jul 2007
      • 52

      #3
      larsdbj, can you resolve it? I´m getting the same error ((

      Comment

      Working...