check_nrpe returning with error 'Return code of 127...'

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
bitson
Posts: 2
Joined: Wed Dec 30, 2015 10:32 pm

check_nrpe returning with error 'Return code of 127...'

Post by bitson »

I'm attempting to use check_nrpe in order to gather some more in-depth data form a remote system but I'm getting an error in the web portal of "Return code of 127 is out of bounds - plugin may be missing"

I've verified that running check_nrpe from the remote system locally works fine (the config on the remote system appears ok).
I've verified that manually running check_nrpe works fine from the Nagios server (the config on the local and remote system further appears ok).
I've checked the 'Command Expansion' field to verify the path and executable of my command definitions and the result command can be copy and pasted into the terminal (replacing $HOSTADDRESS$ as appropriate) and the command executes just fine.
I've run the command under the nagios user in the terminal and it executes just fine.

So what is this error and why am I getting it ONLY in the GUI?

Thanks!
bitson
Posts: 2
Joined: Wed Dec 30, 2015 10:32 pm

Re: check_nrpe returning with error 'Return code of 127...'

Post by bitson »

Since being posted I was able to resolve this issue. It was due to the check_nrpe plugin path not being defined properly in the config files.

I've also since moved to check_by_ssh.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: check_nrpe returning with error 'Return code of 127...'

Post by rkennedy »

Were you able to get the check_by_ssh command working to your needs or do you have any questions?
Former Nagios Employee
Locked