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 a new contact in Nagios’ contacts_nagios2.cfg file that sends an email to firstname.lastname@example.org (where you replace yourphonenumber with your mobile phone number e.g. email@example.com). Add the new contact also to a contactgroup so that it receives warnings.
- 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.
- 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. 🙂