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?
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?
. I needed sms alerts working urgently. So I did an external script as a workaround.
Comment