Page 2 of 4

Re: You don't have permission to access /nagios/ on this ser

Posted: Wed Jan 11, 2017 3:15 pm
by sachinambardekar
I am the one who has installed and configured http and I am new to this. So if you can one more time explain me what exactly I need to do that would be of great help.

Thank you,
Sachin A

Re: You don't have permission to access /nagios/ on this ser

Posted: Wed Jan 11, 2017 3:55 pm
by rkennedy
See my original post as it answers your question -
rkennedy wrote:I believe the issue is here -

Code: Select all

 Directory index forbidden by Options directive
You'll want to consult whomever setup apache, or take a look at this article to see if it helps - http://stackoverflow.com/questions/5301 ... -directive

[/code]

Re: You don't have permission to access /nagios/ on this ser

Posted: Wed Jan 11, 2017 3:57 pm
by dwhitfield
For clarity on what @rkennedy said, the problem is we don't know the other software you have set up.

If it were me, I'd set up a VM and run Nagios by itself and avoid a complicated Apache config, but every organization has different policies about these things.

Re: You don't have permission to access /nagios/ on this ser

Posted: Thu Jan 12, 2017 4:23 pm
by sachinambardekar
Let me create another VM and try to install nagios on fresh installation. I will update this post if I ran into any issue.

Thank you,
Sachin A

Re: You don't have permission to access /nagios/ on this ser

Posted: Thu Jan 12, 2017 4:29 pm
by rkennedy
Sounds good - the best guides for installing can be found here - https://support.nagios.com/kb/category.php?id=58

Let us know if you run into any issues. I suspect it'll work without a problem though.

Re: You don't have permission to access /nagios/ on this ser

Posted: Sat Jan 14, 2017 3:16 pm
by sachinambardekar
Support,

As per your suggestion followed step - by - step instructions from https://support.nagios.com/kb/article.p ... ategory=58 and installed the nagios as well as nagios-plugin, however, while validating the plugin I am getting below error. Uploaded error screenshot as well as cgi.cfg file from /usr/local/nagios/etc

It appears as though you do not have permission to view information for any of the hosts you requested...
If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI
and check the authorization options in your CGI configuration file.


Please advise.

Thank you,
Sachin A

Re: You don't have permission to access /nagios/ on this ser

Posted: Mon Jan 16, 2017 12:52 pm
by rkennedy
Do you have hosts / services configured on the system? What is the full output of this? /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Re: You don't have permission to access /nagios/ on this ser

Posted: Mon Jan 16, 2017 1:50 pm
by sachinambardekar
[root@hdputils ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 4.2.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-24-2016
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Read object config files okay...

Running pre-flight check on configuration data...

Checking objects...
Checked 8 services.
Checked 1 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 1 contacts.
Checked 1 contact groups.
Checked 24 commands.
Checked 5 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 1 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 5 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check

[root@hdputils ~]# ps -ef|grep nagios
nagios 1814 1 0 10:48 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
nagios 1818 1814 0 10:48 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 1819 1814 0 10:48 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 1820 1814 0 10:48 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 1821 1814 0 10:48 ? 00:00:00 /usr/local/nagios/bin/nagios --worker /usr/local/nagios/var/rw/nagios.qh
nagios 2006 1814 0 10:48 ? 00:00:00 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
root 2033 2013 0 10:48 pts/0 00:00:00 grep nagios

[root@hdputils ~]# ps -ef|grep httpd
root 1694 1 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1715 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1716 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1717 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1718 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1719 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1720 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1721 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
apache 1722 1694 0 10:48 ? 00:00:00 /usr/sbin/httpd
root 2035 2013 0 10:48 pts/0 00:00:00 grep httpd

Please advise.

Thank you,
Sachin A

Re: You don't have permission to access /nagios/ on this ser

Posted: Mon Jan 16, 2017 3:19 pm
by rkennedy
It looks like you do indeed have a host group so it should be working, could you post the entire /usr/local/nagios/var/objects.cache file for us to review? We'll need to make sure 'nagiosadmin' is indeed a contact on the localhost host group, and that it's a contact of it too.

Re: You don't have permission to access /nagios/ on this ser

Posted: Mon Jan 16, 2017 5:25 pm
by sachinambardekar
Uploaded the requested file. Please advise.

Thank you,
Sachin A