Recently I installed Nagios from the Ubuntu 10.04 repositories and found that the repository version is a version behind the current behind. I decided to install Nagios from source code directly. It is a simple process, below is how it is installed. Note there are two parts to Nagios, the core application and the plugins.
We need to install dependancies before we install nagios.
We now need to create the nagios user on the system, for the nagios software to run under.
Now that we have create the nagios user for the system, we need to download the nagios software.
Now we build the Nagios software
We now compile the software and install it, upon the system.
Configure the Nagios core.
You need to edit the alias and email lines.
We need to install the web based frontend software.
We need to create the login name of the user from the apache frontend. You wil also need to enter a password for the nagiosadmin user.
We need to reload the apache2 configuration.
We now need to build the plugins from source. Below are the steps below.
Now we get Nagios running. We need to get the permissions corrected so the startup files work.
We need to check that our nagios configuration is good, or Nagios will not start. The configuration check will show us if there are any errors in the configuration file.
If no errors are shown, you are able to start Nagios now.
You will be able to access Nagios from a web browser. The address will be http://localhost/nagios or http://<ip address of the server>/nagios Remember when you created the Nagios admin user above, you need to remember
If you want Nagios to email you on alerts, when things go wrong. You need to install
Select your mail server as a internet site. Note that you can modify the nagios /usr/local/nagios/etc/objects/commands.cfg file or easier process is to link /usr/bin/mail to /bin/mail. You do not need to restart nagios if you just done the soft link of the mail files.