Page 1 of 1

Nagvis 1.9.8 header menu disappear after upgrade NagiosXI...

Posted: Thu Jan 10, 2019 12:55 pm
by xpertech
We upgrade NagiosXI, the Nagvis also auto-upgrade to 1.9.8 and switch to a new style interface,
after change Nagvis headertemplate, it's header menu disappear, how to call it back?

it seems that some files had been changed but we don't know where? is it possible to replace files to original status or edit those files to default?!
/usr/local/nagvis/etc/nagvis.ini.php
/usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisIndexView.php
/usr/local/nagvis/share/frontend/nagvis-js/js/NagVisCompressed.js

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Thu Jan 10, 2019 1:56 pm
by lmiltchev
Our developers will be looking into the issue with the 'on-demand-filter'. Meanwhile, you can open the /usr/local/nagvis/etc/nagvis.ini.php file in a text editor, and change this:

Code: Select all

headertemplate="'on-demand-filter"
to this:

Code: Select all

headertemplate="default"
in order to get your menu back.

Update: I filed an internal bug report on the issue (task_id=13972). Thank you!

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Mon Jan 14, 2019 7:27 am
by xpertech
Although headermenu back to default, but some other item still something strange(e.g. check headermenu) ...

Since we found that Nagvis 1.9.8 the three files below had been changed after upgrade or back to default, could you offer the original three files so we can compare what had been changed and to edit it back to the default status.

1. /usr/local/nagvis/etc/nagvis.ini.php
2. /usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisIndexView.php
3. /usr/local/nagvis/share/frontend/nagvis-js/js/NagVisCompressed.js

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Mon Jan 14, 2019 10:07 am
by lmiltchev
Here's the files (from a clean install of Nagios XI 5.5.8 on CentOS 7):

1. /usr/local/nagvis/etc/nagvis.ini.php
nagvis.ini.php.zip
2. /usr/local/nagvis/share/frontend/nagvis-js/classes/NagVisIndexView.php
NagVisIndexView.zip
3. /usr/local/nagvis/share/frontend/nagvis-js/js/NagVisCompressed.js
NagVisCompressed.zip
Let us know if this helped. Thank you!

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Wed Jan 16, 2019 9:57 am
by xpertech
After we use the three files to overwrite the old files, it even worse that Nagvis map disappear?!

how to solve this?

and when will the bug be fixed?

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Wed Jan 16, 2019 10:49 am
by lmiltchev
According to our developers, this error should not happen in NagVis component ver. 2.0.2. Go to Admin > Manage Components, and click on "Check for Updates". Do you see a new version of the "NagVis Integration" component available? If you do, upgrade to it, and see if the issue is resolved. You still may need to change "headertemplate=" value to "default" in the /usr/local/nagvis/etc/nagvis.ini.php file (one more time).

If you are still having issues, please open a new support ticket via our support center here:
https://support.nagios.com/tickets/

We may need to schedule a remote session and bring in a developer in order to further troubleshoot this issue. Thank you!

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Wed Jan 16, 2019 2:08 pm
by lmiltchev
Update: a few more things that I forgot to mention:

1. Upgrading the NagVis component from the GUI won't be enough to "fully" upgrade it. This will work in Nagios XI 5.6. For now, you would also need to run the following as root user (after upgrading the component from the GUI):

Code: Select all

cd /usr/local/nagiosxi/html/includes/components/nagvis
./upgrade
2. You will be able to select the "on-demand-filter" for "individual" maps (Map > Map Options > Appearance > header_template = on-demand-filter > Save.

3. Selecting the "on-demand-filter" globally (Options > General Configuration > Overview > headertemplate = on-demand-filter > Save) won't work - it will break NagVis. The page may load if you pass "backend_id=nagiosxi" to the URL, but this is not a real solution, so I would recommend not changing this option from the "default".

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Fri Jan 18, 2019 11:16 am
by xpertech
We didn't find the place of "on-demand-filter" for "individual" maps (Map > Map Options > Appearance > header_template = on-demand-filter > Save ?!

When backup NagiosXI, will all the plug-in including NagVis also be backed up? if not, hot to backup?

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Posted: Fri Jan 18, 2019 11:31 am
by lmiltchev
Yes, NagVis is backed up. If you opened the "/usr/local/nagiosxi/scripts/backup_xi.sh" script in a text editor, you would see the following lines (around line 120):

Code: Select all

echo "Backing up Nagvis..."
tar czfp $mydir/nagvis.tar.gz /usr/local/nagvis