Nagios install on Debian Squeeze problematic

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
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Nagios install on Debian Squeeze problematic

Post 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
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Nagios install on Debian Squeeze problematic

Post 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/
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: Nagios install on Debian Squeeze problematic

Post 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.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: Nagios install on Debian Squeeze problematic

Post 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
[email protected]
Posts: 6
Joined: Wed Feb 01, 2012 3:35 pm

Re: Nagios install on Debian Squeeze problematic

Post by [email protected] »

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.
Locked