Nagios 4.1.1 Statusmap problem

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
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Re: Nagios 4.1.1 Statusmap problem

Post by DanielB »

Hi, whitest.
whitest wrote:I just re-install 4.1.2-beta again (downloaded fresh zip). Here are fresh results:

I tried on my PC1 (Windows 8.1 EN):
- FF (ru): works fine including color backlight and state info .

I tried on my PC2 (Windows XP RU):
- FF (ru): works fine including color backlight and state info .

I tried on my PC3 (Windows 7 x64 RU):
- FF (ru): works fine including color backlight and state info .
Could you please clarify which version of FF are you using? In one of the first messages I saw the following:

PC1: Windows 8.1 ==> Firefox 34.0.5
PC2: Windows 8.1 ==> Firefox 40.0.2
PC3: Windows 7 x64 ==> Firefox 30
PC3: Windows XP SP3 ==> Firefox 28

In that case, it would appear to be another PC2.

Thanks.

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

Re: Nagios 4.1.1 Statusmap problem

Post by hsmith »

@DanielB
2015-09-21 13_02_54-Windows 7 x64 - VMware Workstation.png

Code: Select all

[root@holdcore ~]# locale
LANG=es_AR.UTF-8
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=
[root@holdcore ~]# uname -a
Linux holdcore 2.6.32-573.3.1.el6.x86_64 #1 SMP Thu Aug 13 22:55:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@holdcore ~]# cat /etc/*release*
CentOS release 6.7 (Final)
CentOS release 6.7 (Final)
CentOS release 6.7 (Final)
cpe:/o:centos:linux:6:GA
[root@holdcore ~]#
Still having trouble replicating your issues.


@whitest, I am not 100% on your issue. IE8 is pretty outdated, so I am not sure how much development will be done for that. I let the devs know that you had another concern, as well. I'll see what I can do for that one, but right now I have been focusing on the language/compatability aspect of this issue.
Former Nagios Employee.
me.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

DanielB wrote:Could you please clarify which version of FF are you using? In one of the first messages I saw the following:
PC1: Windows 8.1 ==> Firefox 34.0.5
PC2: Windows 8.1 ==> Firefox 40.0.2
PC3: Windows 7 x64 ==> Firefox 30
PC3: Windows XP SP3 ==> Firefox 28

In that case, it would appear to be another PC2.

Thanks.

Best regards,
Daniel
What for you need the information?
PC with Windows XP has Firefox 28.0. All other PCs have latest version of Firefox already.
jfrickson

Re: Nagios 4.1.1 Statusmap problem

Post by jfrickson »

whitest wrote:I just re-install 4.1.2-beta again (downloaded fresh zip). Here are fresh results:

I tried on my PC2 (Windows XP RU):
- IE 8 (ru): not worked.

I tried on my PC3 (Windows 7 x64 RU):
- IE 8.0.7601.17514 (ru): not worked.
The new maps are done using SVG, and IE 8 doesn't support SVG. That's one of the reasons we have the "legacy" links.
whitest wrote:One more question. I use virtual hosting on the nagios server. Before 4.1.1 version Nagios searched cgi directory properly. I didn't have to change ScriptAlias directive in httpd.conf to:

Code: Select all

ScriptAlias /cgi-bin/ "/usr/local/nagios/sbin/"
Now I need to change it to make new map working with virtual hosting. Why new map doesn't use ScriptAlies directive from /etc/httpd/conf.d/nagios.conf as it was before???
What problem, exactly, are you having with this? Are you getting a 404 error? Or something else?
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

jfrickson wrote:
whitest wrote:I just re-install 4.1.2-beta again (downloaded fresh zip). Here are fresh results:

I tried on my PC2 (Windows XP RU):
- IE 8 (ru): not worked.

I tried on my PC3 (Windows 7 x64 RU):
- IE 8.0.7601.17514 (ru): not worked.
The new maps are done using SVG, and IE 8 doesn't support SVG. That's one of the reasons we have the "legacy" links.
OK..
jfrickson wrote:
whitest wrote:One more question. I use virtual hosting on the nagios server. Before 4.1.1 version Nagios searched cgi directory properly. I didn't have to change ScriptAlias directive in httpd.conf to:

Code: Select all

ScriptAlias /cgi-bin/ "/usr/local/nagios/sbin/"
Now I need to change it to make new map working with virtual hosting. Why new map doesn't use ScriptAlies directive from /etc/httpd/conf.d/nagios.conf as it was before???
What problem, exactly, are you having with this? Are you getting a 404 error? Or something else?
New map is not worked. I see following messages in error.log:

Code: Select all

[Mon Sep 21 21:39:54 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/statusjson.cgi, referer: http://nagios.domain.local/map.html?host=all
[Mon Sep 21 21:39:54 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/statusjson.cgi, referer: http://nagios.domain.local/map.html?host=all
[Mon Sep 21 21:39:54 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/objectjson.cgi, referer: http://nagios.domain.local/map.html?host=all
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Re: Nagios 4.1.1 Statusmap problem

Post by DanielB »

Hi, whitest.
whitest wrote: What for you need the information?
PC with Windows XP has Firefox 28.0. All other PCs have latest version of Firefox already.
Thanks for your reply.

As I mentioned in a previous message, I was having difficulty obtaining the information on the network map using Iceweasel/Firefox 40.0.3 on GNU/Linux and Windows Server 2012, respectively. But I had no problems with Firefox 35 in OpenBSD. So I was interested to know the versions with which it worked for you.

Best regards,
Daniel
jfrickson

Re: Nagios 4.1.1 Statusmap problem

Post by jfrickson »

whitest wrote:New map is not worked. I see following messages in error.log:

Code: Select all

[Mon Sep 21 21:39:54 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/statusjson.cgi, referer: http://nagios.domain.local/map.html?host=all
[Mon Sep 21 21:39:54 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/statusjson.cgi, referer: http://nagios.domain.local/map.html?host=all
[Mon Sep 21 21:39:54 2015] [error] [client 10.14.2.220] script not found or unable to stat: /var/www/cgi-bin/objectjson.cgi, referer: http://nagios.domain.local/map.html?host=all
The ScriptAlias is for /nagios/cgi-bin but map.html is not under nagios, so the server is looking for the JSON CGI's in the normal cgi-bin directory. If I understand correctly you probably need to add a ScriptAlias /cgi-bin /usr/local/nagios/sbin to your config.
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Re: Nagios 4.1.1 Statusmap problem

Post by DanielB »

Hi, Holden.
hsmith wrote: Still having trouble replicating your issues.
Thanks for doing this test. Which version of Nagios Core are you using? Here I'm using 4.1.1.

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

Re: Nagios 4.1.1 Statusmap problem

Post by hsmith »

I have a server on 4.1.1, and I have a server on 4.1.2 beta. They are both set to the es_AR locale. Windows 7 is the Russian version, but I feel like we can kind of eliminate that as you used it on Windows Server 2012 English version without any issues. My English one works just fine obviously. I'd spin up the version you're using, but I don't have Microsoft Volume Licensing personally.
Former Nagios Employee.
me.
DanielB
Posts: 77
Joined: Sun Aug 17, 2014 2:17 pm

Re: Nagios 4.1.1 Statusmap problem

Post by DanielB »

Hi, Holden.
hsmith wrote:I have a server on 4.1.1, and I have a server on 4.1.2 beta. They are both set to the es_AR locale. Windows 7 is the Russian version, but I feel like we can kind of eliminate that as you used it on Windows Server 2012 English version without any issues. My English one works just fine obviously. I'd spin up the version you're using, but I don't have Microsoft Volume Licensing personally.
Thanks for confirm.

Here I'm using Windows Server 2012 Evaluation downloaded from Microsoft site. It can be downloaded an ISO that lets you test Windows for six months. I use this version of Windows when I have to test things on this operating system since I usually use GNU/Linux.

What strikes me is why Iceweasel 40.0.3 on Debian Jessie generates these problems and other browsers (Chromium 45.0.2454.85 and Konqueror 4.14.2) have no problems, because the operating system is the same for all three cases. Something similar happens in the Windows Server 2012 virtual machine: Firefox 40.0.3 has this problem but Google Chrome 45.0.2454.93 and Explorer 10.0.9200.17492 run smoothly and the operating system is common to all three.


Best regards,
Daniel
Locked