SMS notifications for specific hosts & services
Posted: Wed Apr 25, 2012 11:09 am
Hi,
I have Nagios up and running with various services and hosts being monitored successfully. I have configured email notifications using Postfix along with SMS alerting using our SMS provider Mediaburst. At present we are only receiving SMS notifications when a host alarms. I did this for testing so that we didn't get bombarded with SMS notifications for every single service alarm. I achieved this by defining a new command for the SMS notification and then adding this command to the 'generic-contact' contact template, as can be seen below:
My overall Nagios setup is fairly basic and still uses the default templates. I am a contact with a defined email and pager (my mobile number), I use the 'generic-contact' template and I'm also a member of the 'admins' contact group. My hosts then have the contact group 'admin' assigned to them for notification purposes.
What I'd like to achieve is to define specific hosts and services as 'critical-host' & 'critical-service' and then apply SMS notifications to these hosts and services only. This will allow me to get SMS notifications for key hosts & services and not when the cleaner unplugs the printer.
I'm after some advice as to how to achieve the above as I can't quite get my head around it.
If any further information is required then I will be more than happy to provide it.
I look forward to your replies.
I have Nagios up and running with various services and hosts being monitored successfully. I have configured email notifications using Postfix along with SMS alerting using our SMS provider Mediaburst. At present we are only receiving SMS notifications when a host alarms. I did this for testing so that we didn't get bombarded with SMS notifications for every single service alarm. I achieved this by defining a new command for the SMS notification and then adding this command to the 'generic-contact' contact template, as can be seen below:
Code: Select all
host_notification_commands notify-host-by-email,notify-host-by-smsWhat I'd like to achieve is to define specific hosts and services as 'critical-host' & 'critical-service' and then apply SMS notifications to these hosts and services only. This will allow me to get SMS notifications for key hosts & services and not when the cleaner unplugs the printer.
I'm after some advice as to how to achieve the above as I can't quite get my head around it.
If any further information is required then I will be more than happy to provide it.
I look forward to your replies.