Ad Widget

Collapse

Creating a custom Media Type for iSMS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • supplyd
    Junior Member
    • Oct 2014
    • 1

    #1

    Creating a custom Media Type for iSMS

    We have a iSMS cellular text messaging server (Multitech). It has an API that allows you to send a message by sending a http command. For example, if my SMS server was at 192.168.1.1, this pasted into the address bar in a standard browser would send a text message "message from zabbix" to (555) 555-5555. The device listens on port 81.

    Code:
    http://192.168.1.1:81/sendmsg?user=admin&passwd=zabbix&cat=1&to="5555555555"&text=message%20from%20zabbix
    The problem I'm having is figuring out how to translate that into something Zabbix can use as a Media Type so alerts will go out via SMS. I think I would use the Script type but no idea what to do. Anyone know how to do this?
  • evertonco
    Member
    • Aug 2014
    • 75

    #2
    If you can send sms from the command line, just follow this instructions:

    Custom alertscripts

    Basically, create a script with correct permissions (user zabbix) and pass the parameters (to, subject and message) in right order to script.

    Comment

    Working...