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
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.
Create an Account for Web Interface
The next command will create an account nagiosadmin for the web interface.
htpasswd -c /etc/nagios/passwd nagiosadmin
The SELinux is enforcing by default. You need to disable it or configure it for nagios.
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
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.