Page 1 of 1

Unable to get process status on nagios web interface

Posted: Tue May 22, 2018 5:08 am
by francofederico
Hi all

I install nagios through ssh on ubuntu machine. then i try to open web interface on http://localhost/nagios/main.cgi I got this error.

Unable to get process status

My configuration file is
ScriptAlias /nagios/cgi-bin /opt/nagios/sbin
Alias /nagios /opt/nagios/share
<Location "/nagios">
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</Location>
<Directory "/opt/nagios/share">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
Order allow,deny
Allow from all
</Directory>
<Directory "/opt/nagios/sbin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Require all granted
Order allow,deny
Allow from all
</Directory>

Thank you in advance

Re: Unable to get process status on nagios web interface

Posted: Tue May 22, 2018 4:38 pm
by npolovenko
Hello, @francofederico. Is the SElinux enabled?

Code: Select all

getenforce
If it is you need to turn it off:

Code: Select all

setenforce  0
And restart apache with

Code: Select all

service httpd restart

Re: Unable to get process status on nagios web interface

Posted: Fri May 25, 2018 4:29 am
by francofederico
I solved the problem with the command

Code: Select all

nagios -d /etc/nagios/nagios.cfg
Thank you
Ciao
Franco

Re: Unable to get process status on nagios web interface

Posted: Fri May 25, 2018 1:33 pm
by npolovenko
@francofederico, Locking the thread.