Page 1 of 1

Customized plugins does not catch return code

Posted: Tue Jun 23, 2015 4:58 pm
by StephMengMeng
Hello,

I run into some problem with my nagios plugin script. My nrpe is installed in xinetd. The plugin is in perl. However, nagios3 only catches exit(0), which is OK. When it exit(2), nagios3 does not catch it. Does anyone run into the same problem?

Thanks,
Stephanie

Re: Customized plugins does not catch return code

Posted: Tue Jun 23, 2015 7:10 pm
by Box293
When you run the plugin on the nrpe box as the nagios user, what exit code is produced after running the perl script?
Type:

Code: Select all

echo $?