Page 1 of 1
Javascript error and PHP error - Open maps in Nagvis
Posted: Wed Apr 19, 2017 2:00 am
by redesgtt
Hi,
We have problems with Javascript trying to open one map. I have tried to delete it and create it again, but it doesn't work.
Shows this issue when try from Firefox:
And with Chrome:
The other issue is with PHP, when we add "host Icon" and we try to open map it shows:
(the same for Firefox and Chrome)

If I edit the map and I delete the "host Icon", then we can see correctly the map without issues.
Like I have done with the map with the Javascript error, in this I have tried to delete the map and create it again but it doesn't work.
These two issues occur on different maps randomly
####NAGVIS####
Version Information:
Nagvis Version: 1.5.9
PHP Version: 5.4.16
##############
Nagios XI 5.4.3
Please, any idea for resolve the issues?
Thanks.
Regards
Re: Javascript error and PHP error - Open maps in Nagvis
Posted: Wed Apr 19, 2017 11:10 am
by lmiltchev
Can you describe in details all of the steps you took to add a host to the map in NagVis?
Run the following command and show the output:
Do you see any special/weird characters in the check's output?
You haven't tried upgrading the NagVis version, then reverting back to 1.5.9, have you?
Re: Javascript error and PHP error - Open maps in Nagvis
Posted: Mon Apr 24, 2017 7:51 am
by redesgtt
lmiltchev wrote:Can you describe in details all of the steps you took to add a host to the map in NagVis?
Run the following command and show the output:
Do you see any special/weird characters in the check's output?
You haven't tried upgrading the NagVis version, then reverting back to 1.5.9, have you?
Hello, I am sorry for reply you later.
Code: Select all
locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
The steps I take to add icons in any map is the same for maps are running and for maps are not running. I think that is not the problem. There is not any special character. They are maps that worked, and suddenly they have stopped working, showing the errors I posted before.
The nagvis we installed it came with de source code in NagiosXI we downloaded. The version package about Nagios XI we downloaded was "xi-5.5.2.tar.gz". Within it was "nagiosxi-->subcomponents-->xicomponents-->components-->nagvis.zip". That was what we installed.
An strange thing is seeing in the IU Components we have the "1.1.3" version Nagvis, but doesn't show any Available for that version.:

I did "check for updates.."
What would I do?
Should I upgrade the version?
How should I do steps for upgrade Nagvis?
I see in:
https://www.nagvis.org/downloads
Is the Stable Nagvis 1.8.5.
should I download it and install across the "manage components"?
Re: Javascript error and PHP error - Open maps in Nagvis
Posted: Mon Apr 24, 2017 8:04 am
by dwhitfield
Can you pm me your xi profile? If you do, please make sure you update this thread that you did so it will show back up on our support dashboard.
Re: Javascript error and PHP error - Open maps in Nagvis
Posted: Tue Apr 25, 2017 9:12 am
by tmcdonald
I see you have opened an email ticket for this issue, so I will be closing this thread and we will continue there.