Nagios Fedora 11 Quickstart Guide

There is an official quickstart guide for installing nagios on Fedora Linux. However, it’s for Fedora Core 6. A lot of information is not relevant for Fedora 11. I tried to install it on my Fedora 11 virtual machine and here is the guide. Note that you need to issue the following commands as root in a terminal window.


These packages are required for nagios: Apache web server, PHP, GCC compiler and GD development libraries. You can install them by this yum command.

yum install httpd php gcc glibc glibc-common  gd gd-devel

Nagios Installation

We use yum again to install nagios and all the plugins.

yum install nagios nagios-plugins-all

Add Email Notification
There is one file to edit if you want to receive email alerts.

gedit /etc/nagios/objects/contacts.cfg

Create an Account for Web Interface

The next command will create an account nagiosadmin for the web interface.

htpasswd -c /etc/nagios/passwd nagiosadmin

Disable SELinux

The SELinux is enforcing by default. You need to disable it or configure it for nagios.

gedit /etc/selinux/config

Reboot the machine after you modify the settings.

Start the Services

You can now start httpd and nagios services.

service httpd start
service nagios start

On a side note, if you want httpd and nagios to start automatically next time you boot up the system, you can use the following commands.

chkconfig httpd on
chkconfig nagios on

Check Installation

The basic installation is complete. You can open up a browser and visit the nagios site using the user name(nagiosadmin) and password you specified earlier.


This post may contain affiliated links. When you click on the link and purchase a product, we receive a small commision to keep us running. Thanks.


Leave a Reply