Upgrading From Previous Nagios 3.x Releases
As newer alpha, beta, and stable releases of Nagios 3.x are released, you should strongly consider upgrading as soon as possible. Newer releases usually contain critical bug fixes, so its important to stay up to date. Assuming you’ve already installed Nagios from source code as described in the quickstart guide, you can install newer versions of Nagios 3.x easily.
You don’t even need root access to do it, as everything that needed to be done as root was done during the initial install. Here’s the upgrade process…
Make sure you have a good backup of your existing Nagios installation and configuration files. If anything goes wrong or doesn’t work, this will allow you to rollback to your old version.
Become the nagios user. Debian/Ubuntu users should use sudo -s nagios.
# su -l nagios
Download the source code tarball of the latest version of Nagios (visit http://www.nagios.org/download/ for the link to the latest version).
$ cd /tmp
$ wget http://osdn.dl.sourceforge.net/sourceforge/nagios/nagios-3.x.tar.gz
$ wget http://puzzle.dl.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.13.tar.gz

Extract the Nagios source code tarball and the plugin
$ tar -zxvf nagios-3.x.tar.gz
$ tar -zxvf nagios-plugins-1.4.x.tar.gz
$ cd nagios-3.x

Run the Nagios configure script, passing the name of the group used to control external command file permissions like so:
$ ./configure –with-command-group=nagios –enable-embedded-perl –prefix=/usr/local/nagios –with-cgiurl=/nagios/cgi-bin –with-htmurl=/nagios/ –with-nagios-user=nagios –with-nagios-group=nagios –with-officialplugins=/tmp/nagios-plugins-1.4.13

(check how you previsouly did the original compilation, use same args.
During the config check for any errors! I had:
No package ‘glib-2.0’ found
I had to compile it from source, after trying “apt-get install libglib2.0-0”
Also noticed that I upgraded the Official naios-plugins to 1.4.13 (must be download first)

Finally Compile the Nagios source code.
$ make all
Install updated binaries, documentation, and web web interface. Your existing configuration files will not be overwritten by this step.
# make install
# make install-init

Verify your configuration files and restart Nagios.
# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
# /etc/init.d/nagios restart

Upgrade the Nagios Official Plugin
Find out what plugin version you have:
# /usr/local/nagios/libexec/check_time –help | grep nagios-plugin
check_time v1991 (nagios-plugins 1.4.12)

Tags: , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *