If any of these end up being too long, you can remove or substitute different macros in several places, as necessary. See the macro list for info on what's available in a notification command.
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members user
}
define contact{
contact_name name
alias name
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-sms
host_notification_commands host-notify-by-sms
email mail
pager MOBILENUMBER
}
You can send SMS messages through an SMS service, send them via the cell providers email to SMS addresses, or use a local SMS server. We did the latter. This link will give you details on how to do it:
If you want something that can be used out-of-the-box, you can take a look at SMSEagle
That's a hardware sms gateway. Their advantage is that the device stands close to your infrastructure, so when your Internet connection fails you can still send your SMS alerts.
Using a 3rd-party SMS service, or (even better) using a GSM device as Craig suggests, is going to be much more reliable/robust.
If you're dead set on using the provider's email->SMS gateway, you can use slimmed-down contact commands like this:
}
If any of these end up being too long, you can remove or substitute different macros in several places, as necessary. See the macro list for info on what's available in a notification command.
In
contacts_nagios2.cfg
:And in
commands.cfg
The first answer will do what you need.
You can send SMS messages through an SMS service, send them via the cell providers email to SMS addresses, or use a local SMS server. We did the latter. This link will give you details on how to do it:
http://www.linuxjournal.com/magazine/using-sms-server-provide-robust-alerting-service-nagios
This has been running for 1.5 yrs. Very reliable, and not dependent on email servers, or third party services.
If you want something that can be used out-of-the-box, you can take a look at SMSEagle
That's a hardware sms gateway. Their advantage is that the device stands close to your infrastructure, so when your Internet connection fails you can still send your SMS alerts.
They have ready plugin for Nagios - integration takes about 5min.