alert email with url or attachement

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
rehanann
Posts: 1
Joined: Wed Aug 10, 2011 7:44 am

alert email with url or attachement

Post by rehanann »

Hi;
I have nagios 3.2.3 running in centos 6.1 server, I am looking URL link in the alert email once it sent to operation team via email.

actually if alert is sent related with the server http down, the url will be sent for that document.
there are couple of plugin in the nagios and i am looking to place the url link refered to the document to the same plugin.

lets suppose if plugin for http process monitoring, the email sent to that group and url is in that email.

Is there any workaround for the following thing can be add in the config file, if someone know where to add this kindly let me know.

Thanks.
mrtexasfreedom
Posts: 19
Joined: Tue Apr 12, 2011 6:31 pm

Re: alert email with url or attachement

Post by mrtexasfreedom »

I think you can edit your commands.cfg file to modify the 'notify-service-by-email' command definition. Here is a good example of how a fellow modified his notify-service-by-email command using the existing macros: http://goo.gl/aao4L

You might be able to create a custom variable and reference that in the notify-service-by-email definition, but I'm not sure because I haven't tried that before. In this approach, you would create a custom URL variable that's used in your check_http command, and then in the error notification, you would display the value of the URL custom variable.

Hope this helps,

mtf
Locked