Debian Quickstart

Up To: Contents

See Also: Quickstart Installation Guides, Security Considerations

Introduction

This guide is intended to provide you with simple instructions on how to install Naemon from packages on Ubuntu and have it monitoring your local machine within 10 minutes. No advanced installation options are discussed here - just the basics that will work for 95% of users who want to get started.

These instructions were written for:

  • Debian 9 stretch
  • Debian 8 jessie
  • Debian 7 wheezy
  • Debian 6 squeeze

What You’ll End Up With

If you follow these instructions, here’s what you’ll end up with:

  • Nagios plugins will be installed underneath /usr/lib/naemon/plugins/ (a symlink to /usr/lib/nagios/plugins/)
  • Naemon will be configured to monitor a few aspects of your local system (CPU load, disk usage, etc.)
  • The Naemon web interface will be accessible at http://localhost/naemon/

Install instruction

Warning: Don't forget to change your password from default, instruction are found below version specific installation instructions here

Debian 9 stretch

Add Consol Labs Repository
Install dirmngr if you do not already have it:

apt-get install dirmngr

Install GPG Key

gpg --keyserver keys.gnupg.net --recv-keys F8C1CA08A57B9ED7
gpg --armor --export F8C1CA08A57B9ED7 | apt-key add -

Add the apt Repository

echo "deb http://labs.consol.de/repo/stable/debian $(lsb_release -cs) main" > /etc/apt/sources.list.d/labs-consol-stable.list

Install Naemon

apt-get update
apt-get install naemon

Debian 8 jessie

Install dependencies

apt-get install apache2 apache2-utils libapache2-mod-fcgid libfontconfig1 libgd3 libjpeg8 libmysqlclient18 libpng12-0 libxpm4 xvfb 

Download Naemon

cd ~/
mkdir naemon
cd naemon/
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-core-dbg_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-core_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-dev_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-livestatus_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-thruk-libs_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-thruk-reporting_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon-thruk_1.4.3_debian8_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian8/amd64/naemon_1.4.3_debian8_amd64.deb

Install Naemon

dpkg -i naemon*.deb

Install Nagios plugins

apt-get install nagios-plugins

Change path to Nagios plugins

vi /etc/naemon/resource.cfg 

find $USER1$=/usr/lib/naemon/plugins

replace with $USER1$=/usr/lib/nagios/plugins

Restart services

service naemon restart
service apache2 restart

Debian 7 wheezy

Install dependencies

apt-get install apache2 libapache2-mod-fcgid libfontconfig1 libgd2-xpm libjpeg8 libmysqlclient18 libpng12-0 libxpm4 xvfb 

Download Naemon

cd ~/
mkdir naemon
cd naemon/
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-core-dbg_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-core_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-dev_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-livestatus_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-thruk-libs_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-thruk-reporting_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon-thruk_1.4.3_debian7_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian7/amd64/naemon_1.4.3_debian7_amd64.deb

Install Naemon

dpkg -i naemon*.deb

Install Nagios plugins

apt-get install nagios-plugins

Change path to Nagios plugins

vi /etc/naemon/resource.cfg 

find $USER1$=/usr/lib/naemon/plugins

replace with $USER1$=/usr/lib/nagios/plugins

Restart services

service naemon restart
service apache2 restart

Debian 6 squeeze

Install dependencies

apt-get install apache2 libapache2-mod-fcgid libfontconfig1 libgd2-xpm libjpeg8 libmysqlclient16 libpng12-0 libxpm4 xvfb 

Download Naemon

cd ~/
mkdir naemon
cd naemon/
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-core-dbg_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-core_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-dev_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-livestatus_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-thruk-libs_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-thruk-reporting_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon-thruk_1.4.3_debian6_amd64.deb
wget http://labs.consol.de/naemon/release/v1.4.3/debian6/amd64/naemon_1.4.3_debian6_amd64.deb

Install Naemon

dpkg -i naemon*.deb

Install Nagios plugins

apt-get install nagios-plugins

Change path to Nagios plugins

vi /etc/naemon/resource.cfg 

find $USER1$=/usr/lib/naemon/plugins

replace with $USER1$=/usr/lib/nagios/plugins

Restart services

service naemon restart
service apache2 restart

Change default password for Thruk

It’s most important to change your password to protect your site for unauthorized access

htpasswd /etc/thruk/htpasswd thrukadmin

Login to the Web Interface

You should now be able to access the Naemon web interface at the URL below. You’ll be prompted for the username admin and password you specified earlier or admin if you did not change your password.

http://localhost/naemon/