Page 1 of 1

Cannot access nagios thorugh web/ip

Posted: Wed May 09, 2018 11:56 am
by hema12
I cannot access nagios using web/ip/localhost

But when i use `sudo service nagios status` It shows running/active

Can anyone please help me to fix this issue.

Re: Cannot access nagios thorugh web/ip

Posted: Wed May 09, 2018 3:28 pm
by npolovenko
Hello, @hema12. Were you able to access the web UI before? How long ago did this start to happen? What error are you getting?
Please upload the following file here:

Code: Select all

/etc/httpd/conf.d/nagios.cfg
Please run the following command:

Code: Select all

 tail -f * > /tmp/nagios.txt
And while the command is running try to access the web interface.
After you get an error wait 5 seconds and then upload the /tmp/nagios.txt file here.

Re: Cannot access nagios thorugh web/ip

Posted: Thu May 10, 2018 6:01 am
by hema12
@npolovenko thank you for your response

Now i am getting 401 unauthorised error.

Code: Select all

curl http://public ip/nagios
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Unauthorized</title>
</head><body>
<h1>Unauthorized</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
</body></html>
/etc/httpd/conf.d/nagios.cfg

No such file directory



tail -f * > /tmp/nagios.txt
tail: cannot open '*' for reading: No such file or directory
tail: no files remaining


PLease help

Re: Cannot access nagios thorugh web/ip

Posted: Thu May 10, 2018 12:55 pm
by npolovenko
@hema12, So when you type the link in the web browser it gets you to the login page, but when you enter the username and password it shows the 401 page. Has this user account worked in the past? Do any user accounts work right now? We could try to reset the password for that user.

Code: Select all

 sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users username

Re: Cannot access nagios thorugh web/ip

Posted: Fri May 11, 2018 12:55 am
by hema12
Hey hi,

Thanks a lot for your time..

I fixed that issue. Can you please help me with monitoring disk space and cpu usage of client machine .

I am getting command not found.

Re: Cannot access nagios thorugh web/ip

Posted: Fri May 11, 2018 11:37 am
by npolovenko
@hema12, Sure. Could you open a new thread for this new question?