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.

Related posts:

  1. NConf Installation & Configuration
  2. Nagios Installation
  3. 10 Nagios Web Frontends
  4. Upgrade Fedora 11 to 12 -using shell
  5. Need Monitoring & Alerting System?

Subscribe to LinuxReaders

rss twitter mail google buzz facbook stumble digg

Leave a Reply