Upgrade Nconf 1.2.5 to 1.2.6

Earlier we have covered Nconf Installation, here you’ll find upgrade process.

download nconf from http://www.nconf.org/

Backup nconf db

mysqldump nconf > nconf.sql

Extract nconf-1.2.6

cd /tmp
tar zxvf /root/nconf-1.2.6-0.tgz

Copy new nconf files (before proceeding keep backup of existing nconf directory)

cd /var/www/html/nconf
cp -rfva /tmp/nconf/* .
chown apache: *

Upgrade db

cd /var/www/html/nconf/UPDATE/1.2.5_to_1.2.6
mysql nconf -u nconf -p < update_database_1.2.5_to_1.2.6.sql

Or

http://x.x.x.x/nconf/UPDATE.php


Remove install / update folder & php files.

cd /var/www/html/nconf
rm -rf INSTALL INSTALL.php UPDATE UPDATE.php

Add following lines in /var/www/html/nconf/config/nconf.php. this was not appended during upgrade. (this you can find in /var/www/html/nconf/config.orig/nconf.php)

define(‘OVERVIEW_QUANTITY_STANDARD’, “25″);
define(‘SELECT_VALUE_SEPARATOR’, “::”);

otherwise you’ll get following error
The “SELECT_VALUE_SEPARATOR” constant is not defined.
Check your configuration files.

Release Notes

There is a feature like host & service templates, which can be used to define different check time etc.
E.g for service & host templates add following in nagios.cfg
cfg_file=/usr/local/nagios/etc/objects/host_templates.cfg
cfg_file=/usr/local/nagios/etc/objects/service_templates.cfg
Above is needs to be done if you are copying all your nconf generated config files to default nagios location.


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.

Article by Dhaval Thakar

Hi, I am Linux Admin. You'll find my articles small & without much descriptions.
Read 218 articles by

Archives

Categories

Page optimized by WP Minify WordPress Plugin