Page 1 of 1

Blanc page in new map

Posted: Fri Dec 04, 2015 2:48 am
by jose_a_guardia
Hi!

I've Nagios® Core™ 4.1.1 installed and configured, and all works fine, except de new map (legacy map works)

I get only this in an arrow in the left top corner:

Code: Select all

Network Map for All Hosts
Last Updated: none
Nagios® Core™ 4.1.1 - www.nagios.org
Updated every 10 seconds
Logged in as nagiosadmin
View Status Detail For This Host
View Status Detail For All Hosts
View Status Overview For All Hosts 
I think that maybe something in my Nagios configuration, because I've entered in some device with two different browsers, however I login in the Nagios Demo Page (http://nagioscore.demos.nagios.com/nagios/) and I get the same!!

Do anybody know what's happen?

Thanks!

Re: Blanc page in new map

Posted: Fri Dec 04, 2015 10:24 am
by hsmith
What browsers? What language are they in?

Re: Blanc page in new map

Posted: Fri Dec 04, 2015 10:31 am
by jose_a_guardia
Windows 8.1 Firefox and IE. Spanish.

Thanks

Re: Blanc page in new map

Posted: Fri Dec 04, 2015 11:40 am
by hsmith
I believe there was a bug that was addressed. When did you install/upgrade? Where did you get the file from?

Re: Blanc page in new map

Posted: Fri Dec 04, 2015 1:01 pm
by jose_a_guardia
Thank you.

I get the file 5 weeks ago from official nagios core download site. It is the latest stable version, I think. I'd installed it in Ubuntu Server 15.04, hosted in a XenServer 6.5.

Is there any patch to apply?

I've just tried in Windows 10 with Chrome browser, with the same result.

Regards.

Re: Blanc page in new map

Posted: Fri Dec 04, 2015 1:09 pm
by hsmith
A couple of things:

https://github.com/NagiosEnterprises/nagioscore here you can try recompiling from this, I am not 100% sure if it is more 'up to date' than the one on our website, but it is always the most up to date.

We also have a 4.1.2 beta on there that addressed some language issues as well.

Re: Blanc page in new map

Posted: Fri Dec 11, 2015 7:50 am
by jose_a_guardia
Hi.

I've installed a new Nagios (latest version) instance in other server, with the same result!!

I've tried in some OS (Windows, OSX, Android) with different browsers (Firefox, Edge, Chrome)

What can I check to solve this?

This is the source code of the Nagios Map frame. Maybe something wrong with variables?

Code: Select all

<!DOCTYPE html>
<html ng-app="mapApp">
	<head>
		<meta charset="utf-8"/>
		<title>Nagios Map</title>
		<link type="image/ico" rel="shortcut icon" href="images/favicon.ico"/>
		<link type="text/css" rel="stylesheet"
				href="bootstrap-3.3.0/css/bootstrap.min.css">
		<link type="text/css" rel="stylesheet"
				href="bootstrap-3.3.0/css/bootstrap-theme.min.css">
		<link type='text/css' rel='stylesheet' href='stylesheets/common.css'/>
		<link type='text/css' rel='stylesheet' href='stylesheets/map.css'/>
		<link type='text/css' rel='stylesheet' href='stylesheets/map-directive.css'/>
		<script type="text/javascript" src="d3/d3.min.js"></script>
		<script type="text/javascript"
				src="angularjs/angular-1.3.9/angular.min.js"></script>
		<script type="text/javascript"
				src="angularjs/ui-bootstrap-tpls-0.12.0.min.js"></script>
		<script type="text/javascript"
				src="angularjs/ui-utils-0.2.1/ui-utils.js"></script>
		<script type="text/javascript" src="spin/spin.min.js"></script>
		<script type="text/javascript" src="js/map.js"></script>
		<script type="text/javascript" src="js/map-directive.js"></script>
		<script type="text/javascript" src="js/map-form.js"></script>
		<script type="text/javascript" src="js/nagios-decorations.js"></script>
		<script type="text/javascript" src="js/nagios-time.js"></script>
	</head>
	<body ng-controller="mapCtrl">
		<div id="image-cache" style="display: none;"></div>
		<div id="header-container">
			<div info-box cgiurl="{{params.cgiurl}}"
					decoration-title="{{infoBoxTitle()}}"
					update-interval="10"
					last-update="lastUpdate"
					initial-state="collapsed"
					collapsable="true"
					include-partial="map-links.html">
			</div>
		</div>
		<div id="map-container" ng-hide="formDisplayed"
				nagios-map
				cgiurl="{{params.cgiurl}}"
				layout="{{params.layout}}"
				dimensions="{{params.dimensions}}"
				ulx="{{params.ulx}}"
				uly="{{params.uly}}"
				lrx="{{params.lrx}}"
				lry="{{params.lry}}"
				root="params.root"
				maxzoom="params.maxzoom"
				nolinks="{{params.nolinks}}"
				notext="{{params.notext}}"
				nopopups="{{params.nopopups}}"
				noresize="{{params.noresize}}"
				noicons="{{params.noicons}}"
				iconurl="{{params.iconurl}}"
				reload="{{reload}}"
				update-interval="10"
				last-update="lastUpdate"
				map-width="svgWidth"
				map-height="svgHeight"
				build="canBuildMap()">
			</div>

			<div id="menubutton" ng-style="menuButtonStyle()"
					ng-hide="params.nomenu">
				<button type="button" class="btn"
						ng-click="displayForm()">
					<img src="images/menu.png"/>
				</button>
			</div>
		</div>
	</body>
</html>
Thank you!

Re: Blanc page in new map

Posted: Fri Dec 11, 2015 10:35 am
by hsmith
Did you try the 4.1.2 beta?

Re: Blanc page in new map

Posted: Mon Dec 14, 2015 3:24 am
by jose_a_guardia
hsmith wrote:Did you try the 4.1.2 beta?
Yes.

Now, I've tried my production site with Firefox in Linux Mint 17 cinnamon, and now I can see the new map!!! This is so weird.

But now Nagios put png icons intead .gd2 icon, so I must resize it because I'm using 256px png files.

Why new Nagios map doesn't works in Android, Windows 8, Windows 10 and OSX, and it works in a Debian based Linux???


/*Edited*/

Now I've login in my Windows machine, and the new map works!!!!


I can't understand it. I didn't do any change to the system.

Re: Blanc page in new map

Posted: Mon Dec 14, 2015 10:29 am
by hsmith
Are you running any sort of adblocker perhaps?