Problems with RPM install

Minkov, Ross Ross.Minkov at hp.com
Thu Mar 9 02:44:32 CET 2006


Thanks for you reply. I didn't know that FC4 now has nagios included...
Maybe that's why DAG never packaged nagios for FC4... The last version
for FC he has in his repo is for FC3.

In re: config files --> I already did the nagios -v trick and cleared
all errors. My config files are ok (iow, I don't have a bad config
problem).

I think my problem is that I don't know enough about SElinux to
configure it to allow me to see the nagios web interface. Any help in
regard to nagios and SElinux would be highly appreciated.


Thanks,
Ross

P.S. BTW, I have nothing from nagios in /sbin...

rpm -ql nagios | grep bin
/usr/bin/convertcfg
/usr/bin/mini_epn
/usr/bin/nagios
/usr/bin/nagiostats
/usr/bin/new_mini_epn
/usr/bin/p1.pl

rpm -qi nagios|head -12
Name        : nagios                       Relocations: (not
relocatable)
Version     : 2.0                               Vendor: Dag Apt
Repository, http://dag.wieers.com/apt/
Release     : 2.1.fc3.rf                    Build Date: Wed 08 Feb 2006
02:57:19 PM EST
Install Date: Sun 19 Feb 2006 01:02:25 AM EST      Build Host:
lisse.leuven.wieers.com
Group       : Applications/System           Source RPM:
nagios-2.0-2.1.fc3.rf.src.rpm
Size        : 4933812                          License: GPL
Signature   : DSA/SHA1, Wed 08 Feb 2006 05:01:29 PM EST, Key ID
a20e52146b8d79e6
Packager    : Dag Wieers <dag at wieers.com>
URL         : http://www.nagios.org/
Summary     : Open Source host, service and network monitoring program
Description :
Nagios is an application, system and network monitoring application.
 



-----Original Message-----
From: Demetri Mouratis [mailto:dmourati at cm.math.uiuc.edu] 
Sent: Tuesday, March 07, 2006 11:40 PM
To: Minkov, Ross
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Problems with RPM install

Ross,

Answers inline below.

On Tue, 7 Mar 2006, Minkov, Ross wrote:

>
> Short Question: Where is the nagios sbin directory if you installed
from
> RPM?

Run the rpm query command against the nagios package to find out:

# rpm -ql nagios|grep sbin
/usr/sbin/nagios
/usr/sbin/p1.pl

>
>
> Long Story:
> I just installed Nagios 2.0 (stable) on a FC4 system with SElinux
> enabled. I used the fc3 RPMs from
http://dag.wieers.com/packages/nagios/
> (dag doesn't have the FC4 RPMs out there yet):
>
> nagios-2.0-2.1.fc3.rf.i386
>
> Also installed nagios-plugins-1.4.1-1.1.fc3.rf.i386 from
> http://dag.wieers.com/packages/nagios-plugins/.
>

I use the dag repository myself.  Note, however, that Nagios has been 
included in the FC distro so you could install the official FC package 
using apt-get, yum, or even up2date, e.g.:

# up2date nagios

> Seems to be ok, except I had to --nodep the installation of the
plugins
> and add "Ignore { nagios-plugins };" to my apt.conf file (yes, I'm
still
> using apt)... The reason was that it was complaining about Perl
> Net-SNMP, but I already had it installed (net-snmp-perl)...
>
> Then I copied my config files from an older server I had (with Nagios
> 1.2), changed a few things to comply with the new syntax and tried to
> get the web interface configured.

This is undoubtedly where your problem is.  Copying the old config files

won't get you very far.  I would suggest running nagios in flight check 
mode as follows until you get 0 errors.  You may need to iterate a few 
times but this is the best way to troubleshoot a bad config.

# nagios -v /etc/nagios/nagios.cfg



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list