I have recently updated nagios plugins to v2.1.4 and recently discovered an issue with what appears to be an LD_LIBRARY_PATH issue. When excecuting the plugin the following messages is displayed. "libintl.so.8 => /usr/local/lib/libintl.so.8 - wrong ELF class: ELFCLASS64". Updated LD_LIBRARY_PATH to use /usr/local/nagios/lib the plugin works locally but not remotely using check_nrpe.
How can the LD_LIBRARY_PATH be included in check_nrpe or what is the recommended method in fixing this issue?
NRPE: Unable to read output
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: NRPE: Unable to read output
I don't think your two issues are related. It's more likely check_nrpe isn't working for standard reasons. Please see this document:
https://assets.nagios.com/downloads/nag ... utions.pdf
The NRPE log from the listener will important.
https://assets.nagios.com/downloads/nag ... utions.pdf
The NRPE log from the listener will important.
Previous Nagios employee
-
lewislopez
- Posts: 8
- Joined: Wed Aug 10, 2016 7:25 am
Re: NRPE: Unable to read output
I went through the doc but everything is solid. Here's what I can see. The previous version of check_load works but the newer plugin doesn't...
Permissions on the plugins are the same:
-rwxr-xr-x 1 nagios nagios 119872 Mar 21 11:54 check_load
-rwxr-xr-x 1 nagios nagios 122908 Mar 28 10:54 check_load_core
Ran check_nrpe on both but only check_load_core works...
/usr/local/nagios/libexec/check_nrpe -H hostA -c check_load_core2
OK - load average: 0.14, 0.13, 0.12|load1=0.145;4.000;6.000;0; load5=0.129;4.000;6.000;0; load15=0.117;4.000;6.000;0;
/usr/local/nagios/libexec/check_nrpe -H hostA -c check_load
NRPE: Unable to read output
Any ideas?
Permissions on the plugins are the same:
-rwxr-xr-x 1 nagios nagios 119872 Mar 21 11:54 check_load
-rwxr-xr-x 1 nagios nagios 122908 Mar 28 10:54 check_load_core
Ran check_nrpe on both but only check_load_core works...
/usr/local/nagios/libexec/check_nrpe -H hostA -c check_load_core2
OK - load average: 0.14, 0.13, 0.12|load1=0.145;4.000;6.000;0; load5=0.129;4.000;6.000;0; load15=0.117;4.000;6.000;0;
/usr/local/nagios/libexec/check_nrpe -H hostA -c check_load
NRPE: Unable to read output
Any ideas?
-
avandemore
- Posts: 1597
- Joined: Tue Sep 27, 2016 4:57 pm
Re: NRPE: Unable to read output
From the listener, in /usr/local/nagios/etc/nrpe.cfg please set debug=1 restart NRPE, attempt the failing check_nrpe again, then attach the file /var/log/messages. Including /usr/local/nagios/etc/nrpe.cfg and any other referenced configuration files may also be helpful.
Previous Nagios employee
-
lewislopez
- Posts: 8
- Joined: Wed Aug 10, 2016 7:25 am
Re: NRPE: Unable to read output
I was able to recompile on a different system and the plugins are now working. Thanks.