the map is blank. Error still.

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
United-Networking
Posts: 12
Joined: Tue Jan 26, 2016 8:20 am

the map is blank. Error still.

Post 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
--
Regards,
-- Support Guy, United Networking
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: the map is blank. Error still.

Post by hsmith »

Did ANYTHING change at all about a month ago when this stopped working?
Former Nagios Employee.
me.
United-Networking
Posts: 12
Joined: Tue Jan 26, 2016 8:20 am

Re: the map is blank. Error still.

Post 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.
--
Regards,
-- Support Guy, United Networking
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: the map is blank. Error still.

Post by hsmith »

What's the locale of your core machine?
Former Nagios Employee.
me.
United-Networking
Posts: 12
Joined: Tue Jan 26, 2016 8:20 am

Re: the map is blank. Error still.

Post 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=
--
Regards,
-- Support Guy, United Networking
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: the map is blank. Error still.

Post 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.
Former Nagios Employee.
me.
United-Networking
Posts: 12
Joined: Tue Jan 26, 2016 8:20 am

Re: the map is blank. Error still.

Post 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.
--
Regards,
-- Support Guy, United Networking
thegaby
Posts: 1
Joined: Fri Apr 29, 2011 7:33 pm

Re: the map is blank. Error still.

Post by thegaby »

Same Issue here.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: the map is blank. Error still.

Post by hsmith »

Can you hit F12 to pull up the console(Firefox/Chrome), and see if you notice any errors in the network tab?
Former Nagios Employee.
me.
United-Networking
Posts: 12
Joined: Tue Jan 26, 2016 8:20 am

Re: the map is blank. Error still.

Post 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
--
Regards,
-- Support Guy, United Networking
Locked