Page 1 of 1

Nagvis Error after 5.5 update

Posted: Thu Jul 12, 2018 10:21 am
by rbuckle
I now receive this error with nagvis since i upgraded to XI 5.5

Re: Nagvis Error after 5.5 update

Posted: Thu Jul 12, 2018 1:23 pm
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.

Re: Nagvis Error after 5.5 update

Posted: Thu Jul 12, 2018 3:14 pm
by rbuckle
After doing that we have no change, same error

Re: Nagvis Error after 5.5 update

Posted: Fri Jul 13, 2018 10:16 am
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.

Re: Nagvis Error after 5.5 update

Posted: Fri Jul 13, 2018 11:03 am
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 ;

Re: Nagvis Error after 5.5 update

Posted: Fri Jul 13, 2018 11:06 am
by rbuckle
That seems to have fixed the issue.

Thank you

Close Ticket

Re: Nagvis Error after 5.5 update

Posted: Fri Jul 13, 2018 11:08 am
by jomann
Great!