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 = 'c...@mydomain.com';
my $mailto = 'c...@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.....
------------------------------------------------------------------------------
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
_______________________________________________
Nagios-users mailing list
Nagios-users@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