title: Zabbix Media Type Script for sending SMS not working
body: <p>we wanted to implement our SMS gateway in Zabbix.</p>
  <p>We got a cli tool (sms77-cli) for sending SMS which requires some parameters. However I did not found a way to do this directly with zabbix. Thats why I created a sh-script like this:</p>
  <pre><code>#!/bin/bash
  apikey=&quot;xxx&quot;
  
  
  /usr/lib/zabbix/alertscripts/sms77-cli --apikey $apikey --to $1 --text $2 --debug $3 &gt;&gt;/var/log/sms77.log
  </code></pre>
  <p>If I run the script from cli, it just works fine like this:</p>
  <pre><code>./callmeSMS.sh 001234567890 'bli bla blub' 1
  </code></pre>
  <p>Unfortunately the test in zabbix just runs into a timeout and I don't have a clue why. This is how I configured it in Zabbix:
  <a href="https://i.stack.imgur.com/pNjrJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pNjrJ.png" alt="zabbix conf" /></a></p>
  <p>But the test result looks like this:
  <a href="https://i.stack.imgur.com/CPbP4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CPbP4.png" alt="zabbix error" /></a></p>
  <p>Zabbix is able to run the sh script, I tested it with a simple echo, but it seems that it doesn't call the sms77-cli tool... I'm running out of ideas. Can someone help?</p>