[Nagiosplug-help] Perl plugin : Return code of 13 is out of bounds
Jean-Francois Levesque
jfl at groupeiweb.com
Thu Jun 19 08:48:13 CEST 2003
My %ERRORS :
use strict;
use lib "/virtual/nagios/libexec";
use utils qw(%ERRORS);
Nope, I haven't test with the debugger. How do I use the debugger?
When I run the command in my shell the output is ok. I don't see the
return code.
JF
Subhendu Ghosh wrote:
> 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