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.
Box293
Too Basu
Posts: 5126 Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:
Post
by Box293 » Thu Aug 18, 2016 7:43 pm
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
Post
by chr1s » Fri Aug 19, 2016 2:18 am
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
Post
by rkennedy » Fri Aug 19, 2016 12:25 pm
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
Post
by chr1s » Mon Aug 22, 2016 1:21 am
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
Post
by chr1s » Mon Aug 22, 2016 6:01 am
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
Post
by tmcdonald » Mon Aug 22, 2016 9:49 am
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
Post
by chr1s » Thu Sep 01, 2016 9:25 am
yes thank you