Nagios 4.0.8 Web Interface Not Working

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.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post 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
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Nagios 4.0.8 Web Interface Not Working

Post by rhassing »

Did you reboot the machine after changing the SElinux file?
Rob Hassing
Image
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

Yes, many times.
User avatar
millisa
Posts: 69
Joined: Thu Jan 16, 2014 11:13 pm
Location: Austin, TX
Contact:

Re: Nagios 4.0.8 Web Interface Not Working

Post by millisa »

Please post the output of the following two commands on the nagios server:

Code: Select all

uname -rp
(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'.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post 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
User avatar
millisa
Posts: 69
Joined: Thu Jan 16, 2014 11:13 pm
Location: Austin, TX
Contact:

Re: Nagios 4.0.8 Web Interface Not Working

Post 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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 4.0.8 Web Interface Not Working

Post 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.
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.
rlinux57
Posts: 324
Joined: Mon Dec 08, 2014 12:03 am

Re: Nagios 4.0.8 Web Interface Not Working

Post by rlinux57 »

I have resolved the issue, please marked as close.
Locked