Hi all,
I'm trying to set up a Nagios box to send SMS alerts using an RB751U-2HnD
which has a Telstra 4G USB device (Sierra Wireless 320U) connected to the
USB port.
At the moment, we use the SMSGlobal API (which was down for most of
yesterday afternoon) to send notifications from Nagios, which has the major
downside of relying on the internet connection from our Nagios box being
alive and of course, relies on the API provider being online as well. The
RB751U-2HnD is already in place (it is currently used to provide OOB access
into the network - permanently connected to the telstra.extranet APN for a
public IP with DynDNS set up so that it can be found), so I figured it would
be easy to add this functionality in.
So far, I've got a PHP script written that will (via a Mikrotik API call)
send an SMS out about 60% of the time - the rest of the time, the API
returns a timeout error (also logged to the Mikrotik log - eg "gsm,error sms
send failed: timeout"). This happens completely randomly, sometimes I can
send 10 messages in a row without a problem, then have another 10 that fail
- other times, I can send 10 messages and have every second one fail.
A basic solution would be to simply catch the error in the PHP script and
try to send again, but I'd like to see if I am missing anything in the
Mikrotik config first.
Currently running version 6.10 and I can't see anything in the changelog
since then that references SMS.
Relevant config sections:
/tool sms
set channel=2 port=usb1 receive-enabled=yes secret=smspassword
/port
set 0 name=usb1
/port firmware
set ignore-directip-modem=yes
/interface ppp-client info 0
modem-status: call in progress
pin-status: no password required
functionality: full
manufacturer: Sierra Wireless, Incorporated
model: AirCard 320U
revision: X1_2_2_0AP R2839 CNSZXD00000128 2011/08/05 15:52:41
serial-number: redacted
current-operator: Telstra (cellid redacted)
access-technology: Evolved 3G (LTE)
signal-strengh: -85 dBm
frame-error-rate: n/a
Has anyone come against this problem before?
Cheers,
Thomas