Page 1 of 1

Editing the email messages.

Posted: Wed Jul 08, 2015 12:46 pm
by monitoreo1
Hi Everybody !!!!!

Do you know how can i insert the text showed in the next image, into the body of the alerts email messages that Nagios sends when something occurs?

Here is the image:

https://drive.google.com/file/d/0Bz627f ... sp=sharing

Thanks for your help !!!

Re: Editing the email messages.

Posted: Wed Jul 08, 2015 12:55 pm
by jdalrymple
You need to add the $longserviceoutput$ data to your notification string. This is trivial, however it's different depending on whether you're using SMTP or Sendmail for your notifications.

If using SMTP this is done in the notifications settings for each user.
In the upper-right hand corner of the screen click your user name. On the left hand side click notification messages.
From that point the process is self explanatory.

If using Sendmail, just add the appropriate macro to your service notification command:
Configure --> Core Configuration Manager --> Commands --> Commands
find "notify-service-by-email" and add the macro to the mail command as desired.

Re: Editing the email messages.

Posted: Wed Jul 08, 2015 2:49 pm
by monitoreo1
Thanks for tour help !!!!

The data "longserviceoutput" , with the symbol "%" or "$" ?

Greetings !!!!

Re: Editing the email messages.

Posted: Wed Jul 08, 2015 3:10 pm
by jdalrymple
% if SMTP
$ if Sendmail