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 !!!
Editing the email messages.
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Editing the email messages.
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.
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.
-
monitoreo1
- Posts: 124
- Joined: Wed Feb 18, 2015 10:41 am
Re: Editing the email messages.
Thanks for tour help !!!!
The data "longserviceoutput" , with the symbol "%" or "$" ?
Greetings !!!!
The data "longserviceoutput" , with the symbol "%" or "$" ?
Greetings !!!!
-
jdalrymple
- Skynet Drone
- Posts: 2620
- Joined: Wed Feb 11, 2015 1:56 pm
Re: Editing the email messages.
% if SMTP
$ if Sendmail
$ if Sendmail