Unable to get process status on nagios web interface

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
francofederico
Posts: 2
Joined: Tue May 22, 2018 4:43 am

Unable to get process status on nagios web interface

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Unable to get process status on nagios web interface

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
francofederico
Posts: 2
Joined: Tue May 22, 2018 4:43 am

Re: Unable to get process status on nagios web interface

Post by francofederico »

I solved the problem with the command

Code: Select all

nagios -d /etc/nagios/nagios.cfg
Thank you
Ciao
Franco
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Unable to get process status on nagios web interface

Post by npolovenko »

@francofederico, Locking the thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked