Ad Widget

Collapse

Send SMS via remote Kannel SMS Gateway

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ZabbixFun
    Junior Member
    • Apr 2014
    • 23

    #1

    Send SMS via remote Kannel SMS Gateway

    Hi all,

    I wonder if it's possible to specify a remote Kannel server instead of /dev/ttyS0 (and connecting a USB or Serial modem on Zabbix server).

    The reason is that Zabbix is installed on a VM.

    Thanks
  • ZabbixFun
    Junior Member
    • Apr 2014
    • 23

    #2
    Found a solution.

    Created a script:
    Code:
    #!/bin/bash
    #SMS with Kannel
    wget --spider "http://KANNEL-IP:13013/cgi-bin/sendsms?username=USER&password=PASSWORD&dlr-mask=31&from=96378445&smsc=&to=$1&text=$2-$3"
    wget = access the server via HTTP,
    --spider = don't perform file download,
    KANNEL-IP:3014 = Kannel IP and port

    Variables $1, $2 and $3 are:
    $1 = Number of mobile user
    $2 = zabbix standard issue of Action
    $3 = zabbix default message Action

    Then went to:
    Administration > Media Types > Create Media
    and selected as type "Script" the above script and entered it's name.

    Comment

    Working...