In our environment, we have production, QA and development servers. I have a base.cfg configuration file that has all of the base checks we perform on every host. For example, we use check_load to check the server load, and this check needs to run on every server.
Unfortunately, we handle notifications differently by host, not service. Our QA/Dev servers do not need to be sent via SMS, only email. At first glance, this means that I need to have two copies of base.cfg, one with a contact_groups set to SMS and email for production, and a second with contact_groups set to just email.
Any thoughts on ways to prevent having to duplicate the base.cfg configuration? My thoughts so far:
- Never ending “Scheduled Downtime” would prevent all Dev/QA hosts from ever sending notifications - this gets half the goal accomplished at the loss of the other half.
- Change the SMS action to check the FQDN to see if it contains dev or qa and suppress SMS delivery. This gets both goals, but forces us to write a new SMS delivery process to check host