Page 1 of 1

custom email per service

Posted: Fri Nov 11, 2016 12:53 pm
by brettmlawrence
We have a user who monitors and gets alerts for many different services and would like to add a short custom message that varies depending on the service. Is it possible to create that and how to start if so.

Re: custom email per service

Posted: Fri Nov 11, 2016 1:38 pm
by ssax
Yes, you could use custom object macro:

https://assets.nagios.com/downloads/nag ... tvars.html

The general process would be:

- Add the custom macros on the services
- Adjust the service notification command that the user uses (create new or modify the old, you will see inside the contact) to include the custom object macro.

You should be able to follow this guide to get what you're looking for:

https://assets.nagios.com/downloads/nag ... iables.pdf

Let us know if you have any questions.

Thank you