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.