Event Handlers

Chris Purcell nagios at cjp.us
Thu Jul 22 17:41:12 CEST 2004


> Are you certain that you have full paths to mail/mailx and any other
> required programs in your script?

Yes, the script works fine from the command line.  Its a very simple
script that is just being used to test how Nagios event handlers work....

root at reaction etc# cat /usr/local/nagios/libexec/nagios_test.pl

#!/usr/bin/perl -w
use Net::SMTP;
$mailserver = '192.0.1.2';
$smtp = Net::SMTP->new($mailserver);
$smtp->mail('nagios at foo.com');
$smtp->to('nagios_alerts at foo.com');
$smtp->data();
$smtp->datasend("Subject: Nagios Test\n");
$smtp->datasend("
Just testing the Nagios event handlers, please disregard.
\n");
$smtp->dataend();
$smtp->quit;





-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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