Nagvis 1.9.8 header menu disappear after upgrade NagiosXI...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Nagvis 1.9.8 header menu disappear after upgrade NagiosXI...

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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!
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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".
Be sure to check out our Knowledgebase for helpful articles and solutions!
xpertech
Posts: 399
Joined: Thu Sep 01, 2011 9:47 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagvis 1.9.8 header menu disappear after upgrade NagiosX

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