Network Status Page not displaying anything

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Network Status Page not displaying anything

Post by manymiles »

In XI, I nothing displays on the network status page, but, I AM able to see it in core.

The hypermap works fine.

I do see the globe icon and the layers icon in the upper left corner of the screen, but, no actual map.

There is no output in /var/log/httpd/error_log when viewing the page.

Here's my profile

Code: Select all

Nagios XI Installation Profile

Download Profile
System:

Nagios XI Version : 2012R1.6
ip-10-165-11-113 2.6.32-220.7.1.el6.x86_64 x86_64
CentOS release 6.2 (Final)
Gnome is not installed
Apache Information

PHP Version: 5.3.3
Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22
Server Name: mag.edispatches.com
Server Address: 10.165.11.113
Server Port: 80
Date/Time

PHP Timezone: US/Eastern 
PHP Time: Wed, 27 Mar 2013 21:46:00 -0400
System Time: Wed, 27 Mar 2013 21:46:00 -0400
Nagios XI Data

nagios (pid 9283) is running...
NPCD running (pid 1110).
ndo2db (pid 1207) is running...
CPU Load 15: 0.91 
Total Hosts: 21 
Total Services: 116 
Function 'get_base_uri' returns: http://mag.edispatches.com/nagiosxi/
Function 'get_base_url' returns: http://mag.edispatches.com/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://mag.edispatches.com/nagiosxi/includes/components/profile/profile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost

Running:
/bin/ping -c 3 localhost 2>&1 
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.043 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.025 ms

--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.025/0.033/0.043/0.009 ms
Test wget To locahost

WGET From URL: http://localhost/nagiosql/index.php 
Running:
/usr/bin/wget http://localhost/nagiosql/index.php 
--2013-03-27 21:46:03-- http://localhost/nagiosql/index.php
Resolving localhost... 127.0.0.1
Connecting to localhost|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'

0K ..... 100% 223M=0s

2013-03-27 21:46:03 (223 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
Continuing thanks for your assistance.

Miles
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Network Status Page not displaying anything

Post by slansing »

Are you able to see dashlets correctly within the interface? Can you post the output from the following?:

Code: Select all

ll -la /usr/local/nagiosxi/html/includes/components/xicore
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Network Status Page not displaying anything

Post by abrist »

Are you using IE? if so, you may need to turn on "compatibility view".
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Re: Network Status Page not displaying anything

Post by manymiles »

Yes, I can see dashlets.

No, I am not using IE. I am using Chrome from an Ubuntu workstation.

Correction, I am using Chromium.

Output of ll -la /usr/local/nagiosxi/html/includes/components/xicore

Code: Select all

drwxr-xr-x.  3 nagios nagios  4096 Mar 15 07:41 .
drwxr-xr-x. 51 nagios nagios  4096 Mar 15 07:44 ..
-rwxr-xr-x.  1 nagios nagios  3068 Mar 15 07:41 ajaxhelpers-comments.inc.php
-rwxr-xr-x.  1 nagios nagios 37246 Mar 15 07:41 ajaxhelpers-hoststatus.inc.php
-rwxr-xr-x.  1 nagios nagios  1079 Mar 15 07:41 ajaxhelpers.inc.php
-rwxr-xr-x.  1 nagios nagios 19854 Mar 15 07:41 ajaxhelpers-misc.inc.php
-rwxr-xr-x.  1 nagios nagios 22119 Mar 15 07:41 ajaxhelpers-monitoringengine.inc.php
-rwxr-xr-x.  1 nagios nagios  1553 Mar 15 07:41 ajaxhelpers-perfdata.inc.php
-rwxr-xr-x.  1 nagios nagios 44740 Mar 15 07:41 ajaxhelpers-servicestatus.inc.php
-rwxr-xr-x.  1 nagios nagios 59852 Mar 15 07:41 ajaxhelpers-status.inc.php
-rwxr-xr-x.  1 nagios nagios 14486 Mar 15 07:41 ajaxhelpers-sysstat.inc.php
-rwxr-xr-x.  1 nagios nagios 28965 Mar 15 07:41 ajaxhelpers-tac.inc.php
-rwxr-xr-x.  1 nagios nagios  7298 Mar 15 07:41 ajaxhelpers-tasks.inc.php
-rwxr-xr-x.  1 nagios nagios  2168 Mar 15 07:41 dashlets-comments.inc.php
-rwxr-xr-x.  1 nagios nagios 17538 Mar 15 07:41 dashlets.inc.php
-rwxr-xr-x.  1 nagios nagios  3214 Mar 15 07:41 dashlets-misc.inc.php
-rwxr-xr-x.  1 nagios nagios  7892 Mar 15 07:41 dashlets-monitoringengine.inc.php
-rwxr-xr-x.  1 nagios nagios  6356 Mar 15 07:41 dashlets-perfdata.inc.php
-rwxr-xr-x.  1 nagios nagios 16526 Mar 15 07:41 dashlets-status.inc.php
-rwxr-xr-x.  1 nagios nagios  4753 Mar 15 07:41 dashlets-sysstat.inc.php
-rwxr-xr-x.  1 nagios nagios  9157 Mar 15 07:41 dashlets-tac.inc.php
-rwxr-xr-x.  1 nagios nagios  3173 Mar 15 07:41 dashlets-tasks.inc.php
-rwxr-xr-x.  1 nagios nagios  1267 Mar 15 07:41 downtime.php
drwxr-xr-x.  5 nagios nagios  4096 Mar 15 07:41 images
-rwxr-xr-x.  1 nagios nagios 36612 Mar 15 07:41 recurringdowntime.php
-rwxr-xr-x.  1 nagios nagios 35884 Mar 15 07:41 status-object-detail.inc.php
-rwxr-xr-x.  1 nagios nagios 20110 Mar 15 07:41 status.php
-rwxr-xr-x.  1 nagios nagios 27895 Mar 15 07:41 status-utils.inc.php
-rwxr-xr-x.  1 nagios nagios  4555 Mar 15 07:41 tac.php
-rwxr-xr-x.  1 nagios nagios  6388 Mar 15 07:41 xicore.inc.php
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Network Status Page not displaying anything

Post by abrist »

Do you have another workstation/browser to test from? What do you see when you "view frame source" in your browser? You should see a bunch of entries for your hosts that look like:

Code: Select all

<AREA shape='rect' coords='142,32,182,97' href='http://192.168.74.130/nagiosxi/includes/components/nagioscore/ui/statusmap.php?host=1.1.1.1&layout=6&max_width=0&max_height=0&proximity_width=1000&proximity_height=800&noheader&layermode=exclude' . . . . . . . .[snip]
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Re: Network Status Page not displaying anything

Post by manymiles »

The problem still occurs on a Windows Server using Chrome and on a Windows Server using IE and on my Ubuntu workstation within Firefox.

I do not see any entries for any of my hosts.

Code: Select all

<!DOCTYPE html>
	<!-- Produced by Nagios XI.  Copyyright (c) 2008-2011 Nagios Enterprises, LLC (www.nagios.com). All Rights Reserved. -->
	<!-- Powered by the Nagios Synthesis Framework -->

<html>
	<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
	<!-- Produced by Nagios XI.  Copyyright (c) 2008-2011 Nagios Enterprises, LLC (www.nagios.com). All Rights Reserved. -->
	<!-- Powered by the Nagios Synthesis Framework -->
	<head>	

	<title>Nagios XI - Network Status Map</title>
	<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

	
		<link rel="shortcut icon" href="http://mag.edispatches.com/nagiosxi/images/favicon.ico" type="image/ico" />
	<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/css/jquery.autocomplete.css' />
	
	<script type='text/javascript'>
	//javascript:alert(document.documentMode);
	
		var base_url="http://mag.edispatches.com/nagiosxi/";
		var backend_url="http%3A%2F%2Fmag.edispatches.com%2Fnagiosxi%2Fincludes%2Fcomponents%2Fxicore%2Fstatus.php";
		var ajax_helper_url="http://mag.edispatches.com/nagiosxi/ajaxhelper.php";
		var ajax_proxy_url="http://mag.edispatches.com/nagiosxi/ajaxproxy.php";
		var suggest_url="http://mag.edispatches.com/nagiosxi/suggest.php";
		var request_uri="%2Fnagiosxi%2Fincludes%2Fcomponents%2Fxicore%2Fstatus.php%3Fshow%3Dmap%26layout%3D6";
		var permalink_base="http://mag.edispatches.com/nagiosxi/includes/components/xicore/status.php?&show=map&layout=6";
		var demo_mode=0;
		var nsp_str="36e32f15ecfdfba7be7cfca92e686bc5";
	</script>

<!-- FIREBUG LITE! -->	
<!--
<script type='text/javascript' 
        src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
//-->	


	<!-- main jquery libraries --> 
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery-1.8.2.min.js?306'></script>
	<link type="text/css" href="http://mag.edispatches.com/nagiosxi/includes/js/jquery/css/smoothness/jquery-ui-1.9.0.custom.min.css?306" rel="stylesheet" />	
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.colorBlend.js'></script>	
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.timers-1.1.3.js'></script>	
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery-ui-1.9.0.custom.min.js?306'></script>

	<!-- DEPRECATED JQUERY PLUGINS
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.autocomplete.js'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.checkboxes.js'></script> 
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.bgiframe.pack.js'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.tooltip.pack.js'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.sparkline.js'></script>	
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.inview.min.js'></script>	
	-->
		
	<!-- colorpicker -->
	<link rel="stylesheet" href="http://mag.edispatches.com/nagiosxi/includes/js/jquery/colorpicker/css/colorpicker.css" type="text/css" />
	<script type="text/javascript" src="http://mag.edispatches.com/nagiosxi/includes/js/jquery/colorpicker/js/colorpicker.js"></script>
	
	<!-- clipboard plugin -->
	<script type="text/javascript" src="http://mag.edispatches.com/nagiosxi/includes/js/jquery/jquery.zclip.min.js"></script>

	<!-- XI JS Scripts -->
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/core.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/commands.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/views.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/dashboards.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/dashlets.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/tables.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/users.js?306'></script>
	<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/perfdata.js?306'></script>
    <script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/js/wizards.js?306'></script>
	
	<!-- XI CSS --> 
	<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/css/nagiosxi.css?306' />
	
	
<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/dashlets/internethealthreport/internethealthreport.css' />
<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/dashlets/internettrafficreport/internettrafficreport.css' />
<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/dashlets/rss_dashlet/rss_dashlet.css' />
<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/dashlets/sansrisingports/sansrisingports.css' />
<link rel='stylesheet' type='text/css' href='http://mag.edispatches.com/nagiosxi/includes/dashlets/worldtimeserver/worldtimeserver.css' />
		<script type='text/javascript' src='http://mag.edispatches.com/nagiosxi/includes/components/graphexplorer/graphexplorerinclude.js'></script><script type="text/javascript" src="http://mag.edispatches.com/nagiosxi//includes/components/highcharts/js/highcharts.js"></script>		
		<script type="text/javascript" src="http://mag.edispatches.com/nagiosxi//includes/components/highcharts/js/themes/gray.js"></script>			
		<script type="text/javascript" src="http://mag.edispatches.com/nagiosxi//includes/components/highcharts/js/modules/exporting.js"></script></head>


<body  class=' child' >

		
	<div  class="childpage"><!-- page-->

		<div id ="childheader" class="childhead" >

<!--- CHILD HEADER START -->

<div id="child_popup_layer">
	<div id="child_popup_content">
	<div id="child_popup_close">
	<a id="close_child_popup_link" href="#"><img src="http://mag.edispatches.com/nagiosxi/images/b_close.png" border="0" alt="Close" title="Close"> Close</a>
	</div>
	<div id="child_popup_container">
	</div>
	</div>
</div>

<!--- CHILD HEADER END -->		</div><!--header -->


	<div id="childcontentthrobber"><img src='http://mag.edispatches.com/nagiosxi/images/throbber1.gif' /></div>
	<h1>Network Status Map</h1>
	
	<div class='statusdetaillinks'><div class='statusdetaillink'><a href='http://mag.edispatches.com/nagiosxi/includes/components/xicore/status.php?show=map&layout=6'><img src='http://mag.edispatches.com/nagiosxi/images/statusmapballoon.png' alt='View Balloon Map' title='View Balloon Map'></a></div><div class='statusdetaillink'><a href='http://mag.edispatches.com/nagiosxi/includes/components/xicore/status.php?show=map&layout=3'><img src='http://mag.edispatches.com/nagiosxi/images/statusmaptree.png' alt='View Tree Map' title='View Tree Map'></a></div></div>	
	<div class="statusmap">
	
	<div class="nagioscore_cgi_output" id="nagioscore_cgi_output_er99dt">
	
	</div><!--nagioscore_cgi_output-->
	<script type="text/javascript">
	$(document).ready(function(){
		$("#nagioscore_cgi_output_er99dt").everyTime(30*1000, "timer-nagioscore_cgi_output_er99dt", function(i) {
		var optsarr = {
			"func": "get_nagioscore_cgi_html",
			"args": {"url" : "statusmap.php?noheader&show=map&layout=6"}
			}
		var opts=array2json(optsarr);
		get_ajax_data_innerHTML("getxicoreajax",opts,true,this);
		});
		
	});
	</script>
		</div>


	
	
	<!--	<div id="footer">  //there should only be one div with id of footer on any given page, moved to footer.inc.php  --> 
		<!-- CHILD FOOTER START -->


<!-- CHILD FOOTER END -->
	<!-- 	</div>  -->
	
	</div><!--page-->

<noframes>
<!-- This page requires a web browser which supports frames. --> 
<h2>Nagios XI</h2>
<p align="center">
<a href="http://www.nagios.com/">www.nagios.com</a><br>
Copyright (c) 2009-2012 Nagios Enterprises, LLC<br>
</p>
<p>
<i>Note: These pages require a browser which supports frames</i>
</p>
</noframes>

		
<script type='text/javascript'>

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-2887186-1']);
  _gaq.push(['_setAllowLinker', true]);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();	

</script>	

</body>

</html>
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Network Status Page not displaying anything

Post by slansing »

When you tail the access log and click the link to enter the Network Status page, does it populate with access call entries?:

Code: Select all

tail -f /var/log/httpd/access_log
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Network Status Page not displaying anything

Post by lmiltchev »

Did you try clearing the browser's cache? I just tried Chromium on Ubuntu and didn't have any issues viewing the Network Status Map. Can you send us a screenshot of what you actually see on the page?
Be sure to check out our Knowledgebase for helpful articles and solutions!
manymiles
Posts: 43
Joined: Sat Mar 16, 2013 8:24 am

Re: Network Status Page not displaying anything

Post by manymiles »

I don't think the browser's cache is not a factor. Multiple browsers across multiple OSs produce same situation.

While tailing access_log, I stumbled across another symptom.

The nagios is located remotely at a public IP address. It has a VPN connection into my LAN. My workstation is on 192.168.1.0/24 and nagios is on 192.168.2.0/24. If from 192.168.1.2 (my workstation) I surf to http://192.168.2.11/nagiosxi, login and then navigate, the maps shows fine. If I surf to nagios via any other IP (including its Public, NATed IP) or name, the page does not display.

Here is the output of the tail in the failure scenario:

Code: Select all

127.0.0.1 - - [28/Mar/2013:08:55:55 -0400] "POST /nagiosxi/backend/ HTTP/1.1" 200 - "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.1.2 - - [28/Mar/2013:08:55:55 -0400] "GET /nagiosxi/includes/components/xicore/status.php?show=map&layout=6 HTTP/1.1" 200 9046 "http://nagios.pdomain.local/nagiosxi/index.php?" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22"
Here is the output from the operational scenario:

Code: Select all

127.0.0.1 - - [28/Mar/2013:08:56:24 -0400] "POST /nagiosxi/backend/ HTTP/1.1" 200 807 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.2.11 - - [28/Mar/2013:08:56:25 -0400] "GET /nagiosxi/includes/components/nagioscore/ui/statusmap.php?noheader&show=map&layout=6&uid=18&ticket=cvr6lh84 HTTP/1.1" 200 54365 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
127.0.0.1 - - [28/Mar/2013:08:56:25 -0400] "POST /nagiosxi/backend/ HTTP/1.1" 200 54365 "-" "BinGet/1.00.A (http://www.bin-co.com/php/scripts/load/)"
192.168.1.2 - - [28/Mar/2013:08:56:24 -0400] "GET /nagiosxi/includes/components/xicore/status.php?show=map&layout=6 HTTP/1.1" 200 62894 "http://192.168.2.11/nagiosxi/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22"
192.168.1.2 - - [28/Mar/2013:08:56:25 -0400] "GET /nagiosxi/includes/components/nagioscore/ui/statusmap.php?host=all&createimage&time=1364475385&canvas_x=0&canvas_y=0&canvas_width=1067&canvas_height=1107&max_width=0&max_height=0&layout=6&layermode=exclude HTTP/1.1" 200 35965 "http://192.168.2.11/nagiosxi/includes/components/xicore/status.php?show=map&layout=6" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22"
192.168.1.2 - - [28/Mar/2013:08:56:26 -0400] "GET /nagiosxi/includes/components/nagioscore/ui/images/logos/centos.png HTTP/1.1" 200 2011 "http://192.168.2.11/nagiosxi/includes/components/xicore/status.php?show=map&layout=6" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22"
Attached is the screenshot
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Network Status Page not displaying anything

Post by abrist »

It could be a route issue. I f you try to access the public facing ip from a machine that is not on the vpn, do you experience the same issues?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked