Page 2 of 2
Re: nagios webinterace - site not found
Posted: Thu Aug 18, 2016 7:43 pm
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
Re: nagios webinterace - site not found
Posted: Fri Aug 19, 2016 2:18 am
by chr1s
yes i'm using the nagiosadmin
a2enmod rewrite and a2enmod cgi already enabled
Re: nagios webinterace - site not found
Posted: Fri Aug 19, 2016 12:25 pm
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?
Re: nagios webinterace - site not found
Posted: Mon Aug 22, 2016 1:21 am
by chr1s
no, unfortunately the same error message.
Apache2 log file says : nagios client denied by server configuration /usr/local/nagios/sbinstatus.cgi
Re: nagios webinterace - site not found
Posted: Mon Aug 22, 2016 6:01 am
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
Re: nagios webinterace - site not found
Posted: Mon Aug 22, 2016 9:49 am
by tmcdonald
Glad to hear it! Are we all good to close this up then?
Re: nagios webinterace - site not found
Posted: Thu Sep 01, 2016 9:25 am
by chr1s
yes thank you