How to Install Latest Nagios on Linux Mint Debian 32-64bit Easy Guide

January 17, 2015 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Nagios 4 Quick Start on LMDE

You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Getting-Started with Nagios 4 Monitoring System for Linux Mint Debian Edition 2012/2013/2014 i386/amd64 Mate/Cinnamon Desktop.

First, Nagios is a Powerful Monitoring System that enables Organizations to Identify and Resolve IT Infrastructure Problems before they affect Critical Business Processes.

Nagios Quick Start on Linux Mint Debian - Featured
  1. Open a Command Line Shell Session
    (Press “Enter” to Execute Commands)

    Installing Nagios Core on Linux Mint Debian - Open Terminal
  2. Install PreRequisite Packages


    If Got “User is Not in Sudoers file” then see: How to Enable sudo

    apt-get install wget build-essential apache2 
    php5-gd libgd2-xpm-dev libapache2-mod-php5 apache2-utils
  3. Adding nagios User and Groups
    Add the nagios User:

    useradd nagios

    Make the nagios Group:

    groupadd nagios

    Add the nagios user to the group:

    /usr/sbin/usermod -G nagios nagios

    Create a new nagcmd group for allowing external commands to be submitted through the web interface:

    groupadd nagcmd

    Add both the nagios & apache users to the Group:

    usermod -a -G nagcmd nagios
    usermod -a -G nagcmd www-data

    Last Achieve the SuperUser Session:

  4. Download Latest Nagios Core Linux Source

    Nagios Core tar.gz Archive
  5. Extracting Nagios Core

    Getting-Started with Nagios Core for Linux Mint Debian - Extracting Nagios

    Or from Command Line:

    tar zxvf ~/Downloads/nagios*.tar.gz -C /tmp/
  6. Compiling and Installing Nagios Core on Debian

    cd /tmp/nagios*
    ./configure --with-command-group=nagcmd
    make all

    If Got “User is Not in Sudoers file” then see: How to Enable sudo

    make install
    make install-init
    make install-config
    make install-commandmode
  7. Installing Nagios Core Web Interface

    mkdir -p /etc/httpd/conf.d/nagios.conf
    make install-webconf
  8. Post-Installation Configuration

    cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
    chown -R nagios:nagcmd /usr/local/nagios/libexec/eventhandlers
  9. Checking Nagios Installation

    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
  10. Enabling the Web Interface on Apache

    /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf
    a2enmod cgi
    service apache2 restart
  11. Starting Nagios

    /etc/init.d/nagios start
  12. Create a nagiosadmin Web User with Pass

    htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin

    Take Note of the Password!

  13. Access the Nagios Web Interface


    User: ‘nagiosadmin’
    Pass: That You Setup Before

  14. Download and Install Nagios Plugins

    Nagios Plugins Installation

Nagios 4 Quick Start on Linux Mint Debian - Nagios Web Interface

Tags: , , , , , , , , , , , , , , , , , , , , ,

QuickChic Theme • Powered by WordPress