Page 1 of 1

Cannot lauch Nagios on Web

Posted: Fri Nov 17, 2023 5:25 pm
by vasyap
I made an installation of Nagios 4.4 Core using this video: https://www.youtube.com/watch?v=oxv13_3 ... HL&index=5 on my Linux Centos 7.9 machine
When tried to browse Nagios in web using <my_machine_ip>/nagios, I got a prompt for a username and password. After entering my credentials, got error 500:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.

The Linux machine does not have a Firewall.
Please advise on solution.

Re: Cannot lauch Nagios on Web

Posted: Tue Nov 21, 2023 8:35 am
by ppear
I had a similar issue during an install recently and it came down to the ownership and permissions of the htpasswd.users file located in /usr/local/nagios/etc. If root is the owner, change it to the nagios user. chown nagios:nagios htpasswd.users. Mine also has 664 perms.

Re: Cannot lauch Nagios on Web

Posted: Tue Nov 21, 2023 10:24 am
by kvang
Hey vasyap,

Have you successfully addressed the issue? If not, have you examined the error logs? If you have reviewed the logs and implemented changes, be sure you run the necessary commands afterwards.

Code: Select all

systemctl restart httpd
systemctl restart nagios
Thanks!