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
Customized plugins does not catch return code
-
- Posts: 12
- Joined: Tue Apr 29, 2014 3:21 pm
- 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
When you run the plugin on the nrpe box as the nagios user, what exit code is produced after running the perl script?
Type:
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.