[Nagiosplug-help] Perl plugin : Return code of 13 is out of bounds
Jean-Francois Levesque
jfl at groupeiweb.com
Thu Jun 19 08:33:23 CEST 2003
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