Page 4 of 4
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Fri Feb 13, 2015 10:15 am
by rlinux57
I have already disabled.
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Fri Feb 13, 2015 1:38 pm
by rhassing
Did you reboot the machine after changing the SElinux file?
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Sat Feb 14, 2015 2:57 am
by rlinux57
Yes, many times.
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Sat Feb 14, 2015 6:01 am
by millisa
Please post the output of the following two commands on the nagios server:
(this will show your kernel version and processor architecture)
and
Code: Select all
file /usr/local/nagios/libexec/check_nrpe
(this will show details about that check_nrpe binary you are trying to execute; correct the path to check_nrpe if necessary)
Running a 64bit binary on a 32bit kernel will result in 'cannot execute binary file'.
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Sat Feb 14, 2015 6:06 am
by rlinux57
uname -rp
2.6.32-504.8.1.el6.i686 i686
file /usr/local/nagios/libexec/check_nrpe
/usr/local/nagios/libexec/check_nrpe: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Sat Feb 14, 2015 6:09 am
by millisa
You have a 32 bit install of linux (see the i686 in the uname output? It would say 'x86_64' if it was a 64bit kernel); you are trying to run a 64bit binary version of check_nrpe (the 64-bit part of the output of the file command tells you this). This will not work. If you want to use a 32bit version of linux, you need to use a 32bit version of check_nrpe.
I am assuming you copied that check_nrpe from another system that was 64bit.
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Mon Feb 16, 2015 11:50 am
by abrist
Millisa is correct. You will need to get nrpe/plugins from you package manager or build it from source to acquire a 32 bit version.
Re: Nagios 4.0.8 Web Interface Not Working
Posted: Sat Sep 12, 2015 1:56 am
by rlinux57
I have resolved the issue, please marked as close.