Ad Widget

Collapse

Working configuration zabbix + gnokii

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • evgeny elkin
    Member
    • Jul 2007
    • 52

    #1

    Working configuration zabbix + gnokii

    Hello all! Who has a experience of configurating and writing a scripts for this, if you post a mini-howto, it would be a great help for me! Thanks!
  • evgeny elkin
    Member
    • Jul 2007
    • 52

    #2
    solved

    Solved. Guided by concept - the easyest the better ) In Actions|Remote command add a string
    Server_Name:/var/run/zabbix-server/sms_gnokii.sh *Zabbix_alert* {HOSTNAME} is_unreacheable. Status:{STATUS}

    Shell script here:

    #!/bin/bash
    echo $1 $2 $3 $4 | /usr/bin/sudo /usr/bin/gnokii --sendsms +7xxxxxxxxxx >/var/log/zabbix-server/sms.log
    exit 0

    Comment

    • lokace
      Junior Member
      • Sep 2005
      • 3

      #3
      Queue for Gnokii

      I have a MC75 on USB port and it works great with Gnokii. But I'm unable to use it with Zabbix (but I have read only serial modem have been tested). So I'm currently implementing your solution. But I would like to know something if 2 issues/triggers occurs, there is a risk of data loss, because Gnokii locks the device. Have you done a sort of queue for gnokii?

      Thanks for your help,

      lokace.

      Comment

      • evgeny elkin
        Member
        • Jul 2007
        • 52

        #4
        Now i'm havent really good idea for realization a queue, as i solve it , i will post it here. Thanks.

        Comment

        • evgeny elkin
          Member
          • Jul 2007
          • 52

          #5
          Gammu

          Hello all! Gnokii has a packet gnokii-smsd, it's a daemon working with mysql or postgresql base and inserting phone's incoming sms in "inbox" table, end getting outcoming sms from "outbox" table. I found examle of script for creating tables in docs. And it works.... but in my case very unstable ( Error "Restarting connecton. Segmentation fault" returns again and again. Now I use an analog tool named Gammu. Sms daemon starts with options "gammu --smsd MYSQL /etc/smsdrc"
          In shell script string changed to :

          #!/bin/bash
          echo $1 $2 $3 $4 | /usr/bin/sudo /usr/bin/gammu --sendsmsdsms TEXT +7xxxxxxxxxx MYSQL /etc/smsdrc
          exit 0

          User zabbix must be in sudoers for executing gammu ,log file configures in config file /etc/smsdrc

          Comment

          • RohrbaGe
            Senior Member
            • Aug 2005
            • 167

            #6
            SMS with gammu

            I have looked also at gammu.

            It works quite well, and the SMS queuing in Mysql is a good idea.
            Also It is possible to act on incoming SMS, they are also stored in a table.
            So it would be possible to use it for actions.

            I've tested with a NOKIA 6310 and a serial cable.
            As I understood there are some problems with USB connections.

            Gerald

            Comment

            Working...