alerts:html_mail2.0

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
alerts:html_mail2.0 [2016/03/21 07:54] – [My Alert (CHANGEME)] helgealerts:html_mail2.0 [2016/03/21 09:02] – [Advanced HTML/Plain Alarm Mail] helge
Line 1: Line 1:
-====== My Alert (CHANGEME) ======+====== Advanced HTML Mail Alarm ======
  
 ^ Author | [[ helge.jacobsen@atos.net | Helge Jacobsen]] | ^ Author | [[ helge.jacobsen@atos.net | Helge Jacobsen]] |
Line 26: Line 26:
   -Make the script executable:<code>   -Make the script executable:<code>
 chmod 755 html_mail.pl</code> chmod 755 html_mail.pl</code>
 +  -Be sure that you have MIME::Lite.pm
 +
   - Add the following line in whichever alert for which you want messages <code>   - Add the following line in whichever alert for which you want messages <code>
-  SCRIPT [XYMON_SERVER_ROOT]/ext/html_mail.pl [RECIPIENT] FORMAT=PLAIN</code> +  SCRIPT [XYMON_SERVER_ROOT]/ext/html_mail.pl [RECIPIENT] FORMAT=PLAIN RECOVERED</code> 
-  - And of course you replace [XYMON_SERVER_ROOT] with the full path to your xymon server directory (e.g. /usr/lib/hobbit/server ).+  If you want enable/disable notification : <code> 
 +  SCRIPT [XYMON_SERVER_ROOT]/ext/html_mail.pl [RECIPIENT] FORMAT=PLAIN RECOVERED INFO </code> 
 +   
 +    
 +  - And of course you replace [XYMON_SERVER_ROOT] with the full path to your xymon server directory  
 +(e.g. /home/xymon/server ).
  
 ===== Source ===== ===== Source =====
Line 71: Line 78:
    
 use strict; use strict;
-use lib "/home/xymon/lib/perl";+# only necessary if you have no access to the perl system libs 
 +use lib "/home/xymon/lib/perl"; 
 use MIME::Lite; use MIME::Lite;
    
  • alerts/html_mail2.0.txt
  • Last modified: 2016/03/21 11:58
  • by helge