Perl plugin help, Thanks

Peter Krzystofiak pkrzystofiak at endeavors.com
Wed Jan 15 19:37:48 CET 2003


Perl Pluging Question
========================
I can run this script via command line, but when I try to monitor it 
with the web page, I get an (Return code of 126 is out of bounds - plugin may be missing error) 
I just want to see the "testing...ca test" string in the nagios web monitor page.

You input is appreciated.

Thanks,

Peter K.


#! /usr/bin/perl -wT

use strict;
use Getopt::Long:
use vars qw($PROGNAME);
use lib "/usr/local/nagios/libexec";
use utils qw(%ERRORS &print_revision &support &usage);

$PROGNAME = "check_ca";

sub print_help();
sub print_usage();

$ENV{'PATH'}='';
$ENV{'BASH_ENV'}='';
$ENV{'ENV'}='';

print "testing...ca test\n";

exit $ERRORS{'OK'};



-------------------------------------------------------
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en




More information about the Users mailing list