Page 1 of 1

Custom email notication

Posted: Wed Apr 08, 2015 8:01 am
by riconeo
Hi,

I would like to create custom email notification to include a custom URL to a wiki support page based of the type of alerts.
E.g. Service CPU high utilisation alert. In the email content, it will have a custom field that contain an URL that alert handler can use to have more information about that specific item.

Any help on this is appreciated.

Thanks.

Re: Custom email notication

Posted: Wed Apr 08, 2015 10:20 am
by jdalrymple
You'll need to use custom object variables:

http://nagios.sourceforge.net/docs/nagi ... tvars.html

Configure --> Core Configuration Manager --> service templates --> Choose/Create template --> Misc Settings --> Manage Variable Definitions

I chose service templates, you could apply it to a host template or specific to individual hosts/services also. The Variable name must start with an underscore (_)

This info should get you most of the way - let us know if you need anything further.