Page 1 of 1

Nagios install on Debian Squeeze problematic

Posted: Sat Feb 04, 2012 4:41 pm
by jbruyet
Hey all, I'm trying to install Nagios Core on Debian Squeeze and this install is quite problematic. I think my main problem is that I can't find a Debian Quickstart Guide so I'm having to use an Ubuntu guide. I thought I was making progress until I tried to install the web interface. Running make install-webconf gives me the following error message:

root@DebNag:/home/jobee/Downloads/nagios# make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
/usr/bin/install: cannot create regular file `/etc/httpd/conf.d/nagios.conf': No such file or directory
make: *** [install-webconf] Error 1
root@DebNag:/home/jobee/Downloads/nagios#

I checked and I don't have an httpd folder under /etc. I'm following the instructions here:

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

I was told that installing from source is better than installing from a package manager but a package manager is starting to sound pretty good right now. SO, does anyone know where I can find a real Debian Quickstart guide? If not I'm going to redo this whole thing using Debian's package manager because I think I've spent enough time just trying to get this beast installed.

Thanks,

Joe B

Re: Nagios install on Debian Squeeze problematic

Posted: Sun Feb 05, 2012 8:36 pm
by jsmurphy
Unfortunately the main reference doc is a bit out of date for installation on some flavours of linux, I've never done a debian install myself but perhaps this guide might help: http://patrickmylund.com/blog/quick-it- ... th-nagios/

Re: Nagios install on Debian Squeeze problematic

Posted: Mon Feb 06, 2012 11:05 am
by SDohmen
I have a solution for this. The only downside is that the version it uses is older. Use the line below to get a fully functional nagios3 installation. Keep in mind that because of the line most files are located in a different location.

Code: Select all

apt-get install nagios3 nagios3-doc unzip libphp-jpgraph librrdtool-oo-perl rrdtool make nagios-nrpe-plugin gcc libnet-snmp-perl snmp-mibs-downloader python php5-curl snmpd
If you need some more help yell :)

I am not sure who told you that the source is better then the normal package manager but i would recommend the later because its so much easier to upgrade and install.

Re: Nagios install on Debian Squeeze problematic

Posted: Sat Feb 11, 2012 4:59 pm
by jbruyet
Thanks jsmurphy, I now have Nagios up and running and now I'm installing clients on the machines I need to monitor. And thanks for the info SDohmen. If jsmurphy's link didn't work out I was going to use yours.

Thanks again,

Joe B

Re: Nagios install on Debian Squeeze problematic

Posted: Mon Feb 13, 2012 2:57 pm
Unless there is something you know that you need in the latest version I would always recommend going with what is packaged in your distribution.

It generally gives you a much smoother ride.

Just my 2 cents.