Ad Widget

Collapse

Triple SMS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 0siris
    Member
    Zabbix Certified Specialist
    • Nov 2010
    • 76

    #16
    Hi,
    I'm not entirely sure you have the same problem as I do, but I've just created ZBX-3863 to be able to truncate SMS messages, since they're so long it is split into 3 messages.

    If the truncating I suggest is something that would work for you as well, please vote & watch

    Comment

    • HullZabbix
      Senior Member
      • Feb 2011
      • 104

      #17
      Hi there, I'm not sure truncating the message would help in this situation - the SMS alerts I'm sending are < 30 characters long. But still result in 3x the SMS.

      I've gone down the route of an an external script and gammu for sending alerts as I never got to the bottom of this.

      Comment

      • robertoalcantara
        Junior Member
        • Sep 2010
        • 8

        #18
        I have same problem with 1.8.10 version.

        Duplicated SMS received and 'not sent' SMS on dashboard.

        Comment

        • HullZabbix
          Senior Member
          • Feb 2011
          • 104

          #19
          Originally posted by robertoalcantara
          I have same problem with 1.8.10 version.

          Duplicated SMS received and 'not sent' SMS on dashboard.
          Sorry to hear that. Unfortunately I'm not sure it's a popular enough bug to get fixed. As above, I've used an external script and gammu to send alerts instead. I do have notes for it if you need them.

          Comment

          • robertoalcantara
            Junior Member
            • Sep 2010
            • 8

            #20
            Axida,

            I'm doing right now. Thank you!

            Comment

            • HullZabbix
              Senior Member
              • Feb 2011
              • 104

              #21
              Just in case you need it, I have the following instructions in my zabbix build document.

              Insert the USB modem - this will be auto installed.

              Install the latest stable release (32 bit) of gammu for RedHat/Centos - currently gammu-1.11.0-1.el5.rf.i386.rpm

              As it's a .rpm simply double click and it will be done automatically.

              Browse to /etc/gammurc

              Set the first [gammu] section to:

              Code:
              [gammu]
              
              port = /dev/ttyUSB0
              ;model = 
              connection = at19200
              ;synchronizetime = yes
              ;logfile = gammulog
              ;logformat = textall
              ;use_locking = 
              ;gammuloc = 
              ;startinfo = yes
              ;gammucoding = utf8
              ;rsslevel = teststable
              ;usephonedb = yes

              Add zabbix user to uucp group - this allows zabbix to access the usb modem:

              usermod -G uucp -a zabbix


              Test the device by entering terminal:

              gammu --sendsms TEXT 07779999999

              Press control+d to end the message - this should send a blank message to the number.

              Single blue flash every 4 seconds = Connected to GSM network. Double green flash every 4 seconds = Not connected/SIM not inserted.

              If removing/switchin or inserting the SIM card the device needs to be removed from the server, insert the SIM card and then plug in to the server. This should produce the blue flash.

              SMS Script
              Put the following a a file and set to executable:

              Code:
              #!/bin/sh
              
              export HOME=/root
              
              
              NUMBER=$1
              TRIGGER=$2
              DESCRIPTION=$3
              
              echo $TRIGGER $DESCRIPTION | /usr/bin/gammu --sendsms TEXT $NUMBER
              Name the file "smssendscript.sh"

              Place the file in /etc/zabbix/alertscripts <<<< this is the location you have setup in zabbix server config.
              Then create the a media type within zabbix web gui.

              Comment

              • robertoalcantara
                Junior Member
                • Sep 2010
                • 8

                #22
                Thank you very much !

                Best regards

                Comment

                • it2
                  Junior Member
                  • Jun 2014
                  • 13

                  #23
                  Originally posted by HullZabbix
                  Just in case you need it, I have the following instructions in my zabbix build document.



                  Then create the a media type within zabbix web gui.
                  Hi there!
                  I made it how you wrote, and I can send and receive sms by bash manually.
                  but when I enable script in zabbix, I didnt received it, but in actions i see that sms was delivered.
                  give me an advice please.
                  for test i do chmod 777 script.sh

                  Comment

                  • zabbix-hs
                    Junior Member
                    • Jul 2017
                    • 4

                    #24
                    Originally posted by it2
                    Hi there!
                    I made it how you wrote, and I can send and receive sms by bash manually.
                    but when I enable script in zabbix, I didnt received it, but in actions i see that sms was delivered.
                    give me an advice please.
                    for test i do chmod 777 script.sh
                    Dear all,

                    I have the same problem as it2 user. I can send SMS by bash manually but I can't see any SMS message from ZABBIX system.

                    Anyone else with this issue? Please help to solve it.

                    Thank you.

                    Comment

                    Working...