Text messages (SMS) for Nagios

If you would like to get Nagios warnings as SMS on your phone you can simply let Nagios send warning emails to an SMS gateway like MessageBird. They offer accounts with no monthly fee so you have to pay only for the SMS messages that you send. Just do the following: Create an account on MessageBird. Add … Continue reading “Text messages (SMS) for Nagios”

If you would like to get Nagios warnings as SMS on your phone you can simply let Nagios send warning emails to an SMS gateway like MessageBird. They offer accounts with no monthly fee so you have to pay only for the SMS messages that you send. Just do the following:

  1. Create an account on MessageBird.
  2. Add a new contact in Nagios’ contacts_nagios2.cfg file that sends an email to yourphonenumber@sms.messagebird.com (where you replace yourphonenumber with your mobile phone number e.g. 123456789@sms.messagebird.com). Add the new contact also to a contactgroup so that it receives warnings.
  3. Sign in to MessageBird, click on Products > Email to SMS. Add the sender email Nagios will use so that MessageBird knows that this email address is allowed to send SMS through your account.
  4. Test if it works correctly e.g. by adding a Nagios service that fails.

Then you should get your Nagios warnings directly as SMS onto your phone.

Currently the first 9 SMS are free at MessageBird so if your server doesn’t fail too often, this might already last a while. 🙂