Latest Nagios Quick-Start on Linux OpenSUSE 42.x Leap

April 6th, 2017 by thelinuxevangelist

Getting-Started with Nagios on OpenSUSE 42.x




Hello OpenSUSE User! This Tutorial Shows You Step-by-Step How-to Install and Getting-Started with the Latest Nagios 4.x Monitoring System for Linux OpenSUSE 42.x Leap 32/64bit Desktop.

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

Furthermore the Nagios Workflow Management Features are:

  • Monitoring: IT staff configure Nagios to monitor critical IT infrastructure components
  • Alerting: Nagios sends alerts when critical infrastructure components fail and recover
  • Response: IT staff can acknowledge alerts and begin resolving outages and investigating security alerts immediately
  • Reporting: Reports provide a historical record of outages, events, notifications, and alert response for later review
  • Maintenance: Scheduled downtime prevents alerts during scheduled maintenance and upgrade windows
  • Planning: Trending and capacity planning graphs and reports allow you to identify necessary infrastructure upgrades before failures occur.
Nagios Quick-Start on Linux OpenSUSE - Featured
  1. Open Console Terminal Shell emulator window
    (Press “Enter” to Execute Commands)

    Nagios Quick-Start on Linux OpenSUSE - Kde OpenSUSE Open Terminal
  2. Installing Apache & PHP 7

    sudo su
    zypper in httpd php7 php7-gd
    a2enmod php7
  3. Install other Required Packages

    zypper in gcc glibc gd gd-devel nano
  4. 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 root

    Last Achieve the SuperUser Session:

    exit
  5. Download Latest Nagios Core Linux Source:

    Nagios Core tar.gz Archive
  6. Double-Click and Extract Nagios Core into /tmp

    Getting-Started with Nagios Core for Linux Mint 18.x LTS - Extracting Nagios

    Or from Command Line:

    tar zxvf ~/Downloads/nagios*.tar.gz -C /tmp/
  7. Compiling and Installing Nagios Core on Linux Mint

    cd /tmp/nagios*
    ./configure --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
  8. Installing Nagios Core Web Interface

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

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

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

    /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/conf.d/nagios.conf
    a2enmod version
    systemctl restart apache2
  12. Starting Nagios

    /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg

    Should be possible to Start it also by systemctl…

  13. Create a nagiosadmin Web User with Pass

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

    Take Note of the Password!

    exit
  14. Access the Nagios Web Interface

    http://localhost/nagios

    User: ‘nagiosadmin’
    Pass: ThePass

  15. Download and Install Nagios Plugins:

    Nagios Plugins Installation

Nagios 4 Quick-Start on Linux Mint 18.x LTS - Nagios Web Interface

(Visited 59 times, 1 visits today)
Share on Tumblr

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


Comments are disabled