Nagios 4.1.0rc1 Status Map does not display in IE 11

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.
mr.dub
Posts: 9
Joined: Tue Jun 09, 2015 3:27 pm

Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by mr.dub »

Hello all! This is my first post so I hope I've placed the topic in the correct forum.

My employer is implementing Nagios on an Ubuntu 14.04.2 LTS server (Trusty Tahr) and we are experiencing an issue with the status map. We have successfully installed the latest and greatest (Nagios 4.1.0rc1), but the status map will not load in Internet Explorer 11 on my Windows 7 Professional desktop. We had also experience an issue with the statusmap_icons not displaying in other browsers (Firefox 38.0.5, in particular), but this was fixed by downloading the latest development version (see https://github.com/NagiosEnterprises/na ... /issues/25 for reference). I have included a screenshot of the Nagios Status Map screen to show exactly what loads and what doesn't.

I have verified that the plugins are installed, permissions are correct, JS files are present, etc., and just don't know where to go from here. Has anyone run into this issue? Or are there any suggestions for troubleshooting this problem further? Thank you!
Attachments
Nagios 4.1.0rc1 Status Map screen in Fx 38.0.5
Nagios 4.1.0rc1 Status Map screen in Fx 38.0.5
Nagios 4.1.0rc1 Status Map screen in IE 11
Nagios 4.1.0rc1 Status Map screen in IE 11
mr.dub
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by tgriep »

Try clearing out all of your browsers settings, cache and disabling any add-ons. After doing that, close your browser and open it and try again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mr.dub
Posts: 9
Joined: Tue Jun 09, 2015 3:27 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by mr.dub »

tgriep, I have done as you suggested (I clicked the "Reset" button in IE's Advanced settings, cleared temporary Internet files, history, passwords, etc., and disabled all add-ons), but the result is the same. I had not tried this before (my bad!), but I have attempted to add the URL to Trusted Sites and lower the security on that zone to Low. I have also tried adding the site to my Compatibility View Settings, again to no avail.

I didn't mention previously that the server is running Apache 2.4.7--don't know if that's important. Please let me know if more software version/information is important. Thank you!
mr.dub
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by lmiltchev »

Can you click on the icon? See below:
example01.PNG
Any errors in the apache error log?
Be sure to check out our Knowledgebase for helpful articles and solutions!
mr.dub
Posts: 9
Joined: Tue Jun 09, 2015 3:27 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by mr.dub »

No, clicking the icon does nothing.

Apache's LogLevel is set to "warn", and the only activity in the log is restarting the service:

Code: Select all

$ sudo cat /var/log/apache2/error.log.1 /var/log/apache2/error.log
[Mon Jun 01 06:49:30.434808 2015] [mpm_prefork:notice] [pid 1223] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 configured -- resuming normal operations
[Mon Jun 01 06:49:30.434830 2015] [core:notice] [pid 1223] AH00094: Command line: '/usr/sbin/apache2'
[Sun Jun 07 06:35:53.347599 2015] [mpm_prefork:notice] [pid 1223] AH00171: Graceful restart requested, doing restart
[Sun Jun 07 06:35:53.505238 2015] [mpm_prefork:notice] [pid 1223] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.9 configured -- resuming normal operations
[Sun Jun 07 06:35:53.505264 2015] [core:notice] [pid 1223] AH00094: Command line: '/usr/sbin/apache2'
The log is incredibly short because no one other than myself currently has access to the system.
mr.dub
mr.dub
Posts: 9
Joined: Tue Jun 09, 2015 3:27 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by mr.dub »

I just changed the Apache LogLevel to "debug" and accessed the Status Map screen again (and clicked the menu button):

Code: Select all

[Tue Jun 09 16:14:04.669980 2015] [authz_core:debug] [pid 22395] mod_authz_core.c(802): [client 172.22.2.154:16817] AH01626: authorization result of Require valid-user : denied (no authenticated user yet), referer: http://cnty-cas-mnt1/nagios/side.php
[Tue Jun 09 16:14:04.670131 2015] [authz_core:debug] [pid 22395] mod_authz_core.c(802): [client 172.22.2.154:16817] AH01626: authorization result of <RequireAny>: denied (no authenticated user yet), referer: http://cnty-cas-mnt1/nagios/side.php
[Tue Jun 09 16:14:04.670929 2015] [authz_core:debug] [pid 22395] mod_authz_core.c(802): [client 172.22.2.154:16817] AH01626: authorization result of Require valid-user : granted, referer: http://cnty-cas-mnt1/nagios/side.php
[Tue Jun 09 16:14:04.671004 2015] [authz_core:debug] [pid 22395] mod_authz_core.c(802): [client 172.22.2.154:16817] AH01626: authorization result of <RequireAny>: granted, referer: http://cnty-cas-mnt1/nagios/side.php
[Tue Jun 09 16:14:04.705714 2015] [deflate:debug] [pid 22395] mod_deflate.c(849): [client 172.22.2.154:16817] AH01384: Zlib: Compressed 112113 to 6712 : URL /nagios/cgi-bin/status.cgi, referer: http://cnty-cas-mnt1/nagios/side.php
[Tue Jun 09 16:14:09.711108 2015] [reqtimeout:info] [pid 22395] [client 172.22.2.154:16817] AH01382: Request header read timeout
Looks normal to me.
mr.dub
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by jolson »

If you open up the Internet Explorer developer console (F12), is there any suspicious output in either the 'Debug' or 'Network' tabs?
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mr.dub
Posts: 9
Joined: Tue Jun 09, 2015 3:27 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by mr.dub »

jolson, I think you're on the right track! (Sorry, I'm not a frequent user of IE and didn't know of the Developer Tools.)

There appear to be 3 main JavaScript errors on the page:

1) 'd3.min.js' line 3: var `la` is assigned the value of `oa.Element.prototype`, but the `prototype` property is undefined ("Error: Unable to get property 'prototype' of undefined or null reference)
2) 'angular.js' line 319: checks whether the object `obj` is an array, but `obj` is not an instantiated object (Error: "Object expected")
3) subsequent JS files: calls to the `angular.module` property fail (Error: "Object doesn't support property or method 'module'")

I assume that #3 is a result of #2 failing, but am currently unsure why the first two JS errors occur. I will be investigating this (now that I know of the Developer Tools), but would still appreciate the expertise of you fine folks! Thank you very much!
Attachments
Various JS errors shown in IE Developer Tools
Various JS errors shown in IE Developer Tools
mr.dub
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by jolson »

This works fine if Nagios is installed on a CentOS server. The issue appears to be between the latest Nagios version installed on Ubuntu and Internet Explorer - though that assumption could be off base.
I will be investigating this (now that I know of the Developer Tools)
Let us know the status of your investigation. Thanks!
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mr.dub
Posts: 9
Joined: Tue Jun 09, 2015 3:27 pm

Re: Nagios 4.1.0rc1 Status Map does not display in IE 11

Post by mr.dub »

Okay, so this is not any kind of problem with the the JavaScript. Apparently, IE puts all websites from the intranet zone into compatibility mode by default (WTF?). The document mode in compatibility view is IE7, at which point the `Element.prototype` had not yet been implemented. To fix this, I had to go into IE's Compatibility View settings and uncheck the box to "Display intranet sites in Compatibility View".

Okay, so now the status map displays... but it has no icons. As I stated in my first post, the icons didn't display in any browser until I downloaded the latest development release; however, I didn't mention that the statusmap_icon directive still didn't work. Instead, the status map seems to use the icon_image directive. I don't know if this is intentional behavior or not. I only had the icon_image directives in the config files, but since there were no icons displaying in IE (and only IE... eugh), I also added the statusmap_icon directive. I am still unable to see any icons on the status map. Furthermore, I don't see any of the red/green dots on the map which indicate the host's online/offline status. I again reset my browser, cleared temporary Internet files, cookies, etc., and unchecked the Compatibility View for intranet sites... but still no luck. IE's Developer Tools has no helpful output either.

Here's the kicker: the images are loaded successfully and display for a brief second as the map expands from a single point into the full web (using the Circular Balloon display). So I tried to change the map display, and none of them display icons or dots... except for the Circular Markup! ... I'm confused. Any suggestions? Thank you again for all of your helpful comments!
Attachments
Status Map screen in Circular Markup view... icons!!!
Status Map screen in Circular Markup view... icons!!!
The Status Map screen, after it loads completely.  You can see that the icons have disappeared, and no green/red dots appear to show host status.
The Status Map screen, after it loads completely. You can see that the icons have disappeared, and no green/red dots appear to show host status.
The Status Map screen as it begins to load... you can see the icons for our hosts are displayed.
The Status Map screen as it begins to load... you can see the icons for our hosts are displayed.
mr.dub
Locked