Blanc page in new map

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.
Locked
jose_a_guardia
Posts: 13
Joined: Fri Dec 04, 2015 2:40 am

Blanc page in new map

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

Re: Blanc page in new map

Post by hsmith »

What browsers? What language are they in?
Former Nagios Employee.
me.
jose_a_guardia
Posts: 13
Joined: Fri Dec 04, 2015 2:40 am

Re: Blanc page in new map

Post by jose_a_guardia »

Windows 8.1 Firefox and IE. Spanish.

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

Re: Blanc page in new map

Post by hsmith »

I believe there was a bug that was addressed. When did you install/upgrade? Where did you get the file from?
Former Nagios Employee.
me.
jose_a_guardia
Posts: 13
Joined: Fri Dec 04, 2015 2:40 am

Re: Blanc page in new map

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

Re: Blanc page in new map

Post 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.
Former Nagios Employee.
me.
jose_a_guardia
Posts: 13
Joined: Fri Dec 04, 2015 2:40 am

Re: Blanc page in new map

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

Re: Blanc page in new map

Post by hsmith »

Did you try the 4.1.2 beta?
Former Nagios Employee.
me.
jose_a_guardia
Posts: 13
Joined: Fri Dec 04, 2015 2:40 am

Re: Blanc page in new map

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

Re: Blanc page in new map

Post by hsmith »

Are you running any sort of adblocker perhaps?
Former Nagios Employee.
me.
Locked