[Nagiosplug-help] Perl plugin : Return code of 13 is out of bounds

Subhendu Ghosh sghosh at sghosh.org
Thu Jun 19 08:43:03 CEST 2003


This looks fine assuming you defined %ERRORS correctly.

Did you run it through the perl debugger?
Are you getting the same return code on the command line?

-sg

On Thu, 19 Jun 2003, Jean-Francois Levesque wrote:

> Well, this is the output and the exit code :
> 
> 
> if ($sth->fetchrow_array()) { print "MYSQL-REPLICATION OK - Cool\n"; 
> $exit = 0;}
> else { print "MYSQL-REPLICATION CRITICAL - Bad\n"; $exit = 2;}
> 
> (...)
> 
> if ($exit == 0) { exit $ERRORS{'OK'}; }
> else { exit $ERRORS{'CRITICAL'}; }
> 
> 
> Anything wrong?
> 
> JF
> 
> 
> Subhendu Ghosh wrote:
> > On Thu, 19 Jun 2003, Jean-Francois Levesque wrote:
> > 
> > 
> >>Hi!
> >>
> >>I have made a perl plugin and I get this error :  Return code of 13 is 
> >>out of bounds.  I haven't found any documentation about this error.  I 
> >>have read the section about perl plugins on 
> >>http://nagiosplug.sourceforge.net/developer-guidelines.html but it 
> >>didn't change anything.
> >>
> >>I have already checked http://www.nagios.org/faqs/viewfaq.php?faq_id=17 
> >>but no success...
> >>
> > 
> > 
> > The return code is something that is returned by the plugin.
> > 
> > Without looking at your code, we really can't say.
> > 
> 
> 

-- 






More information about the Help mailing list