<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif; ">
<div style="color: rgb(0, 0, 0); ">Hi folks. I have been working this week on trying to customize email alerts coming from xymon to our support team.</div>
<div style="color: rgb(0, 0, 0); ">I downloaded the html_Mail.pl script from the scripts pages.</div>
<div style="color: rgb(0, 0, 0); ">I have been trying to get it to work via alerts.cfg but it's not.  When I activiated it, I also noticed that other email alerts I had stopped coming.</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Here is a snip from alerts.cfg where I defined it:</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">
<div>#Macro definitions for email</div>
<div>$SRMCUSTOM=SCRIPT /home/xymon/server/ext/html_mail.pl me@schawk.com FORMAT=PLAIN</div>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">If there are errors in the perl code, would this cause all of the other email alerts not to work too or only this piece?</div>
<div style="color: rgb(0, 0, 0); ">Where can I find the errors or logs that may be generated from this by the alerts module?</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">======================</div>
<div style="color: rgb(0, 0, 0); ">Here is the error I get when I try to run the html_mail.pl from a command line on our xymon server (for testing):</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div>
<div style="color: rgb(0, 0, 0); ">./html_mail.pl</div>
<div style="color: rgb(0, 0, 0); "><font class="Apple-style-span" color="#ff2500">Can't locate MIME/Lite.pm in @IN</font>C (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi
 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at ./html_mail.pl line 31.</div>
<div><font class="Apple-style-span" color="#ff2500">BEGIN failed--compilation aborted at ./html_mail.pl line 31.</font></div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">locate Lite.pm</div>
<div style="color: rgb(0, 0, 0); ">/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/NetAddr/IP/Lite.pm</div>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div><font class="Apple-style-span" color="#ff2500">Line 31 contains:</font></div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Use MIME::Lite;</div>
</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Thanks</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
<div style="color: rgb(0, 0, 0); ">Don K</div>
<div style="color: rgb(0, 0, 0); "><br>
</div>
</body>
</html>