Page 1 of 1

Unable to get process status

Posted: Sun Nov 23, 2014 1:20 pm
by J0aquin
I have installed Nagios Core 4.0.8 on CentOS 6.6 and when I access the home page you can see a message that says:

X Unable to get process status

and when you try to get in Tactical Overview, Hosts, Services or any other page you get:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/2.2.15 (CentOS) Server at 10.3.9.252 Port 80
I have reinstalled Nagios Core again following the instructions in the document: Installing Nagios Core From Source

http://library.nagios.com/library/produ ... rom-source

But I still have the same mesages and behaviour.

I have seen another post with a similar problem but it was solved unistalling nagvis that it is not my case as it is a new instalation with no nagvis.

What can I do?

Re: Unable to get process status

Posted: Sun Nov 23, 2014 1:51 pm
by rhassing
Is selinux enabled?
Try the following command:

Code: Select all

 getenforce 


If it is enabled you can disable it with:

Code: Select all

 setenforce  0
And than try to restart nagios and check the syslog : /var/log/messages

Re: Unable to get process status

Posted: Sun Nov 23, 2014 3:25 pm
by J0aquin
Yes, selinux was enabled and disabling it and restarting nagios with:

Code: Select all

/etc/init.d/nagios restart
solves the problem, In the home page I can see
Daemon running with PID XXXX
and I can access any page but, if I restart the computer where the Nagios is instaled the situation is the same again. How can I disable selinux permanetly?

Re: Unable to get process status

Posted: Sun Nov 23, 2014 4:40 pm
by rhassing
edit the file "/etc/sysconfig/selinux"

Code: Select all

# 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=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted 
And change the line with enforcing to disabled like:

Code: Select all

# 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
and reboot :-)

Re: Unable to get process status

Posted: Mon Nov 24, 2014 7:10 am
by J0aquin
Done. Working Ok. Thank you.

Re: Unable to get process status

Posted: Mon Nov 24, 2014 7:23 am
by rhassing
Nice to hear everything is working now.

Re: Unable to get process status

Posted: Mon Nov 24, 2014 10:23 am
by tmcdonald
As usual, thank you Rob for helping out!