Hi all,
Everything started this Hardware Agent series with a modified board where we implemented the Zabbix protocol, then we created a special module for it and now I'm glad to announce that we put a GMS module on it too.

The idea is simple, we have the same agent (2 ADC ports and 1 Digital port) but we can send SMS alerts too.
I created a script: senssms.sh in /home/zabbix/bin folder:
and also added the configuration in Administration->Media.
As you can see we try 3 times waiting 60 seconds for the SMS to be sent. Also everything is logged on /tmp/zabbix_smslog.txt
For each user we added a media entry (Type: sendsms.sh, SendTo: phone_number) and it works! You can receive the Alerts on your mobile phone.
As you can see the SMS are sent via HTTP but you can also send them via SNMP or Telnet. You can find more info about this on Florin's blog http://www.microelemente.ro/2008/11/...smgprs-module/
Rares
Everything started this Hardware Agent series with a modified board where we implemented the Zabbix protocol, then we created a special module for it and now I'm glad to announce that we put a GMS module on it too.
The idea is simple, we have the same agent (2 ADC ports and 1 Digital port) but we can send SMS alerts too.
I created a script: senssms.sh in /home/zabbix/bin folder:
Code:
#!/bin/bash wget -T 60 -t 3 -a /tmp/zabbix_smslog.txt -O - "http://10.57.96.58/sendsms.php?n=$1&m=$2&" >> /tmp/zabbix_smslog.txt echo "======================================" >> /tmp/zabbix_script_log.txt
As you can see we try 3 times waiting 60 seconds for the SMS to be sent. Also everything is logged on /tmp/zabbix_smslog.txt
For each user we added a media entry (Type: sendsms.sh, SendTo: phone_number) and it works! You can receive the Alerts on your mobile phone.
As you can see the SMS are sent via HTTP but you can also send them via SNMP or Telnet. You can find more info about this on Florin's blog http://www.microelemente.ro/2008/11/...smgprs-module/
Rares
Comment