OpenCraft
Follow OC!
  • Home
  • About
  • Solutions
  • Portfolio
  • Clients
  • Blog
  • Contact

Nagios SMS notifications

Mon, 2009-07-27 22:01
Tags:
  • debian
  • linux
  • nagios
  • sms
  • system integration
By: 
Islam Amer

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.

  • iamer's blog

Comments

by ezabi (not verified) | Tue, 2009-07-28 14:28

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.

by Anonymous (not verified) | Tue, 2009-07-28 15:13

"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

by iamer | Wed, 2009-07-29 13:15

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 :)

by Ahmed El Gamil (not verified) | Mon, 2009-08-17 15:07

smart :)

This is one smart trick indeed :)

keep up the good work

by iamer | Wed, 2009-08-19 10:49

Thanks

glad you like it :)

by rendy (not verified) | Thu, 2009-08-20 22:22

i agree

i follow http://www.simsonlai.org/nagios-sms/ tutorial with gnokii it works fine.. btw i am using debian lenny

Our work

SSRDP Portal

SSRDP requested a bilingual dynamic web portal to improve its...

Parks Egypt

The Egyptian Ministry of State...

View our complete portfolio

Related posts

  • Drupal performance optimization part 1
  • Diwan launches its website and online bookstore
  • OpenCraft migrates AUC Mail to Google Apps
  • Open source software development
  • Multimedia and Culture

More posts by this author

  • Drupal performance optimization part 1

OpenCraft

  • About
  • Team
  • Process
  • Community
  • Media Kit
  • Portfolio
  • Clients
  • Industries
    • Social economic development
    • Multimedia culture
  • Services
    • Drupal development
    • Information architecture
    • Open source software development
    • Social network engineering
  • Request quote
  • Contact
  • Search
Blog

Our profiles at:

Drupal Google
rss

Creative Commons License
search