Installing nagios - SOLVED

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
User avatar
sebastiaopburnay
Posts: 105
Joined: Sun Oct 31, 2010 1:40 pm
Location: Lisbon, Portugal

Installing nagios - SOLVED

Post by sebastiaopburnay »

Well, I've posted earlyer explaining the problems I had accessing the nagios web interface.

I'm using a sme-server (based on the CentOS) and I guess my problem was following the fedora quickstart guide.

So, I installed a fresh sme-server and when I got to tha page with instructions (http://wiki.contribs.org/Nagios#Installation) There was a warning saying
If you have the Nagios 2 contrib installed, follow the update instructions below
.

I'm now wondering if I still should follow those instructions, It also should be mentioned that this warning was after the part od running the getall wscript.

Thank you for your support.
Last edited by sebastiaopburnay on Wed Mar 06, 2013 2:35 pm, edited 1 time in total.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Installing nagios

Post by mguthrie »

My personal recommendation to get Core setup and running is this:

Make sure you've got apache up and running and php installed.

Then download from here and install from source.
http://www.nagios.org/download/

That way the directory locations will match the official Nagios Core documentation.
http://nagios.sourceforge.net/docs/3_0/toc.html
lanniel
Posts: 1
Joined: Sat Dec 04, 2010 10:31 am

Re: Installing nagios

Post by lanniel »

I am using Ubuntu 9.10. In following the Quickstart guide the package winds up in /etc/nagios3 instead of in /usr/local/etc/nagios. From then on the instructions don't line up. Also there is no objects directory below /etc/nagios3 so I'm not sure how to proceed with configuration. I'm trying to setup monitoring of Windows Servers. I have the NSClient agent installed on one windows machine now and am trying to configure the Nagios server to monitor it.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Installing nagios

Post by mguthrie »

Yeah, Ubuntu/apt install places Nagios files different directories than a source install. For the Core quickstart guide to match up you'd need to install from source. I've found Ubuntu's documentation on what it does with Nagios files to be a little bit sketchy.

I've used a quick install script to install from source on an Ubuntu box, you're welcome to use it. It might need the the wget addresses updated, but the rest should work.

Code: Select all

cd /tmp
##download these manually if the links are out of date
echo "Downloading source packages..."
wget http://prdownloads.sourceforge.net/sourceforge/nagios/#nagios-3.2.3.tar.gz
wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-#plugins-1.4.15.tar.gz
echo "Installing Nagios Core..."
useradd nagios -p nagios
tar zxf nagios-3.2.3.tar.gz
cd /tmp/nagios-3.2.3
./configure
make all
make install
make install-init
make install-commandmode
make install-config
make install-webconf

echo "########Enter password for nagiosadmin user:############"
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

echo "Installing Nagios Plugins\n"
cd /tmp
tar zxf nagios-plugins-1.4.15.tar.gz
cd nagios-plugins-1.4.15
./configure
make
make all
make install
tonyyarusso
Posts: 1128
Joined: Wed Mar 03, 2010 12:38 pm
Location: St. Paul, MN, USA
Contact:

Re: Installing nagios

Post by tonyyarusso »

The Ubuntu packages follow the POSIX Filesystem Hierarchy Standard, as they are supposed to. The documentation for this can be found on http://www.pathname.com/fhs/pub/fhs-2.3.html
Tony Yarusso
Technical Services
___
TIES
Web: http://ties.k12.mn.us/
Locked