Ad Widget

Collapse

gsm modem stopped working in zabbix 2.4.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • petr11
    Junior Member
    • Jul 2015
    • 2

    #1

    gsm modem stopped working in zabbix 2.4.5

    Hi

    I've just update from zabbix 1.8.13 to 2.4.5 and zabbix can't communicate with modem now. In all previous z. versions it was ok for many years ago.

    My modem: Siemens MC35i
    /dev/ttyUSB0 (permissions 666)

    sms test with gnokii OK (works only with baud 9600; bigger 19200 or 115200 doesn't)

    Zabbix actions info: I saw these three...
    Expected [OK] received [+C]
    Expected [OK] received [K]
    Expected [OK] received [O]

    stty -F /dev/ttyUSB0 --all
    speed 9600 baud; rows 0; columns 0; line = 0;
    intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z;
    rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
    -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts -cdtrdsr
    -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
    opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
    isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

    From debug log....
    6275:20150727:074622.211 In execute_action(): alertid [89623] mediatype [2]
    6275:20150727:074622.211 In send_sms()
    6275:20150727:074622.216 In write_gsm() str:'ESC'
    6275:20150727:074622.216 End of write_gsm():SUCCEED
    6275:20150727:074622.216 In write_gsm() str:'AT+CMEE=2^M'
    6275:20150727:074622.216 End of write_gsm():SUCCEED
    6275:20150727:074622.216 In read_gsm() [] [NULL] [NULL] [NULL]
    6275:20150727:074622.294 Read attempt #0 from GSM modem [^M]
    6275:20150727:074622.295 Read attempt #0 from GSM modem [O]
    6275:20150727:074622.295 Read from GSM modem [^MO]
    6275:20150727:074622.295 End of read_gsm():SUCCEED
    6275:20150727:074622.295 In write_gsm() str:'ATE0^M'
    6275:20150727:074622.295 End of write_gsm():SUCCEED
    6275:20150727:074622.295 In read_gsm() [OK] [NULL] [NULL] [NULL]
    6275:20150727:074622.296 Read attempt #0 from GSM modem [K]
    6275:20150727:074622.296 Read from GSM modem [K]
    6275:20150727:074622.296 In check_modem_result()
    6275:20150727:074622.296 End of check_modem_result():FAIL
    6275:20150727:074622.296 End of read_gsm():FAIL
    6275:20150727:074622.296 In write_gsm() str:'^MESC^Z'
    6275:20150727:074622.296 End of write_gsm():SUCCEED
    6275:20150727:074622.296 In read_gsm() [] [NULL] [NULL] [NULL]
    6275:20150727:074622.296 error during wait for GSM modem
    6275:20150727:074622.296 Read from GSM modem []
    6275:20150727:074622.296 End of read_gsm():SUCCEED

    Can you help me please?
  • pcoluna
    Junior Member
    • Sep 2015
    • 3

    #2
    Hi

    Have you solved your problema?

    I'm dealing with this too.
    Same sms hardware, same port /dev/ttyUSB0

    I've istalled zabbix 2.2.10, 2.4.5 and 2.4.6 in Oracle 6.5, 6.6, 6.7, 7.0 and 7.1 and sms's do not work, with same result
    Expected [OK] received [+C]
    Expected [OK] received [K]
    Expected [OK] received [O]
    and one more
    Expected [OK] received []

    But if I install smstools I can send na sms without problems.

    What is the last version that works for you?

    Best Regards,

    Comment

    • petr11
      Junior Member
      • Jul 2015
      • 2

      #3
      Hi

      didn't solve . I needed sms alerts working urgently. So I did an external script as a workaround.

      Just simple shell script which send sms using any other sw you like, ex.:
      echo "$3" | gnokii --sendsms $1 > /dev/null

      Use this script in zabbix media.

      Not clear, but solution. I would be happy if anyone can help to get working zabbix->gsm back again

      Petr

      Comment

      • pcoluna
        Junior Member
        • Sep 2015
        • 3

        #4
        gsm modem stopped working in zabbix 2.4.5

        Hi again

        After some struggler I manage to send sms's.

        I've concentrate my efforts in Oracle Linux 6.7.
        Fresh install with version 2.4.2 of Zabbix send sms's. Upgrade to version 2.4.6 stop sending sms's.
        Fresh install with version 2.4.3 of Zabbix send sms's. Upgrade to version 2.4.5 stop sendinf sms's.
        Fresh install with version 2.4.4 of Zabbix send sms's. Upgrade to version 2.4.5 or 2.4.6 cannot send sms's.

        So, the last version that permits sending of sms's is version 2.4.4.

        Best Regards

        Comment

        • pcoluna
          Junior Member
          • Sep 2015
          • 3

          #5
          gsm modem stopped working in zabbix 2.4.5

          Hi again

          I've tested the upgrade from zabbix version 2.4.4 to 2.4.8 and the sms's are working.

          Best Regards.

          Comment

          Working...