Announcement

Collapse
No announcement yet.

SMS GSM Modem

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    SMS GSM Modem

    Hi,

    How can I use the modem GSM to send SMS?
    must I install anything? must I follow any procedure?

    I have a Siemens TC35... is there any problem???

    #2
    Siemens TC35 works absolutely fine. I used it some time ago, nice hardware.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment


      #3
      thank you

      This resolve any problem

      Comment


        #4
        How to use

        Hi,

        Can you explain how to use the SMS media types?
        I have done
        1) config the Media type wiht /dev/ttyS0
        2) Add new media type in user account
        3) in "Send to" box I have written my tel number 348xxxxxxx
        4) I have configured the action to send me the alarm normaly....
        After this the SMS is not arrived...

        I think that the problem is the GSM modem, but I don't know how to test if the GSM Modem is corectly recognized
        How can I do?

        Comment


          #5
          How to testing

          Hi,
          This is a mini "How to" for GSM modem:

          1) Use minicom with /dev/ttyS0 and 9600bps
          2) Test some AT comand (AT, AT+CPIN?)
          After
          3) Read in zabbix interface Monitoring > Action, why it doesn't work.
          4) Set permission "chmod 666 /dev/ttyS0"
          5)Try an action...
          6)GOOD LOOK
          Last edited by vikty; 03-10-2007, 16:00.

          Comment


            #6
            /dev/ttyS0 Permition deny

            mmhh.. but...
            Why must I do this "chmod 666 /dev/ttyS0"?
            I don't think that is a normal operation...but Zabbix user can't write in /dev/ttyS0
            Can someone explain me this..??
            Attached Files
            Last edited by vikty; 10-10-2007, 11:12.

            Comment


              #7
              Under Ubuntu, you may simply add user "zabbix" to group "dialout". No change of /dev/ttyS0 permissions is required.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment


                #8
                I use Fedora Core 6...
                anyway I can retry.

                Comment


                  #9

                  In fedora there isn't dialout group, but there is uucp group
                  I have tryed to add zabbix user in uucp group, but when I try to send a SMS
                  Error open(/dev/ttyS0) [Permission denied]
                  fine.. just I will find anything I will post it here...
                  Last edited by vikty; 10-10-2007, 12:04.

                  Comment


                    #10
                    Expected [OK] received []

                    After few weeks trial and doing every possible trick, ZABBIX still won't send sms out. It always return with error:
                    Expected [OK] received []

                    My GSM modem is iTegno W3800 SE with serial port. My ZABBIX hosted on FreeBSD 7.0-STABLE. ZABBIX it self have version:
                    Code:
                    ZABBIX Server (daemon) v1.4.5 (25 March 2008)
                    Compilation time:  May  9 2008 15:19:12
                    Send manual sms using AT command via minicom, no issue at all, works very charm.

                    i did many times recompile of sms.c, change any possible trick from step 0 till step 9 and did any advice posted in this thread but none work. ALways return with Expected [OK] received []

                    Is there any still possible trick for me to make it work?! What is exactly Expected [OK] received [] means?

                    Code:
                    /*  0  */       {ZBX_AT_ESC     , NULL          , 0     },      /* Send <ESC> */
                    /*  1  */       {"AT+CMEE=2\r"  , "OK"          , 5     },      /* verbose error
                    /*  1  */       {"ATE0\r"       , "OK"          , 5     },      /* Turn off echo
                    /*  2  */       {"AT\r"         , "OK"          , 5     },      /* Init modem */
                    /*  3  */       {"AT+CMGF=1\r"  , "OK"          , 5     },      /* Switch to tex
                    /*  4  */       {"AT+CMGS=\""   , NULL          , 0     },      /* Set phone num
                    /*  5  */       {number         , NULL          , 0     },      /* Write phone n
                    /*  6  */       {"\"\r"         , "> "          , 5     },      /* Set phone num
                    /*  7  */       {message        , NULL          , 0     },      /* Write message
                    /*  8  */       {ZBX_AT_CTRL_Z  , "+CMGS: "     , 40    },      /* Send message
                    /*  9  */       {NULL           , "OK"          , 1     },      /* ^Z */
                    /* EOS */       {NULL           , NULL          , 0     }

                    Comment


                      #11
                      Error during wait for GSM modem (bit clue)

                      Hi,

                      Today i'm reproduce the error again, and capture this from log:
                      Code:
                      68603:20080512:102426 Error during wait for GSM modem.
                       68603:20080512:102426 Read from GSM modem []
                      ]68603:20080512:102426 Write to GSM modem [
                       68603:20080512:102426 Read from GSM modem []
                      is it because my GSM modem need a longer time to respond zabbix's initialization? Can i do increase the value of "timed_out" setting from this initialization?

                      Any advice?

                      Thanks,
                      BEE

                      Comment


                        #12
                        Hi All
                        Now sms feature works for me. Nothing wrong with sms.c code. In my case, it's only serial ports configuration issue. You can find detail in my below post:
                        http://www.zabbix.com/forum/showthre...ght=SMS&page=2

                        Thanks,
                        BEE

                        Comment


                          #13
                          Hi,

                          i had the same problem.

                          Expected [OK] received []

                          The serial Interface ttyS0 was on 9600 bps.
                          If the speed was 9600 bps i get the failure Expected [OK] received [].

                          I configured the serial interface on 115200 bps.
                          Thats solve the problem.
                          Now i can send sms over the gsm modem.

                          Sorry for the bad english ...

                          Comment


                            #14
                            Hi all,

                            Best thing that i have used is gnokki with this script.
                            Gnokki can work with any GSM device.
                            Within zabbix you use this script and place this script in /home/zabbix/bin
                            Media type is script within the user SMS +316460xxxxx 1-7,08:00-22:00; NIWAHD Enabled

                            #!/bin/sh

                            HOME=/etc
                            PATH=/bin:/sbin:/usr/bin:/usr/sbin
                            LOGFILE="/var/log/zabbix-sms.log"

                            echo "Recipient='$1' Message='$3'" >> ${LOGFILE}

                            MOBILE_NUMBER=`echo "$1" | sed s#\s##`

                            # Log it
                            echo "echo $3 | /usr/bin/gnokii --sendsms ${MOBILE_NUMBER}" >>${LOGFILE}

                            # Send it
                            echo "$3" | /usr/bin/gnokii --sendsms "${MOBILE_NUMBER}" 1>>${LOGFILE} 2>&1

                            # EOF
                            Last edited by ldil; 25-06-2008, 01:58.
                            :cool: Greetz Leo :cool:

                            Comment


                              #15
                              Originally posted by vikty View Post

                              In fedora there isn't dialout group, but there is uucp group
                              I have tryed to add zabbix user in uucp group, but when I try to send a SMS

                              fine.. just I will find anything I will post it here...
                              zabbix_server needs to be restarted after zabbix user added to the uucp group.

                              Comment

                              Working...
                              X