[Xymon] Having problems with custom perl script for emails in alerts.cfg
Don Kuhlman
Don.Kuhlman at schawk.com
Fri Apr 20 17:05:19 CEST 2012
Hi folks. I have been working this week on trying to customize email alerts coming from xymon to our support team.
I downloaded the html_Mail.pl script from the scripts pages.
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.
Here is a snip from alerts.cfg where I defined it:
#Macro definitions for email
$SRMCUSTOM=SCRIPT /home/xymon/server/ext/html_mail.pl me at schawk.com FORMAT=PLAIN
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?
Where can I find the errors or logs that may be generated from this by the alerts module?
======================
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):
./html_mail.pl
Can't locate MIME/Lite.pm in @INC (@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.
BEGIN failed--compilation aborted at ./html_mail.pl line 31.
locate Lite.pm
/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/NetAddr/IP/Lite.pm
Line 31 contains:
Use MIME::Lite;
Thanks
Don K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120420/fa64f481/attachment.html>
More information about the Xymon
mailing list