Customized plugins does not catch return code

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
StephMengMeng
Posts: 12
Joined: Tue Apr 29, 2014 3:21 pm

Customized plugins does not catch return code

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Customized plugins does not catch return code

Post 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 $?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked