Nowadays everything under the sun has SMS notification... I wanted to have them for OpenCraft's Nagios events, to help me manage them.
We had a USB modem lying around without an SIM card, and I know that most of them can function as a simple AT modem, so with proper configuration you can send SMS using them.
There are numerous guides online that describe how to configure nagios for that, for example : http://www.simsonlai.org/nagios-sms/ . I used gnokii on debian.
I got everything working fine as root, however nagios was still unable to send SMS, obviously a permissions problem. Raising the nagios user's privileges, running gnokii as root, or doing "chmod 777" on /dev/ttyUSB0 could fix this but would introduce security issues.
The trick is simply to add the nagios user to the dialout group :
usermod -a -G dialout nagios
Now I can sleep easy knowing I will be notified of any issues.



Comments
been there, done that
Actually I was experimetning with this using an old GSM modem back in ITSyn, using gnokii is quiet useful, now you can integrate it with whatever you want, think of an integration scenario with asterisk for example, would be really interesting.
"think of an integration
"think of an integration scenario with asterisk for example,"
... Nice, so nagios will call you if a server is down ..
imagine getting a call from a machine while you are setting with your girlfriend, think what will be your excuse to drop her and back to your problem :D
funny but there's more
I gues the scenarios are endless , for example sending sms to someone when he gets voicemail or missed call in asterisk :)
smart :)
This is one smart trick indeed :)
keep up the good work
Thanks
glad you like it :)
i agree
i follow http://www.simsonlai.org/nagios-sms/ tutorial with gnokii it works fine.. btw i am using debian lenny