Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 31st August 2008, 11:40 PM
MheAd Offline
Registered User
 
Join Date: Jun 2007
Posts: 19
Install Nagios on Fedora 8

I'm new to Nagios and Apache as well.
I'm trying to install it (Nagios) and play with it for a while.
A big problem is that the official documentation (as even other guides I find) are based upon compile-it-on-your-own-version, which have totally different dir-locations compared to the rpm/yum version of Nagios that I installed. That makes all of these guides very hard to follow. Anyway, I came across Max Hetrick's howto-guide @ Centos Wiki and it seems to make a lot of sense. The paths described there correspond mostly well to Fedora..

However, I'm getting an error after adding the cgi-configuration lines in httpd.conf.

Quote:
Starting httpd: [Mon Sep 01 00:37:19 2008] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 993 will probably never match because it overlaps an earlier Alias.
The line 993 corresponds to the first line in the code bellow. And from my humble knowledge, this error message is supposed to mean that I have double aliases in the config file, which is not true. No overlaps whatsoever. Any ideas?
Thanks in advance!


Code:
ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi-bin"

<Directory "/usr/lib/nagios/cgi-bin">
    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /etc/nagios/passwd
    Require valid-user
</Directory>

Alias /nagios "/usr/share/nagios"

<Directory "/usr/share/nagios">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /etc/nagios/passwd
    Require valid-user
</Directory>

Last edited by MheAd; 31st August 2008 at 11:46 PM.
Reply With Quote
  #2  
Old 1st September 2008, 12:13 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
The nagios docs make it all seem much harder than it should be.

I would start with Max Hetrick's howto on the CentOS wiki. Much of that also worked for F8, if I remember correctly.

Max wrote a REALLY excellent, easy to understand how to, much much better, IMHO, than the official docs.
Reply With Quote
  #3  
Old 1st September 2008, 12:44 AM
MheAd Offline
Registered User
 
Join Date: Jun 2007
Posts: 19
But if you read more carefully - you'll see that it was actually that very same doc that I was using myself to set the things up - yet came to this problem I'm describing.

Thanx in advance.
Reply With Quote
  #4  
Old 1st September 2008, 03:42 AM
scottro's Avatar
scottro Offline
Retired Community Manager -- Banned from Texas by popular demand.
 
Join Date: Sep 2007
Location: NYC
Posts: 8,142
Oh for goodness' sake, you're right. Sigh. Hrrm, I used it to install on F8 or F9 without an issue.
Please accept my apologies, I read too quickly.

I will look at what I have on Tuesday--I might have even gotten that error and commented something out somewhere, but I don't remember now.

(In the US, tomorrow's a holiday, and I REALLY don't want to log in over the weekend.)
Reply With Quote
  #5  
Old 1st September 2008, 04:08 AM
wintersm Offline
Registered User
 
Join Date: Jul 2006
Posts: 293
you shouldnt need to add anything to httpd.conf look in /etc/httpd/conf.d and you will find nagios.conf which the rpm adds..
Reply With Quote
  #6  
Old 1st September 2008, 04:09 AM
TheMadIndian's Avatar
TheMadIndian Offline
Registered User
 
Join Date: Sep 2007
Posts: 176
The reason for the error message is because its not necessary to add the Aliases in httpd.conf because the rpm install creates its own conf file in /etc/httpd/conf.d/nagios.conf where the aliases are already defined

and I know what you mean with source vs rpm, I support 3 nagios systems one is from source and the other two are from rpm, eventually you get used to the paths

fwiw - if you see /usr/ocal/nagios/etc (source) it will be /etc/nagios (rpm) /usr/local/nagios/libexec (source) /usr/lib/nagios (rpm)
__________________
Sometimes there are just something you cant explain
Reply With Quote
  #7  
Old 1st September 2008, 09:56 AM
MheAd Offline
Registered User
 
Join Date: Jun 2007
Posts: 19
Okay guys, thanks for the tips. I'll look into this and report how I'm doing. I'll probably get stuck someplace else in the progress. ))
Reply With Quote
  #8  
Old 1st September 2008, 09:58 AM
MheAd Offline
Registered User
 
Join Date: Jun 2007
Posts: 19
Quote:
Originally Posted by scottro
Oh for goodness' sake, you're right. Sigh. Hrrm, I used it to install on F8 or F9 without an issue.
Please accept my apologies, I read too quickly.
Hey man, that's cool, no sweat. I'm the one who's supposed to be grateful for any reply and here you are making apologies!
Reply With Quote
Reply

Tags
fedora, install, nagios

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagios F11 You don't have permission to access /nagios/ on this server. BWDRKR2 Using Fedora 2 4th March 2010 11:06 PM
Nagios Install Guide for Fedora?????? thasyndicate Using Fedora 7 12th September 2007 09:15 PM
Nagios install problem Secret Agent Servers & Networking 0 3rd October 2005 01:36 PM


Current GMT-time: 12:43 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat