OK, so you know all about what Nagios can do, it’s time to get on with it and choose an installation method.
You have two main choices when installing Nagios:
For most users, your OS’ native package management tool will be the easiest method of installing Nagios. You will find Nagios in all common package repositories such as RPM, apt-get, Ports etc. Note that some package collections will have several versions of Nagios, you may have to specify which version you want. Most common package collections will be fairly current.
Always consult your package documentation, this will usually contain information specific to your OS (both flavour and version!). No tutorial or guide could possibly cover every version, installation and configuration.
You can download the latest tarball and the RPM’s from:
But wait, if you're using FreeBSD, you don't have to. You can use the Ports Collection.
The FreeBSD Ports Collection provides an easy way of installing and updating software. Visit www.freebsd.org/docs for more information on using the Ports system.
If you're using another Operating Sytem and you’ve installed Nagios, you may also need to install the Nagios-Plugins package. Using FreeBSD you can install Nagios and the Nagios Plugins package from the ports collection by running the following commands. With previous FreeBSD ports of Nagios, you had to install the plugins separately, now it's all installed at once.
# cd /usr/ports/net-mgmt/nagios/ # make # make install # make clean
Note, this will install Nagios version 2 (at the time of writing, it's still in Beta).
I recommend selecting SNMP when prompted as shown below.
If you are using a package management tool, it should be fairly straightforward, but please read the package notes, they are there for a reason. If you're installing from source, read the documentation. It’s very thorough.