CRITICAL: Return code of 127

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ghagstedt
Posts: 5
Joined: Wed Oct 23, 2013 12:51 pm

CRITICAL: Return code of 127

Post by ghagstedt »

Linux Distribution and version? CentOS release 6.10 - 64 Bit
VMware Image or Manual Install of XI? Manual Install,
Nagios is the Current Version,
Note: we are using mod_geaman on 5 Servers...


I'm new to Nagios and I'm trying to setting monitoring using "snmp Linux" Wizzard.
It Configures with no issue and appears to correctly configure Monitoring for the Usual Services (Disk, CPU, Processes.........)

The First check appears to Work Correctly but on the Second check, I get.
CRITICAL: Return code of 127 is out of bounds. Make sure the plugin you're trying to run actually exists. (worker: xxxxx)
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: CRITICAL: Return code of 127

Post by mbellerue »

Hey, welcome to the forum!

So it looks like that message is coming from a specific mod_gearman worker. Can you verify that the plugin exists on that worker?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
ghagstedt
Posts: 5
Joined: Wed Oct 23, 2013 12:51 pm

Re: CRITICAL: Return code of 127

Post by ghagstedt »

I upgraded the Server from a really old version!!! I also upgraded the gearman workers.
Do I need to reinstall plugins?
If yes How?


[root@myrs-622-002 libexec]# pwd
/usr/local/nagios/libexec
+++++++
root@myrs-622-002 libexec]# ls -al |grep snm
-rwxr-xr-x. 1 root nagios 9719 Apr 14 2016 check_disk_snmp.pl
-rwxrwxr-x. 1 apache nagios 251233 Nov 12 2015 check_snmp
-rwxr-xr-x. 1 root nagios 4570 Nov 1 2016 check_snmp3_obsd_cpu_temperature.sh
-rwxr-xr-x. 1 root nagios 5144 Nov 1 2016 check_snmp3_obsd_mem.sh
-rwxr-xr-x. 1 root nagios 4570 Nov 8 2016 check_snmp3_obsd_uptime.sh
-rwxr-xr-x. 1 root nagios 5566 Dec 9 2015 check_snmp_apc_pdu
-rwxr-xr-x. 1 root nagios 10951 Nov 12 2015 check_snmp_boostedge.pl
-rwxr-xr-x. 1 root nagios 17066 Dec 15 2015 check_snmp_cpfw.pl
-rwxr-xr-x. 1 root nagios 8747 Nov 12 2015 check_snmp_css_main.pl
-rwxr-xr-x. 1 root nagios 16786 Nov 12 2015 check_snmp_css.pl
-rwxr-xr-x. 1 root nagios 33562 Nov 12 2015 check_snmp_env.pl
-rwxr-xr-x. 1 root nagios 23464 Nov 12 2015 check_snmp_generic.pl
-rwxr-xr-x. 1 root nagios 31919 Nov 12 2015 check_snmp_int.pl
-rwxr-xr-x. 1 root nagios 6792 Nov 21 2016 check_snmp_iproute.pl
-rwxr-xr-x. 1 root nagios 10108 Nov 12 2015 check_snmp_linkproof_nhr.pl
-rwxr-xr-x. 1 root nagios 23211 Nov 1 2018 check_snmp_load.pl
-rw-r--r--. 1 root nagios 30720 Oct 24 2016 check_snmp_load.pl.tar
-rwxr-xr-x. 1 root nagios 23886 Nov 12 2015 check_snmp_load_wizard.pl
-rwxr-xr-x. 1 root nagios 18838 Mar 19 2017 check_snmp_mem.pl
-rwxr-xr-x. 1 root nagios 11898 Nov 12 2015 check_snmp_nsbox.pl
-rwxr-xr-x. 1 root nagios 3690 Oct 14 2016 check_snmp_oid
-rwxr-xr-x. 1 root nagios 18900 Dec 9 2015 check_snmp_powerconnect
-rwxr-xr-x. 1 root nagios 26232 Nov 2 2018 check_snmp_process.pl
-rwxr-xr-x. 1 root nagios 26183 Nov 12 2015 check_snmp_process_wizard.pl
-rwxr-xr-x. 1 root nagios 2813 Dec 11 2017 check_snmp_storage_AVG.pl
-rwxr-xr-x. 1 root nagios 25562 Jan 15 2017 check_snmp_storage.pl
-rw-r--r--. 1 root nagios 1432 Jan 15 2017 check_snmp_storage.pl.patch
-rwxr-xr-x. 1 root nagios 25484 Nov 12 2015 check_snmp_storage_wizard.pl
-rwxr-xr-x. 1 root nagios 42981 Dec 9 2015 check_snmp_temperature.pl
-rwxr-xr-x. 1 root nagios 14489 Nov 12 2015 check_snmp_vrrp.pl
-rwxr-xr-x. 1 root nagios 12058 Jun 27 2018 check_snmp_win.pl
-rwxr-xr-x. 1 root nagios 7065 Nov 12 2015 check_win_snmp_disk.pl
ghagstedt
Posts: 5
Joined: Wed Oct 23, 2013 12:51 pm

Re: CRITICAL: Return code of 127

Post by ghagstedt »

So is this what I need to do on all of my Gearman servers:

yum install -y gcc glibc glibc-common make gettext automake autoconf wget openssl-devel net-snmp net-snmp-utils epel-release
yum install -y perl-Net-SNMP

cd /tmp
wget --no-check-certificate -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagio ... 2.1.tar.gz
tar zxf nagios-plugins.tar.gz

cd /tmp/nagios-plugins-release-2.2.1/
./tools/setup
ghagstedt
Posts: 5
Joined: Wed Oct 23, 2013 12:51 pm

Re: CRITICAL: Return code of 127

Post by ghagstedt »

Add

./configure
make
make install
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: CRITICAL: Return code of 127

Post by Box293 »

Please post the mod gearman config files from your Nagios server and from each of the workers.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ghagstedt
Posts: 5
Joined: Wed Oct 23, 2013 12:51 pm

Re: CRITICAL: Return code of 127

Post by ghagstedt »

I found the Issue My Snmp string ends with a "!" when the configuration gets saved, it drops the ! .
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: CRITICAL: Return code of 127

Post by benjaminsmith »

Hello @ghagstedt,
I found the Issue My Snmp string ends with a "!" when the configuration gets saved, it drops the ! .
We're you able to fully resolve this (e.g. change the community string)? if you still need assistance, run the full command from the terminal of XI and post the output, and the mod gearman config files from your Nagios server and from each of the workers.

Nagios XI - How To Test Check Commands From The Command-line
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked