Unable to get process status

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.
Locked
J0aquin
Posts: 15
Joined: Tue Oct 21, 2014 3:03 pm

Unable to get process status

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

Re: Unable to get process status

Post 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
Rob Hassing
Image
J0aquin
Posts: 15
Joined: Tue Oct 21, 2014 3:03 pm

Re: Unable to get process status

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

Re: Unable to get process status

Post 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 :-)
Rob Hassing
Image
J0aquin
Posts: 15
Joined: Tue Oct 21, 2014 3:03 pm

Re: Unable to get process status

Post by J0aquin »

Done. Working Ok. Thank you.
User avatar
rhassing
Posts: 412
Joined: Sat Oct 05, 2013 10:29 pm
Location: Netherlands

Re: Unable to get process status

Post by rhassing »

Nice to hear everything is working now.
Rob Hassing
Image
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Unable to get process status

Post by tmcdonald »

As usual, thank you Rob for helping out!
Former Nagios employee
Locked