Install succeeded.. but not really
Install succeeded.. but not really
I have installed network analyzer (2.2.0, grabbed via wget http://assets.nagios.com/downloads/nagi ... est.tar.gz) and running the ./fullinstall seemed to work correctly with no blatant errors. However, when I go to http://x.x.x.x/nagiosna/, I get a 403 forbidden: Forbidden You don't have permission to access /nagiosna/ on this server.
Checking the logs I see this: [Thu Mar 03 14:45:47.787122 2016] [core:error] [pid 19183] (13)Permission denied: [client x.x.x.x:42810] AH00035: access to /nagiosna/ denied (filesystem path '/var/www/html/nagiosna/www') because search permissions are missing on a component of the path.
Since this was entirely configured by the fullinstall script, I'm not sure what happened there. Any ideas? Alternatively, anything I can provide to help troubleshooting?
Checking the logs I see this: [Thu Mar 03 14:45:47.787122 2016] [core:error] [pid 19183] (13)Permission denied: [client x.x.x.x:42810] AH00035: access to /nagiosna/ denied (filesystem path '/var/www/html/nagiosna/www') because search permissions are missing on a component of the path.
Since this was entirely configured by the fullinstall script, I'm not sure what happened there. Any ideas? Alternatively, anything I can provide to help troubleshooting?
--
Griffin Wakem
Griffin Wakem
Re: Install succeeded.. but not really
What Operating system and version did you install NA on?
Can you login to the server, run the following commands and post the output?
Can you post the install.log file from the folder you ran the fullinstall from?
Can you login to the server, run the following commands and post the output?
Code: Select all
ps -ef
chage -l nna
grep nn /etc/group
ls -l /var/www/html/nagiosna/wwwBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Install succeeded.. but not really
Sorry, I should have included that. Long day! This is a Red Hat 7.2 system. I have attached the output to all commands and the log requested below.
You do not have the required permissions to view the files attached to this post.
--
Griffin Wakem
Griffin Wakem
Re: Install succeeded.. but not really
Run the following command:
then try to log in the web UI again.
What is the output of the following commands?
Code: Select all
chmod go+r /var/www/html/nagiosna/www/index.phpWhat is the output of the following commands?
Code: Select all
sestatus
service iptables status
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Install succeeded.. but not really
10:40:29 [root@netanalyzer www]# sestatus
SELinux status: disabled
10:40:53 [root@netanalyzer www]# service iptables status
Redirecting to /bin/systemctl status iptables.service
? iptables.service
Loaded: masked (/dev/null)
Active: inactive (dead)
I still get the Forbidden message. I was looking at this last night and I noticed the permissions on the folders were all 700.
SELinux status: disabled
10:40:53 [root@netanalyzer www]# service iptables status
Redirecting to /bin/systemctl status iptables.service
? iptables.service
Loaded: masked (/dev/null)
Active: inactive (dead)
I still get the Forbidden message. I was looking at this last night and I noticed the permissions on the folders were all 700.
--
Griffin Wakem
Griffin Wakem
Re: Install succeeded.. but not really
While not a problem yet, let's fix the password expiration:
Then run this command and attach the resulting /tmp/nnaperms.txt file:
Also, please zip up and attach your /etc/httpd/conf/httpd.conf file and your /etc/httpd/conf.d/nagiosna.conf file so that we can review them.
Thank you
Code: Select all
passwd nna
passwd -d nna
chage -I -1 -m 0 -M 99999 -E -1 nnaCode: Select all
getfacl -R nagiosna /var/www/html/nagiosna > /tmp/nnaperms.txtThank you
Re: Install succeeded.. but not really
The password expiration has been updated, and I have attached the requested files. Thanks!
You do not have the required permissions to view the files attached to this post.
--
Griffin Wakem
Griffin Wakem
Re: Install succeeded.. but not really
Please unzip the attached file and put it in your /tmp directory, then run these commands:
Then see if it's still broken for you and let us know the results.
Code: Select all
cd /
setfacl --restore=/tmp/pristine_nna_perms.txt
service httpd restartYou do not have the required permissions to view the files attached to this post.
Re: Install succeeded.. but not really
That did it! Thanks for your help. This ticket is good to close if needed.
--
Griffin Wakem
Griffin Wakem
Re: Install succeeded.. but not really
Great! I am marking this topic as "resolved".That did it! Thanks for your help. This ticket is good to close if needed.
Be sure to check out our Knowledgebase for helpful articles and solutions!