Page 1 of 3

the map is blank. Error still.

Posted: Fri Apr 01, 2016 10:41 am
by United-Networking
Hi,

i have Nagios Core 4.1.1 on Debian Wheezy and the new Map worked until about a month ago.

Anyway, Symptoms look just like with zurrachillo on Thu Feb 24: Map is a framed, empty square with a little menu at top left, nothing else.
Firefox 45.0.1, Vivaldi TP4 (a Chrome mod) and IE 11.162 all show the same.

The only thing that comes to mind is that Firefox updated maybe once or twice in that timeframe, which doesn't explain the other browsers.

Now, zurrachillo wrote Thu Feb 25, 2016 10:15 am,
The problem is the link because in the new versions Map and Legacy appears, if I click on map appears to me empty but if I press legacy if it works, so I modified the "side.php" to make good link.
I believe he just switched to using the old style map, which i believe does not solve the original problem.

Looking at the source, it appears to draw SVGraphics via Javascript. Shouldn't be a problem, but in 3 different browsers here and on another machine, it is.

What gives?
--
regards,
-- Support Guy, United Networking

Re: the map is blank. Error still.

Posted: Fri Apr 01, 2016 1:44 pm
by hsmith
Did ANYTHING change at all about a month ago when this stopped working?

Re: the map is blank. Error still.

Posted: Mon Apr 04, 2016 4:13 am
by United-Networking
Hi,

yeah, as i said, my main browser, Firefox, updated once or twice in that timeframe.
Now the map doesn't work anymore:
* in Windows 8.1 or Windows 10,
* with Firefox since about v42,
* with Vivaldi TP4 (NO updates in that time frame)
* IE 10 (subject to Win. updates)
So, several platforms, several browsers, no joy, where it _did_ work before.

But - i just tried Iceweasel (a rebranded & reconf'd Firefox) v38 on Debian Testing, where the map worked!

So it's IMHO not OS-specific, but something more modern browsers do different or not any more, in the Javascript or SVG realm.
Frankly, i'm stumped.

Re: the map is blank. Error still.

Posted: Mon Apr 04, 2016 2:40 pm
by hsmith
What's the locale of your core machine?

Re: the map is blank. Error still.

Posted: Tue Apr 05, 2016 2:34 am
by United-Networking
Hi,

our Nagios Core machine has:

Code: Select all

$ locale
LANG=de_DE.UTF-8
LANGUAGE=
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=
The Windows machines i tested browsers on are all german, too.
The Debian machine where the map works has

Code: Select all

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

Re: the map is blank. Error still.

Posted: Tue Apr 05, 2016 4:08 pm
by hsmith
Would it be possible to change the locale of the Core machine to en_US to see if this is causing the problem? There were some issues with core being in a different locale that are going to be pushed out in the 4.1.2 update. Nagios Core 4.1.2 prerelease is on GitHub, if you want to test it for yourself.

Re: the map is blank. Error still.

Posted: Wed Apr 06, 2016 7:52 am
by United-Networking
Hi,

yes, and no. A /etc/default/locale with

Code: Select all

LANG="en_US.UTF-8"
now, and the map display remains the same as before.
In Debians Iceweasel it works, elsewhere not.

Re: the map is blank. Error still.

Posted: Wed Apr 06, 2016 9:02 am
by thegaby
Same Issue here.

Re: the map is blank. Error still.

Posted: Wed Apr 06, 2016 4:17 pm
by hsmith
Can you hit F12 to pull up the console(Firefox/Chrome), and see if you notice any errors in the network tab?

Re: the map is blank. Error still.

Posted: Mon Apr 11, 2016 5:15 am
by United-Networking
Hi,

Oh yeah, that probably hit pay dirt!
Got an error after "GET map-popup.html":

Code: Select all

mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create d3.min.js:3:9495
Error: JSON.parse: expected double-quoted property name at line 33 column 29 of the JSON data
oc@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:14:151
Yb@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:77:125
Yc/<@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:77:487
s@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:7:300
Yc@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:77:469
c@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:79:109
f/<@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:112:343
Pe/this.$get</l.prototype.$eval@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:126:189
Pe/this.$get</l.prototype.$digest@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:123:278
Pe/this.$get</l.prototype.$apply@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:126:469
l@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:81:420
O@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:86:51
wf/</w.onload@https://cloud.united-networking.eu/nagios/angularjs/angular-1.3.9/angular.min.js:87:78
 angular.min.js:103:50

undefined map-directive.js:1257:8
HTH