You don't have permission to access /nagios/ on this server.

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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

Postby sachinambardekar » Wed Jan 11, 2017 3:15 pm

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
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

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

Postby rkennedy » Wed Jan 11, 2017 3:55 pm

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]
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkennedy
Support Tech
 
Posts: 5916
Joined: Mon Oct 05, 2015 11:45 am
Location: Nagios Enterprises

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

Postby dwhitfield » Wed Jan 11, 2017 3:57 pm

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.
User avatar
dwhitfield
Support Tech
 
Posts: 1465
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

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

Postby sachinambardekar » Thu Jan 12, 2017 4:23 pm

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
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

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

Postby rkennedy » Thu Jan 12, 2017 4:29 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkennedy
Support Tech
 
Posts: 5916
Joined: Mon Oct 05, 2015 11:45 am
Location: Nagios Enterprises

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

Postby sachinambardekar » Sat Jan 14, 2017 3:16 pm

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
Attachments
cgi.cfg
(12.45 KiB) Downloaded 7 times
Nagios Command error.docx
(159.37 KiB) Downloaded 7 times
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

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

Postby rkennedy » Mon Jan 16, 2017 12:52 pm

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
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkennedy
Support Tech
 
Posts: 5916
Joined: Mon Oct 05, 2015 11:45 am
Location: Nagios Enterprises

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

Postby sachinambardekar » Mon Jan 16, 2017 1:50 pm

[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
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

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

Postby rkennedy » Mon Jan 16, 2017 3:19 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
rkennedy
Support Tech
 
Posts: 5916
Joined: Mon Oct 05, 2015 11:45 am
Location: Nagios Enterprises

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

Postby sachinambardekar » Mon Jan 16, 2017 5:25 pm

Uploaded the requested file. Please advise.

Thank you,
Sachin A
sachinambardekar
 
Posts: 23
Joined: Sat Jan 07, 2017 7:21 pm

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 19 guests