Ad Widget

Collapse

no media defined for user when selecting SMS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xanadu
    Member
    • Sep 2014
    • 62

    #1

    no media defined for user when selecting SMS

    I've setup a Siemens MC35 gsm modem pointing to /dev/ttyS0 which works fine with minicom.
    Next step was setting up those parameters in zabbix, and adding a media SMS to a user.



    However when an alert is sent I'm getting an error message in the action log:

    no media defined for user "Zabbix Administrator"

    When I add an Email alert this works fine.
    I also tried to add SMS to another user, but I'm getting the same message there. Also tried to remove media type and readding it didn't help.
    Further I also added the "zabbix" user to the "dialout" group.

    Any suggestions? Is this a bug? I'm using zabbix v3.2.4
    Last edited by xanadu; 21-03-2017, 12:13.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by xanadu
    I've setup a Siemens MC35 gsm modem pointing to /dev/ttyS0 which works fine with minicom.
    Next step was setting up those parameters in zabbix, and adding a media SMS to a user.



    However when an alert is sent I'm getting an error message in the action log:

    no media defined for user "Zabbix Administrator"

    When I add an Email alert this works fine.
    I also tried to add SMS to another user, but I'm getting the same message there. Also tried to remove media type and readding it didn't help.
    Further I also added the "zabbix" user to the "dialout" group.

    Any suggestions? Is this a bug? I'm using zabbix v3.2.4
    can you add screen shots of you action - on the tab Operation and action operation ? so i can see what you set to send and
    another screen shot of the user and user group.

    Comment

    • xanadu
      Member
      • Sep 2014
      • 62

      #3
      Originally posted by batchenr
      can you add screen shots of you action - on the tab Operation and action operation ? so i can see what you set to send and
      another screen shot of the user and user group.
      Thanks, you pointed me in the right direction. Action was only set for disaster events. Still, it's not a very handy error message you receive.
      If I look in the action log I see following error message:

      error in open /dev/ttyS0: [16] Device or resource busy

      Any ideas?

      Comment

      • batchenr
        Senior Member
        • Sep 2016
        • 440

        #4
        Originally posted by xanadu
        Thanks, you pointed me in the right direction. Action was only set for disaster events. Still, it's not a very handy error message you receive.
        If I look in the action log I see following error message:

        error in open /dev/ttyS0: [16] Device or resource busy

        Any ideas?
        see if helps, maybe if you have some log at zabbx server log \ GSM log ?
        ref:


        Comment

        • xanadu
          Member
          • Sep 2014
          • 62

          #5
          Originally posted by batchenr
          Thanks for your assistance!

          I changed the primary group user in /etc/passwd to the groupid of the "dialout" group and then restarted zabbix-server, however that didn't help resolving the issue.
          Meanwhile a reboot has fixed my device is busy issue and zabbix is now delivering sms messages.

          Comment

          Working...