Update Nagios Core to new version

If you have an Nagios Core installation from source, you want to update Nagios Core and Nagios Plugins regularly.

New versions are announced on the Nagios website: http://www.nagios.org/download/core (click Download at the "Core DIY Source" part).

Upgrade Nagios Core

Download the latest version, at this moment the lateste stable version is: Nagios Core 4.1.1 (2015-08-19)

wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.1.1.tar.gz --no-check-certificate

Unpack:

tar zxf nagios-4.1.1.tar.gz
cd nagios-4.1.1

I Run Nagios with a different group:

./configure --with-command-group=nagcmd
make all
sudo make install

Test the current configuration:

sudo /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

And Finally, restart Nagios

sudo service nagios restart

 

Upgrade Nagios Plugins

The latest Nagios Plugins can be found here: http://www.nagios.org/download/plugins

Install of the plugins is almost the same as the upgrade of Nagios Core.

wget http://www.nagios-plugins.org/download/nagios-plugins-2.1.1.tar.gz

Unpack:

tar zxf nagios-plugins-2.1.1.tar.gz
cd nagios-plugins-2.1.1

Compile:

./configure
make all
sudo make install

And Finally, restart Nagios

sudo service nagios restart

Done, now check if all checks are running.