Nagvis Error after 5.5 update

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Nagvis Error after 5.5 update

Post by rbuckle »

I now receive this error with nagvis since i upgraded to XI 5.5
You do not have the required permissions to view the files attached to this post.
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagvis Error after 5.5 update

Post by tgriep »

It could be with all of the customizations in Nagvis, the XI upgrade script did not upgrade all of the Maps for Nagvis.
Lets manually upgrade Nagvis again and see if starts to function for you by following these steps.


First, if you have any Nagvis Maps created, back them up first. They are located in this folder.

Code: Select all

/usr/local/nagvis/etc/maps/
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-latest.tar.gz
cd /tmp/nagiosxi/subcomponents/xicomponents/components/
unzip nagvis.zip
cd /tmp/nagiosxi/subcomponents/xicomponents/components/nagvis
Then edit the upgrade.sh script to comment out the section that checks the version of Nagvis so change this from

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

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
Then check this file

Code: Select all

/usr/local/nagvis/etc/nagvis.ini.php
To verify that the logonmodule option is set to the following

Code: Select all

logonmodule="LogonSession"
If not, update it, save the file and restart apache by running

Code: Select all

service httpd restart
After this, see if you can login to the Nagvis GUI.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagvis Error after 5.5 update

Post by rbuckle »

After doing that we have no change, same error
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagvis Error after 5.5 update

Post by jomann »

Can you check the file:

Code: Select all

/usr/local/nagvis/etc/nagvis.ini.php
And look for "showgeomap", also please copy the output from this grep for us:

Code: Select all

cat /usr/local/nagvis/etc/nagvis.ini.php | grep showgeomap
It may need to be commented out with a ; due to it being deprecated.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagvis Error after 5.5 update

Post by rbuckle »

Code: Select all

[root@NagiosXI ~]# cat /usr/local/nagvis/etc/nagvis.ini.php | grep showgeomap
;showgeomap=0
showgeomap=0
For some reason i have 2 of those, let me delete the one without the ;
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
rbuckle
Posts: 146
Joined: Tue Aug 04, 2015 12:25 pm
Location: Idaho
Contact:

Re: Nagvis Error after 5.5 update

Post by rbuckle »

That seems to have fixed the issue.

Thank you

Close Ticket
----------------------------------
Running:
Installed Version: 5.8.3
OS: CentOS 7
Nagios XI
Enterprise License
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Nagvis Error after 5.5 update

Post by jomann »

Great!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked