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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1 Statusmap problem

Post by tmcdonald »

Please visit the page and then tail your apache logs. They should be at /var/log/httpd/error_log
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios 4.1.1 Statusmap problem

Post by Box293 »

whitest wrote:Hi everyone. Today I tried to upgrade my Nagios Core 4.0.8 to latest 4.1.1.
New version installed successfully, but New Map doesn't work (empty frame). When I click the link "View Status Detail For This Host" the browser (firefox and IE11) tries to open/save file status.cgi
I ran up a test CentOS 5.11 VM x86.

I installed Nagios Core 4.0.8 and confirmed everything worked as expected.

I upgraded to Nagios Core 4.1.1.

I can see the new map fine. Iv'e tried on Windows 8 using Internet Explorer 10.0.9200.17413 and Firefox 38.0.5.

As for the links issue "View Status Detail For This Host" I can confirm there is a bug in the file /usr/local/nagios/share/map-links.html

Instead of:

Code: Select all

status.cgi
it should be

Code: Select all

cgi-bin/status.cgi
On lines 6, 11, 15

This has been reported here https://github.com/NagiosEnterprises/na ... /issues/76.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

New map is cool, but it's very sensitive to client-side environment =(
Legacy map is better in this sense.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

My little research:
PC1: Windows 8.1:
- IE11 Flash 18,0,0,232 (flash 18,0,0,232) - working, but icons are not displayed
- Firefox 34.0.5 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,232) - not working

PC2: Windows 8.1:
- IE11 (flash 18,0,0,232) - working, but icons are not displayed
- Firefox 40.0.2 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,209) - not working

PC3: Windows 7 x64:
- IE11 (flash 17,0,0,188) - not working
- Firefox 30 (flash 17,0,0,169) - working perfectly

PC3: Windows XP SP3:
- IE8 (flash 18,0,0,232) - not working
- Firefox 28 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,232) - not working
- Opera 12.16 (flash 18,0,0,232) - not working
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 »

whitest wrote:My little research:
PC1: Windows 8.1:
- IE11 Flash 18,0,0,232 (flash 18,0,0,232) - working, but icons are not displayed
- Firefox 34.0.5 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,232) - not working

PC2: Windows 8.1:
- IE11 (flash 18,0,0,232) - working, but icons are not displayed
- Firefox 40.0.2 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,209) - not working

PC3: Windows 7 x64:
- IE11 (flash 17,0,0,188) - not working
- Firefox 30 (flash 17,0,0,169) - working perfectly

PC3: Windows XP SP3:
- IE8 (flash 18,0,0,232) - not working
- Firefox 28 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,232) - not working
- Opera 12.16 (flash 18,0,0,232) - not working
Thank you for doing all the research on this one. We will poke around at it some today and see what we come up with as well. This is something that is going to have to go to the development team. To be clear, you never had these issues before 4.1.1?
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 »

No, I never had these issues befor. I upgraded Nagios many-many times and all times it was plain.
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 »

Turns out the view status is known to be broken currently, it is something that is going to need to be fixed. As far as the map not showing it, I have not been able to replicate it, with different browsers, flash enabled/disabled to get something meaningful to the devs. Can you take a screenshot or two of how it looks?
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 »

Sorry for slow response. Yes, I can make a few screens, but all screenshoots in all browsers are the same (see statusmap1.jpeg).

Here error-log from IE8 in Windows XP:

Code: Select all

Сведения об ошибке на веб-странице

Агент пользователя: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; MRSPUTNIK 2, 4, 0, 504; BTRS98470; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E)
штамп времени: Mon, 31 Aug 2015 06:44:32 UTC


Сообщение: Команда не поддерживается объектом
Строка: 1
Символ: 535
Код: 0
URI-код: http://nagios.mydomain.local/d3/d3.min.js


Сообщение: Предполагается наличие объекта
Строка: 7
Символ: 218
Код: 0
URI-код: http://nagios.mydomain.local/angularjs/angular-1.3.9/angular.min.js


Сообщение: Объект не поддерживает это свойство или метод
Строка: 8
Символ: 1
Код: 0
URI-код: http://nagios.mydomain.local/angularjs/ui-bootstrap-tpls-0.12.0.min.js


Сообщение: Объект не поддерживает это свойство или метод
Строка: 7
Символ: 1
Код: 0
URI-код: http://nagios.mydomain.local/angularjs/ui-utils-0.2.1/ui-utils.js


Сообщение: Объект не поддерживает это свойство или метод
Строка: 1
Символ: 1
Код: 0
URI-код: http://nagios.mydomain.local/js/map.js


Сообщение: Предполагается наличие идентификатора, строки или числа
Строка: 2121
Символ: 8
Код: 0
URI-код: http://nagios.mydomain.local/js/map-directive.js


Сообщение: Объект не поддерживает это свойство или метод
Строка: 1
Символ: 1
Код: 0
URI-код: http://nagios.mydomain.local/js/map-form.js


Сообщение: Объект не поддерживает это свойство или метод
Строка: 1
Символ: 1
Код: 0
URI-код: http://nagios.mydomain.local/js/nagios-decorations.js


Сообщение: Объект не поддерживает это свойство или метод
Строка: 1
Символ: 1
Код: 0
URI-код: http://nagios.mydomain.local/js/nagios-time.js
Attachments
statusmap1.jpg
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios 4.1.1 Statusmap problem

Post by tgriep »

Try upgrading to this branch to see if this fixes it for you.
https://github.com/NagiosEnterprises/na ... 4.1.2-beta
What version of JAVA are you running on your workstations?
Be sure to check out our Knowledgebase for helpful articles and solutions!
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

I added java information:
whitest wrote:My little research:
PC1: Windows 8.1:
- java version "1.7.0_79"
- IE11 Flash 18,0,0,232 (flash 18,0,0,232) - working, but icons are not displayed
- Firefox 34.0.5 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,232) - not working

PC2: Windows 8.1:
- java version "1.8.0_51"
- IE11 (flash 18,0,0,232) - working, but icons are not displayed
- Firefox 40.0.2 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,209) - not working

PC3: Windows 7 x64:
- java version "1.6.0_25"
- IE11 (flash 17,0,0,188) - not working
- Firefox 30 (flash 17,0,0,169) - working perfectly


PC3: Windows XP SP3:
- java version "1.6.0_24"
- IE8 (flash 18,0,0,232) - not working
- Firefox 28 (flash 18,0,0,232) - not working
- Chorme 44.0.2403.157 (flash 18,0,0,232) - not working
- Opera 12.16 (flash 18,0,0,232) - not working
Locked