Perl plugin help, Thanks

Subhendu Ghosh sghosh at sghosh.org
Wed Jan 15 20:40:22 CET 2003


Command is found - but not executable - check the perm bits.

On Wed, 15 Jan 2003, Peter Krzystofiak wrote:

> 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
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 

-- 




-------------------------------------------------------
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