Install troubles with Nagios + Fedora 14

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
linuxnewguy
Posts: 1
Joined: Thu Feb 17, 2011 7:59 pm

Install troubles with Nagios + Fedora 14

Post by linuxnewguy »

Fedora 14 2.6.35.6-45.fc14.i686

I am attempting to install nagios on a Fedora 14 box. I've d'loaded the latest version of nagios 3.2.3 and the plugins 1.4
===================================================================================================
When I perform the command: ./configure --with-command-group=nagcmd (as it says in the install document) i had no errors and it says the install directory is /user/local/nagios

General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/rc.d/init.d
Apache conf.d directory: /etc/httpd/conf.d
Mail program: /bin/mail
Host OS: linux-gnu

Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /bin/traceroute


Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.
=====================================================================
but when I attempt to 'make all' I get the following errors:

make all
cd ./base && make
make[1]: Entering directory `/home/linuxguy/Downloads/nagios-3.2.3/base'
make[1]: *** No rule to make target `../include/locations.h', needed by `broker.o'. Stop.
make[1]: Leaving directory `/home/linuxguy/Downloads/nagios-3.2.3/base'
make: *** [all] Error 2
[root@01ad-g7gwg41 nagios-3.2.3]# make all: make install; make install-init; make install-config; make install-commandmode; make install-webconf
make: *** No rule to make target `all:'. Stop.
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios

*** Init script installed ***

/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc/objects
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/nagios.cfg /usr/local/nagios/etc/nagios.cfg
/usr/bin/install: cannot stat `sample-config/nagios.cfg': No such file or directory
make: *** [install-config] Error 1
/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw

*** External command directory configured ***

/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot stat `sample-config/httpd.conf': No such file or directory
make: *** [install-webconf] Error 1
==========================================================================
As the install document goes on it says there should be a contacts.cfg inside the /usr/local/nagios/etc/objects directory, but there is nothing inside the directory.

Inside the nagios/etc directory the only thing there is objects, but there is nothing inside the object directory.

Any info on my problem would be greatly appreciative and I can give more info if needed.

Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Install troubles with Nagios + Fedora 14

Post by mguthrie »

This may not be updated for Fed 14, but it might help you find the issue:
http://nagios.sourceforge.net/docs/3_0/ ... edora.html
mwngai
Posts: 3
Joined: Sun Feb 20, 2011 9:20 pm

Re: Install troubles with Nagios + Fedora 14

Post by mwngai »

Fedora 14 already bundled with Nagios and its Plugin. I just simply using "Add/Remove program" inside Fedora for installation. Fast and simple.

David
fustigator
Posts: 1
Joined: Wed Feb 23, 2011 3:51 pm

Re: Install troubles with Nagios + Fedora 14

Post by fustigator »

http://nagios.sourceforge.net/docs/3_0/ ... edora.html

I followed this to the letter and got exactly the same problem described above. I also notice that my /usr/local/nagios/bin folder was empty.

Rgds,

Dan
Locked