Ad Widget

Collapse

Media type test failed, SMSDevices not configured

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • it.tech
    Junior Member
    • May 2021
    • 28

    #1

    Media type test failed, SMSDevices not configured

    Hello friends and colleagues and Zabbix contributors.
    We have been running Zabbix on ver 6.4 for quite a while and after the upgrade to 7.4.5 we realized that something has happened to its ability to use SMS media. There has been no changes done to the configuration, we only upgraded following the documentation.
    I don't rule out something has been changed without our knowledge. Now we end up with an error while trying to test SMS media. It says SMSDevices not configured for /dev/ttyUSB2
    But if I run wvdialconf as explained it in this guide:
    https://techexpert.tips/zabbix/zabbi...ication-setup/
    I do see that my GSM modem is detected on /dev/ttyUSB2

    Found a modem on /dev/ttyUSB2.
    Modem configuration written to /etc/wvdial.conf.
    ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
    ttyUSB3<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

    And also when I try to send a text using gammu utility I receive a text message sent via CLI.

    I checked permissions for all USB devices and they show like this:

    crw-rw---- 1 root dialout 188, 0 Dec 1 19:58 ttyUSB0
    crw-rw---- 1 root dialout 188, 1 Dec 1 19:58 ttyUSB1
    crw-rw---- 1 root dialout 188, 2 Dec 1 19:58 ttyUSB2
    crw-rw---- 1 root dialout 188, 3 Dec 1 19:58 ttyUSB3

    And user zabbix is a member of dialout group:
    dialout:x:20:gsmsms,smsd,zabbix

    Anything or anywhere to verify to understand what is wrong ?

    Eugene
    Last edited by it.tech; 01-12-2025, 22:29.
  • Viktors Fomics
    Member
    • Oct 2025
    • 42

    #2
    Hello

    Starting from 7.0 additional parameter SMSDevices was introduced in the Zabbix server configuration, therefore it should look like SMSDevices=/dev/ttyUSB2 in your case. Would be a good idea to check if that had been added to the config file (with the server restart afterwards), as looks like it might be the issue in your case.

    Comment

    • it.tech
      Junior Member
      • May 2021
      • 28

      #3
      Now we are talking Thank you very much, Viktor. I suspected there was something missing. Ok, one more quick question before I'm fully satisfied. We heavily rely on receiving alerts via SMS because if the network is down we won't know about it.
      The test SMS worked and I would like to know if successful event of sending SMS is logged into Zabbix log files?

      Comment

      • Viktors Fomics
        Member
        • Oct 2025
        • 42

        #4
        Originally posted by it.tech
        Now we are talking Thank you very much, Viktor. I suspected there was something missing. Ok, one more quick question before I'm fully satisfied. We heavily rely on receiving alerts via SMS because if the network is down we won't know about it.
        The test SMS worked and I would like to know if successful event of sending SMS is logged into Zabbix log files?
        Np! The successful or failed SMS sending event should be logged in the Zabbix Server logs, but not with the default logging level - the 'DebugLevel=4' will be required to be set in the server configuration file (with the server restart afterwards).

        Comment

        • cyber
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Dec 2006
          • 4807

          #5
          If action is executed, then action log shows result... failed/sent..
          I would not leave server to run debuglevel 4... who needs all that, what it manages to produce..

          Comment

          • it.tech
            Junior Member
            • May 2021
            • 28

            #6
            Ok, guys, thanks again, duly noted

            Comment

            Working...