nagios webinterace - site not found

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.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: nagios webinterace - site not found

Post by Box293 »

chr1s wrote:when i try to access the Website and switch to "hosts" or "Services" i receive : You don't have permission to access /nagios/cgi-bin/status.cgi on this server.
I suspect you need to execute these commands:

Code: Select all

sudo a2enmod rewrite
sudo a2enmod cgi
systemctl restart apache2.service
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
chr1s
Posts: 9
Joined: Fri Aug 12, 2016 2:35 am

Re: nagios webinterace - site not found

Post by chr1s »

yes i'm using the nagiosadmin

a2enmod rewrite and a2enmod cgi already enabled
Attachments
cgi.cfg
(12.04 KiB) Downloaded 157 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: nagios webinterace - site not found

Post by rkennedy »

Please remove these lines -

Code: Select all

authorized_for_all_host=nagios
authorized_for_all_services=nagios
Then, above them, change these from -

Code: Select all

authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
to -

Code: Select all

authorized_for_all_services=nagiosadmin,nagios
authorized_for_all_hosts=nagiosadmin,nagios
Now run service nagios restart - is it working at this point?
Former Nagios Employee
chr1s
Posts: 9
Joined: Fri Aug 12, 2016 2:35 am

Re: nagios webinterace - site not found

Post by chr1s »

no, unfortunately the same error message.

Apache2 log file says : nagios client denied by server configuration /usr/local/nagios/sbinstatus.cgi
chr1s
Posts: 9
Joined: Fri Aug 12, 2016 2:35 am

Re: nagios webinterace - site not found

Post by chr1s »

found the solution:

i made this commands again and instead of nagios, i used my nagiosadmin user

sudo useradd nagios
sudo groupadd nagcmd
sudo usermod -a -G nagcmd nagios
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: nagios webinterace - site not found

Post by tmcdonald »

Glad to hear it! Are we all good to close this up then?
Former Nagios employee
chr1s
Posts: 9
Joined: Fri Aug 12, 2016 2:35 am

Re: nagios webinterace - site not found

Post by chr1s »

yes thank you
Locked