Latest Nagios Quick-Start on Linux Fedora 22+

April 5, 2017 | By the+gnu+linux+evangelist | Filed in: Tutorial.

Getting-Started with Nagios on Fedora 22+

You are Welcome! The Tutorial Shows You Step-by-Step How to Install and Getting-Started with the Latest Nagios 4.x Monitoring System for Linux Fedora 22+ 32/64-bit Desktop.

First, 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 Fedora 22+ - Featured
  1. Open a Shell Terminal emulator window
    (Press “Enter” to Execute Commands)

     - Open Terminal
  2. How to Install Remi’s Rpm Repos on Fedora Linux

    Enabling Remi’s RPM Repos
  3. Installing Apache & PHP 7.1
    First, Login as SuperUser:

    sudo su
    dnf --enablerepo=remi --enablerepo=remi-php71 install 
    httpd php php-common php-gd
  4. Install other Required Packages

    dnf install gcc glibc glibc-common gd-devel
  5. 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:

  6. Download Latest Nagios Core Linux Source

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

    Getting-Started with Nagios Core for Linux Fedora 22+ - Extracting Nagios

    Or from Command Line:

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

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

    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
  9. Installing Nagios Core Web Interface

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

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

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

    /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf
  13. Enabling Apache CGI

    dnf install perl-CGI
    dnf -y install checkpolicy policycoreutils-python-utils
    semanage fcontext -a -t httpd_sys_script_exec_t /usr/local/nagios/sbin
    restorecon /usr/local/nagios/sbin
    systemctl restart httpd
  14. Starting Nagios

    systemctl start nagios
  15. Create a nagiosadmin Web User with Pass

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

    Take Note of the Password!

  16. Access the Nagios Web Interface


    User: ‘nagiosadmin’
    Pass: ThePass

  17. Download and Install Nagios Plugins

    Nagios Plugins Installation

Nagios 4 Quick Start on Linux Fedora 22+ LTS - Nagios Web Interface

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

QuickChic Theme • Powered by WordPress