Friday, September 02 2005 @ 05:01 PM CEST Contributed by: bart Views: 20722
I use the popular monitoring tool Zabbix and wanted it to be able to send messages to cellphones and pagers. The obvious solution is to use one of the Internet based gateways, but that has the obvious problem of not workign when Zabbix wants to inform me about connection problems.
The solution for this is using a modem and an sms or pager client. sms_client is a tool that combines both.
Configuring sms_client to work properly with Zabbix is not as straightforward as you might think. The problem is that the alert scripts in Zabbix are started from some PHP script. When the alert script generates output (and doesn't redirect it to some file or /dev/null) it will hang there forever once it is finished, it will never terminate. The result is that the first message works, and after that it won't work anymore.
The solution is to use a script like the one provided here: