I want to send criticle alerts via sms to my mobile phone.
As we have and old Nokia 6210 with data cable, we want to use it.
When I create a media type for the mobile phone (ttyS0) it doesn't send alerts.
When I use gnokii --sendsms ... it works fine. So my solution was to create a script to call the gnokii command.
The script looks like this:
echo $1 $2 $3 | gnokii --sendsms 5551234567
In case of an alert the zabbix_server.log shows the error "Exec format error".
When I change the script as
gnokii --sendsms ...
this error will not reported, but (of course) no sms will be send.
Thankz for all Your help !
cu
Jens
As we have and old Nokia 6210 with data cable, we want to use it.
When I create a media type for the mobile phone (ttyS0) it doesn't send alerts.
When I use gnokii --sendsms ... it works fine. So my solution was to create a script to call the gnokii command.
The script looks like this:
echo $1 $2 $3 | gnokii --sendsms 5551234567
In case of an alert the zabbix_server.log shows the error "Exec format error".
When I change the script as
gnokii --sendsms ...
this error will not reported, but (of course) no sms will be send.
Thankz for all Your help !
cu
Jens
Comment