How-to Install Latest Nagios on Xubuntu 14.04 Trusty LTS 32-64bit Linux Easy Guide

January 19th, 2015 by thelinuxevangelist

Nagios 4 QuickStart on Xubuntu 14.04 Trusty LTS



The Linux Tutorial Shows You Step-by-Step How-to Install and Getting-Started with Nagios 4 Monitoring System for Xubuntu 14.04 Trusty Tahr LTS i386/amd64 Linux Desktop/Server.

Nagios is a powerful Monitoring system that enables organizations to identify and resolve IT infrastructure problems before they affect critical business processes.

Nagios QuickStart on Xubuntu 14.04 Trusty LTS - Featured
  1. Open a Command Line Terminal Session
    (Press “Enter” to Execute Commands)

    Installing Nagios Core on Xubuntu 14.04 Trusty LTS - Open Terminal
  2. Install PreRequisite Packages

    sudo su

    If Got “User is Not in Sudoers file” then Look: Solution

    apt-get install wget build-essential apache2 \
    php5-gd libgd2-xpm-dev libapache2-mod-php5 apache2-utils
  3. Adding nagios User and Group

    useradd nagios
    groupadd nagcmd
    usermod -a -G nagcmd nagios
    usermod -a -G nagcmd www-data
    exit
  4. Download Latest Nagios Core Linux Source:

    Nagios Core tar.gz Archive
  5. Extracting Nagios Core

    Getting-Started with Nagios Core for Xubuntu 14.04 Trusty LTS - Extracting Nagios

    Or from Command Line:

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

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

    If Got “User is Not in Sudoers file” then Look: Solution

    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:nagios /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!

    exit
  13. Access the Nagios Web Interface

    http://localhost/nagios

    User: ‘nagiosadmin’
    Pass: That You Setup Before

  14. Download and Install Nagios Plugins:

    Nagios Plugins Installation

Nagios 4 Quick-Start on Xubuntu 14.04 Trusty LTS - Nagios Web Interface

Share on Tumblr

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


Comments are disabled