Return code of 127 for check of service

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
ricardowesley
Posts: 21
Joined: Thu Sep 05, 2013 1:16 pm

Return code of 127 for check of service

Post by ricardowesley »

Added for additional info:I have a fresh install of Nagios Core w/nrpe on Red Hat 6.4.
In my /var/log/messages, Nagios is consistently receiving this message "Return code of 127 for check of service" for ping, ssh, http, etc
My Nagios Web interface is only monitoring itself currently and saying that the localhost is "Return code of 127 is out of bounds - plugin may be missing"
I have status Nagios via
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg and service nagios status---Nagios is up and running
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Return code of 127 for check of service

Post by slansing »

Do you have the plugins package installed? Do you have the following directory with plugins inside of it?:

Code: Select all

/usr/local/nagios/libexec/
If so, make sure they are executable by the nagios user.
ricardowesley
Posts: 21
Joined: Thu Sep 05, 2013 1:16 pm

Re: Return code of 127 for check of service

Post by ricardowesley »

I have installed this plugin nagios-plugins-1.4.16.tar.gz, are there any other plugins that I should have? I also installed nrpe.
Not currently able to verify that the plugins are in directory /usr/local/nagios/libexec/, will verify tomorrow morning.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Return code of 127 for check of service

Post by abrist »

Let us know. Cheers.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ricardowesley
Posts: 21
Joined: Thu Sep 05, 2013 1:16 pm

Re: Return code of 127 for check of service

Post by ricardowesley »

OOps...problem resolved thanks
Locked