Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-11395

absence of GSM modem significantly slows down alerter

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Won't fix
    • Icon: Major Major
    • None
    • 3.0.5
    • Server (S)

      Suppose we have configured a media type with a GSM modem, but the GSM modem is absent on our system. The problem is that alerter spends about 35 seconds for each SMS it fails to send, which slows it down significantly:

       27822:20161026:170148.731 In execute_action(): alertid [78] mediatype [2]
       27822:20161026:170148.731 In send_sms()
       27822:20161026:170148.731 In write_gsm() str:'^['
       27822:20161026:170148.732 End of write_gsm():SUCCEED
       27822:20161026:170148.732 In write_gsm() str:'AT+CMEE=2^M'
       27822:20161026:170148.732 End of write_gsm():SUCCEED
       27822:20161026:170148.733 In read_gsm() [] [NULL] [NULL] [NULL]
       27822:20161026:170150.402 error during wait for GSM modem
       27822:20161026:170150.402 Read from GSM modem []
       27822:20161026:170150.402 End of read_gsm():SUCCEED
       27822:20161026:170150.402 In write_gsm() str:'ATE0^M'
       27822:20161026:170150.402 End of write_gsm():SUCCEED
       27822:20161026:170150.403 In read_gsm() [OK] [NULL] [NULL] [NULL]
       27822:20161026:170152.072 error during wait for GSM modem
       27822:20161026:170152.072 Read from GSM modem []
       27822:20161026:170152.072 In check_modem_result()
       27822:20161026:170152.072 End of check_modem_result():FAIL
       27822:20161026:170152.072 End of read_gsm():FAIL
       27822:20161026:170152.073 In write_gsm() str:'^M^[^Z'
       27822:20161026:170152.073 End of write_gsm():SUCCEED
       27822:20161026:170152.073 In read_gsm() [] [NULL] [NULL] [NULL]
       27822:20161026:170152.073 error during wait for GSM modem
       27822:20161026:170152.073 Read from GSM modem []
       27822:20161026:170152.073 End of read_gsm():SUCCEED
       27822:20161026:170222.072 End of send_sms():FAIL
       27822:20161026:170222.072 End of execute_action():FAIL
       27822:20161026:170222.073 error sending alert ID [78]
       27822:20161026:170222.073 query without transaction detected
       27822:20161026:170222.073 query [txnlev:0] [update alerts set retries=1,error='Expected [OK] received []' where alertid=78]
      

      Running alerter under strace shows that it hangs on close() for a very long time. It would be nice if alerter would fail quicker in the absence of the GSM modem.

            Unassigned Unassigned
            asaveljevs Aleksandrs Saveljevs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: