LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-25-2012, 12:31 PM   #1
rpzcas
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Rep: Reputation: Disabled
Installing Nagios no CentOS 5.6


hello, I am trying to setup Nagios without root privilege. All the files are under /etc/nagios, including the Apache.

I've had things properly installed but there seem to be configure issues which I can't figure out

this is the error message that I am getting when access http://localhost/nagios

The requested URL /nagios/< was not found on this server.

Apache log shows

File does not exist: /etc/nagios/nagios-local/share/<, referer: http://localhost/nagios/

Well, I am 100% sure the file is there. Below is the nagios.conf file which is part of httpd.conf in Apache.

ScriptAlias /nagios/cgi-bin "/etc/nagios/nagios-local/sbin/"

<Directory "/etc/nagios/nagios-local/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/etc/nagios/nagios-local/share/"

<Directory "/etc/nagios/nagios-local/share">
# SSLRequireSSL
Options none
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>

I've been stuck on this for hours. Thanks for any input.
 
Old 10-25-2012, 01:12 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why on earth are you installing anything under /etc?? That's just daft. Move it to a suitable location, like /usr/local/nagios
 
Old 10-25-2012, 03:10 PM   #3
rpzcas
LQ Newbie
 
Registered: Oct 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
well, that's the only directory I am allowed to install anything. I do not have permission to touch /usr/local/
 
Old 10-25-2012, 03:57 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this is all very very silly. how can you possibly have access to etc?? That's really THE most dangerous location to give someone access to... you do NOT serve content out of /etc, no way.
 
Old 10-25-2012, 04:49 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
and if you MUST install software that NEEDS root privilege
you ?? Might??? be able to install it to YOUR $HOME folder
but for an Apache program
YOU WILL NEED ROOT ACCESS to be able to use it
 
Old 10-25-2012, 04:54 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by rpzcas View Post
hello, I am trying to setup Nagios without root privilege....I've been stuck on this for hours. Thanks for any input.
I think you're screwed, unless
  1. you already have a mysql db created and
  2. a mysql_user/password with privs for that same db and
  3. an entry in, or access to insert/update a vhost in the httpd.conf and
  4. be able to restart httpd once all these particulars are true?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios help CentOS 5.5 aggrishabh Linux - Newbie 2 04-28-2011 01:11 AM
Nagios Server Setup in Centos 5.3 turiyain Linux - Server 6 08-13-2010 06:52 AM
How to add repository in centos 5.3 for nagios towhidtech Linux - Newbie 3 02-23-2010 09:32 AM
Getting Nagios to work on CentOS 5.3 Wenceslao Linux - Server 6 08-17-2009 01:07 PM
Help with Nagios (CentOS 5.2) sxa Linux - Software 2 02-28-2009 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration