Page 1 of 1
NagVis not working after nagios upgrade
Posted: Mon Jul 09, 2018 4:55 pm
by ss6407
Hi Team,
I have upgraded nagios to latest version i.e 5.5
After that nagvis stopped working.
Now when i click on NagVis on home page under maps it throws error "The section is not supported in main configuration. Please take a look at the documentation."
Attached system profile for reference.
Please advise.
Re: NagVis not working after nagios upgrade
Posted: Tue Jul 10, 2018 3:36 pm
by lmiltchev
I don't believe that you were able to upgrade NagVis properly. The version shown in the profile is 1.5.10
define('CONST_VERSION', '1.5.10');
but it should be 1.9.7...
define('CONST_VERSION', '1.9.7');
Run the following as root to download XI 5.5 so we know that you have a fresh copy.
Code: Select all
cd /tmp
rm -rf nagiosxi xi*.tar.gz
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.0.tar.gz
tar xzf xi-5.5.0.tar.gz
cd /tmp/nagiosxi/subcomponents/xicomponents/components/
unzip nagvis.zip
cd nagvis
Then edit the upgrade.sh script to comment out the section that checks the version of Nagvis so change this from this:
Code: Select all
if ! grep -q "NagVis 1.5" /usr/local/nagvis/README; then
echo "You must have NagVis version 1.5.x to automatically upgrade."
echo "Note: In this situation we recommend installing the latest version of XI"
echo "on a clean system for best results."
exit 0
fi
to this:
Code: Select all
#if ! grep -q "NagVis 1.5" /usr/local/nagvis/README; then
# echo "You must have NagVis version 1.5.x to automatically upgrade."
# echo "Note: In this situation we recommend installing the latest version of XI"
# echo "on a clean system for best results."
# exit 0
#fi
Save the file and run the upgrade:
Restart nagios and apache:
Code: Select all
service nagios restart
service httpd restart
Re: NagVis not working after nagios upgrade
Posted: Fri Jul 13, 2018 10:58 am
by ss6407
Thanks lmiltchev for replying.
Do we need to upgrade NagVis when upgrading nagios.
Re: NagVis not working after nagios upgrade
Posted: Fri Jul 13, 2018 11:07 am
by lmiltchev
You don't need to upgrade NagVis manually. The Nagios XI upgrade should take care of upgrading NagVis. I would recommend upgrading to Nagios XI 5.5.1, which was released yesterday. Make all necessary backups, snapshots, etc. then run:
Code: Select all
cd /tmp
rm -rf xi* nagiosxi
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.5.1.tar.gz
tar xvf xi-5.5.1.tar.gz
cd nagiosxi
./upgrade
Let us know if this helped.