Page 1 of 1

Installing nagios - SOLVED

Posted: Mon Nov 01, 2010 1:09 pm
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.

Re: Installing nagios

Posted: Mon Nov 01, 2010 2:40 pm
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

Re: Installing nagios

Posted: Sat Dec 04, 2010 10:41 am
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.

Re: Installing nagios

Posted: Sat Dec 04, 2010 11:21 am
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

Re: Installing nagios

Posted: Tue Dec 07, 2010 11:36 am
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