i can not access nagios via web after installation

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
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: i can not access nagios via web after installation

Post by lmiltchev »

Is selinux enabled?

Code: Select all

sestatus
Have you checked your firewall rules?

Code: Select all

iptables -L -n
Restart apache:

Code: Select all

service apache2 restart
then try to access nagios in the web UI:

Code: Select all

http://<ip address>/nagios
If you get any errors, show us a screenshot of the page.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Ladi
Posts: 46
Joined: Tue Nov 06, 2012 3:27 am

Re: i can not access nagios via web after installation

Post by Ladi »

Hi All,

Below is the error am getting now when am trying to access nagios from the web. After i enabled SElinux, i try to access the page again and it ask me to login, after that is thrown the error below.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.22 (Ubuntu) Server at localhost Port 80

I check the apache2 logs, below is the error am seeing.


[Mon Jun 16 01:55:55 2014] [error] [client 127.0.0.1] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users
[Mon Jun 16 01:55:55 2014] [error] [client 127.0.0.1] File does not exist: /var


Please i will happy to hear from you. Thanks for usual assistance.


Regards,
Ladi
rajesh.mehra
Posts: 35
Joined: Mon Jan 27, 2014 2:38 am
Location: New Delhi, India

Re: i can not access nagios via web after installation

Post by rajesh.mehra »

Hi

Is this file available

Code: Select all

 /usr/local/nagios/etc/htpasswd.users
.

If not available create it


Code: Select all

htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin
Ladi
Posts: 46
Joined: Tue Nov 06, 2012 3:27 am

Re: i can not access nagios via web after installation

Post by Ladi »

Hi,

Its work like magic, after i created the path below.

htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin

Am starting the proper configuration now.



Thank you all for your support. I do appreciate.


Regards,
Ladi
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: i can not access nagios via web after installation

Post by slansing »

I suggest that you take a look at these getting started guides as it sounds like you have not had any experience with Nagios before:

http://nagios.sourceforge.net/docs/3_0/ ... tions.html
Locked