send_mail.pl not work Nagios 2.9
Carlos Herrera Polo
carlos.herrerapolo at gmail.com
Mon Mar 16 17:02:51 CET 2009
Do not get it to work "send_mail.pl" then making the settings:
*commands.cfg*
-----------------------
command_line /usr/lib/nagios/plugins/send_mail.pl -n \"HOST
$NOTIFICATIONTYPE$\" -h \"$HOSTNAME$\"-s \"$HOSTSTATE$\" -a
\"$HOSTADDRESS$\" -i \"$HOSTOUTPUT$\" -d \"$LONGDATETIME$\" -e
\"$CONTACTEMAIL$\"
*send_mai.pl*
-------------------
my $mailhost = '192.168.1.1';
my $maildomain = 'mydomain.com';
my $mailfrom = 'chp at mydomain.com';
my $mailto = 'chp at mydomain.com';
my $timeout = 30;
my $mailsubject = ''; # Leave blank
my $mailbody = ''; # Leave blank
my $logfile = '/tmp/mail.log'; # Put somewhere
better
my $debug = 1; # To enable SMTP
session debugging to logfile
---------------------
In the log file (mail.log) I see no effort when a warning event, but when I
use the default configuration of Nagios works all right, only send_mail.pl
not working.....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090316/67b32643/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
-------------- next part --------------
_______________________________________________
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