Email attachment

dave-nagios at homer.cymry.org dave-nagios at homer.cymry.org
Wed Jan 14 13:07:02 CET 2004


On Wed, Jan 14, 2004 at 03:17:01PM -0000, Voon, Ton wrote:
> Young, Anya wrote:
> > Hello,
> > I am writing a Perl plugin for nagios and need to send a log file
> > with the detailed message as an attachment to the email notification.
> > Is it possible to do and if yes could you please let me know what
> > should I do for that. Thank you.  
> > Anya Serban.
> 
> I've copied this to nagios-users which is the more appropriate mailing list.
> If you are replying, please remove nagiosplug-devel.
> 
> You can use the macros in Nagios in your email (see misccommands.cfg and the
> Nagios documentation). Any extra information outside of these macros will
> require some clever scripting.
> 
> Ton

misccommands.cfg uses /bin/mail by default to send mail. the easiest thing to do is use
the mutt MUA (www.mutt.org) as a drop in replacement to /bin/mail. Simply install mutt,
and replace /bin/mail with /usr/bin/mutt in misccommands, and you can add a '-a' switch
to attach files. 



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list