NagVis not working after nagios upgrade

This board serves as an open discussion and support collaboration point for Nagios XI. NOTE: Nagios XI customers should use the Customer Support forum to obtain expedited support.

NagVis not working after nagios upgrade

Postby ss6407 » Mon Jul 09, 2018 4:55 pm

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.
ss6407
 
Posts: 12
Joined: Wed Apr 04, 2018 2:58 pm

Re: NagVis not working after nagios upgrade

Postby lmiltchev » Tue Jul 10, 2018 3:36 pm

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
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 10259
Joined: Mon May 23, 2011 12:15 pm

Re: NagVis not working after nagios upgrade

Postby ss6407 » Fri Jul 13, 2018 10:58 am

Thanks lmiltchev for replying.

Do we need to upgrade NagVis when upgrading nagios.
ss6407
 
Posts: 12
Joined: Wed Apr 04, 2018 2:58 pm

Re: NagVis not working after nagios upgrade

Postby lmiltchev » Fri Jul 13, 2018 11:07 am

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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 10259
Joined: Mon May 23, 2011 12:15 pm


Return to Nagios XI

Who is online

Users browsing this forum: No registered users and 14 guests