NagVis not working after nagios upgrade

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ss6407
Posts: 13
Joined: Wed Apr 04, 2018 2:58 pm

NagVis not working after nagios upgrade

Post 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.
Last edited by lmiltchev on Tue Jul 10, 2018 3:23 pm, edited 1 time in total.
Reason: Profile shared among Nagios Support staff, and removed from the public forum.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NagVis not working after nagios upgrade

Post 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:

Code: Select all

./upgrade.sh
Restart nagios and apache:

Code: Select all

service nagios restart
service httpd restart
Be sure to check out our Knowledgebase for helpful articles and solutions!
ss6407
Posts: 13
Joined: Wed Apr 04, 2018 2:58 pm

Re: NagVis not working after nagios upgrade

Post by ss6407 »

Thanks lmiltchev for replying.

Do we need to upgrade NagVis when upgrading nagios.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: NagVis not working after nagios upgrade

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked