Cannot access nagios thorugh web/ip

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.
Locked
hema12
Posts: 5
Joined: Wed May 09, 2018 8:29 am

Cannot access nagios thorugh web/ip

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Cannot access nagios thorugh web/ip

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hema12
Posts: 5
Joined: Wed May 09, 2018 8:29 am

Re: Cannot access nagios thorugh web/ip

Post 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
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Cannot access nagios thorugh web/ip

Post 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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
hema12
Posts: 5
Joined: Wed May 09, 2018 8:29 am

Re: Cannot access nagios thorugh web/ip

Post 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.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Cannot access nagios thorugh web/ip

Post by npolovenko »

@hema12, Sure. Could you open a new thread for this new question?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked