Hi,
I am running Nagios XI 2011R1.2 on VMplayer 3.1.4.
Linux distribution it is running on is CentOS release 5.4 (Final) Kernel 2.6.18-164.9.1.el5 on an i686.
I used to see hosts on Hypermap, but I don't see it any more.
I am not sure when this change was started.
Currently, all other maps (i.e. BBMap, Minemap, and Network Status Map) seem to display hosts information ok.
But, in Hypermap, I don't see anything except 'Hypermap' text on the upper left corner, an icon with "Add This To A Dashboard" tooltip, and "About This Map" text on the right side of the frame.
Besides those, I only see white space on the frame and not a host.
I looked at the /var/log/httpd/error_log, but I did not see anything abnormal.
I would appreciate it if anyone can answer how to resolve this issue.
Hypermap Does Not Display any Hosts
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Hypermap Does Not Display any Hosts
Which browser are you using? Does trying it in Firefox make a difference?
If your browser has an "error console", open it up, clear it, and then load the hypermap. See if you get any javascript errors and post them if you do.
If your browser has an "error console", open it up, clear it, and then load the hypermap. See if you get any javascript errors and post them if you do.
-
- Posts: 68
- Joined: Sat Mar 05, 2011 4:13 pm
Re: Hypermap Does Not Display any Hosts
Hi,
Thanks for the direction.
The problem happens with Internet Explorer (version 8).
I looked at the error console of IE 8, and it displays the following error in red color and a link showing the location of the code:
'id' is null or not an object jit.js, line 4020 character 5
When I clicked the "jit.js, line 4020 character 5", it displayed the following lines:
4018 addAdjacence: function (obj, obj2, data) {
4019 if(!this.hasNode(obj.id)) { this.addNode(obj); }
-->4020 if(!this.hasNode(obj2.id)) { this.addNode(obj2); }
4021 obj = this.nodes[obj.id]; obj2 = this.nodes[obj2.id];
.. if(!obj.adjacentTo(obj2)) {
.. var adjsObj = this.edges[obj.id] = this.edges[obj.id] || {};
.. var adjsObj2 = this.edges[obj2.id] = this.edges[obj2.id] || {};
.. adjsObj[obj2.id] = adjsObj2[obj.id] = new graph.Adjacence(obj, obj2, data, this.Edge, this.Label);
.. return adjsObj[obj2.id];
.. }
.. return this.edges[obj.id][obj2.id];
.. },
I tried it with Firefox and it works ok with Firefox.
Thanks for the direction.
The problem happens with Internet Explorer (version 8).
I looked at the error console of IE 8, and it displays the following error in red color and a link showing the location of the code:
'id' is null or not an object jit.js, line 4020 character 5
When I clicked the "jit.js, line 4020 character 5", it displayed the following lines:
4018 addAdjacence: function (obj, obj2, data) {
4019 if(!this.hasNode(obj.id)) { this.addNode(obj); }
-->4020 if(!this.hasNode(obj2.id)) { this.addNode(obj2); }
4021 obj = this.nodes[obj.id]; obj2 = this.nodes[obj2.id];
.. if(!obj.adjacentTo(obj2)) {
.. var adjsObj = this.edges[obj.id] = this.edges[obj.id] || {};
.. var adjsObj2 = this.edges[obj2.id] = this.edges[obj2.id] || {};
.. adjsObj[obj2.id] = adjsObj2[obj.id] = new graph.Adjacence(obj, obj2, data, this.Edge, this.Label);
.. return adjsObj[obj2.id];
.. }
.. return this.edges[obj.id][obj2.id];
.. },
I tried it with Firefox and it works ok with Firefox.
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Hypermap Does Not Display any Hosts
Yeah I'll have to double check, but I think that particular javascript library for the hypermap may not fully support IE. We generally recommend using Firefox anyway as the most trustworthy browser.
-
- Posts: 68
- Joined: Sat Mar 05, 2011 4:13 pm
Re: Hypermap Does Not Display any Hosts
Thanks. I will just use FireFox.
-
- Posts: 1128
- Joined: Wed Mar 03, 2010 12:38 pm
- Location: St. Paul, MN, USA
Re: Hypermap Does Not Display any Hosts
(Script poke)