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
alerts:html_mail2.0 [2016/03/21 08:08] – [Installation] helgealerts:html_mail2.0 [2016/03/21 11:58] (current) – [Installation] helge
Line 1: Line 1:
-====== Advanced HTML/Plain Alarm Mail ======+====== 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>
   If you want enable/disable notification : <code>   If you want enable/disable notification : <code>
-  SCRIPT [XYMON_SERVER_ROOT]/ext/html_mail.pl [RECIPIENT] FORMAT=PLAIN INFO </code>+  SCRIPT [XYMON_SERVER_ROOT]/ext/html_mail.pl [RECIPIENT] FORMAT=PLAIN RECOVERED NOTICE </code>
      
        
   - And of course you replace [XYMON_SERVER_ROOT] with the full path to your xymon server directory    - And of course you replace [XYMON_SERVER_ROOT] with the full path to your xymon server directory 
-(e.g. /usr/lib/hobbit/server ).+(e.g. /home/xymon/server ).
  
 ===== Source ===== ===== Source =====
Line 76: 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.1458547732.txt.gz
  • Last modified: 2016/03/21 08:08
  • by helge