Page 9 of 15

Re: Nagios 4.1.1 Statusmap problem

Posted: Thu Sep 17, 2015 4:23 pm
by DanielB
whitest wrote: - IE 11 (en): not worked (see attach).
Hi, whitest.

When I did my first tests with Internet Explorer 10 at first also I saw the same thing showed in that screenshot and that was because it was not enabled Javascript. Could you verify that? Take a look at this [1]

Best regards,
Daniel

[1] http://enable-javascript.com/#ie

Re: Nagios 4.1.1 Statusmap problem

Posted: Thu Sep 17, 2015 4:34 pm
by hsmith
Thank you for the suggestion, DanielB! :)

Re: Nagios 4.1.1 Statusmap problem

Posted: Thu Sep 17, 2015 8:33 pm
by DanielB
hsmith wrote:Hi DanielB,


The steps that I took to upgrade are the following:

Code: Select all

yum install git -y 
cd /tmp
git clone https://github.com/NagiosEnterprises/nagioscore.git
cd nagioscore 
Install as normal, if you are unfamiliar with the steps I suggest this guide.

edit: it might be a good idea to do this on a clean machine to make sure it works for you just in case :geek:
Hi, hsmith.

I modified the cgi/objectjson.c file with the four lines added by the commit of jfrickson [1], recompiled and did some tests.

Debian GNU/Linux Jessie with the following locale settings:

Code: Select all

viper@orion:~$ locale
LANG=es_AR.UTF-8
LANGUAGE=es_AR:es
LC_CTYPE="es_AR.UTF-8"
LC_NUMERIC="es_AR.UTF-8"
LC_TIME="es_AR.UTF-8"
LC_COLLATE="es_AR.UTF-8"
LC_MONETARY="es_AR.UTF-8"
LC_MESSAGES="es_AR.UTF-8"
LC_PAPER="es_AR.UTF-8"
LC_NAME="es_AR.UTF-8"
LC_ADDRESS="es_AR.UTF-8"
LC_TELEPHONE="es_AR.UTF-8"
LC_MEASUREMENT="es_AR.UTF-8"
LC_IDENTIFICATION="es_AR.UTF-8"
LC_ALL=
Iceweasel 40.0.3 (language preferences: Spanish/Argentina | Spanish | English/United States | English) => Working.
Chormium 45.0.2454.85 (English/United States | English | Spanish) => Working.
Konqueror 4.14.2 (Spanish | America English) => Working

The good part is that I now see the map in all browsers I mentioned earlier. Although tomorrow I will check if there is any difference in how graphics are displayed.

Tomorrow I'll do some testing with the Windows virtual machine.

Thank you so much!

Best regards,
Daniel

[1] https://github.com/NagiosEnterprises/na ... a456986afc

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 12:28 am
by whitest
jfrickson wrote:Unless you're on 4.1.2-beta, there is a known problem with I.E. Fixed in the beta.
I use 4.1.2-beta.
Here is the screenshot from FF.

I think the map need to resize icons to smaller size when zoom is low.

Here is samething else. When I navigate the coursor on any host I see that it's in pending statate (see attach).

DanielB wrote:
whitest wrote: - IE 11 (en): not worked (see attach).
Hi, whitest.

When I did my first tests with Internet Explorer 10 at first also I saw the same thing showed in that screenshot and that was because it was not enabled Javascript. Could you verify that? Take a look at this [1]

Best regards,
Daniel

[1] http://enable-javascript.com/#ie
Thank you for you reply. I've chacked. Active scripting is enebled in my IE11.
I downloaded and installed 4.1.2-beta from the link (https://github.com/NagiosEnterprises/na ... 4.1.2-beta). I've checked map-directive.html contains right directives described here: https://github.com/NagiosEnterprises/na ... d9ec6c7R25

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 9:05 am
by hsmith
Thanks for the testing and feedback, DanielB.

@whitest how many times did you update yesterday? The pending thing was an issue for me as well, and jfrickson committed another change that fixed that one maybe an hour after the first one. I'd try to make sure you're 100% up to date to make sure that we are all on the same page. Mine is working wonderfully on RU Win7.

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 9:08 am
by jfrickson
whitest wrote:Here is samething else. When I navigate the coursor on any host I see that it's in pending statate (see attach).
There was also a change to statusjson.c that I made shortly after the one to objectjson.c that fixes the "pending" state problem. You probably pulled 4.1.2-beta before I committed that change.

If you want to change just that file instead of pulling the whole thing again, here's the diff:

Code: Select all

--- statusjson.c.orig	2015-08-03 09:31:05.422663759 -0500
+++ statusjson.c	2015-09-17 15:32:33.286067321 -0500
@@ -865,6 +865,10 @@
 	/* get authentication information */
 	get_authentication_information(&current_authdata);
 
+	/* For most locales, floats get output with a comma instead of a
+	 * decimal point, which messes up the JSON data structure. */
+	setlocale(LC_NUMERIC, "C");
+
 	/* Return something to the user */
 	switch( cgi_data.query) {
 	case STATUS_QUERY_HOSTCOUNT:

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 9:27 am
by DanielB
DanielB wrote: Iceweasel 40.0.3 (language preferences: Spanish/Argentina | Spanish | English/United States | English) => Working.
Chormium 45.0.2454.85 (English/United States | English | Spanish) => Working.
Konqueror 4.14.2 (Spanish | America English) => Working

The good part is that I now see the map in all browsers I mentioned earlier. Although tomorrow I will check if there is any difference in how graphics are displayed.
Hi!

I found a similar behavior to mentioned by whitest; in my case it was for Iceweasel on GNU/Linux Jessie (not yet tested with Windows). Attached screenshots.

It seems that for the network map is not being updated on Iceweasel the information of:
  • State.
  • State Duration.
  • Last Status Check.
  • Last State Change.
  • Services.
I also noticed that the icons do not have that green shading acquired in the other browsers (maybe it has to do with the state of services?)

Best regards,
Daniel

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 10:36 am
by DanielB
DanielB wrote: Tomorrow I'll do some testing with the Windows virtual machine.
I was testing in Windows (Server 2012 Datacenter Evaluation).
  • Google Chrome 45.0.2454.93 => (map working, information correct).
  • Mozilla Firefox 40.0.3 => same as Iceweasel 40.0.3 on Jessie (map working, information incorrect).
  • Internet Explorer 10.0.9200.17492 => (map working, information correct) [note: Here does not shown the green shaded for the icons, so it seems not to be related to not being able to retrieve status information for the services --- at least in Explorer]
Best regards,
Daniel

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 1:16 pm
by hsmith
What language is the 2012 VM?

Re: Nagios 4.1.1 Statusmap problem

Posted: Fri Sep 18, 2015 1:32 pm
by DanielB
hsmith wrote:What language is the 2012 VM?
Hi, hsmith.

It is English (United States).

Best regards,
Daniel