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.
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 »

tgriep wrote:Try upgrading to this branch to see if this fixes it for you.
https://github.com/NagiosEnterprises/na ... 4.1.2-beta
Did you do this?
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, didn't do yet. I busy today =(.
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:Sorry, didn't do yet. I busy today =(.
That's all right, just post back and let us know when you do. I couldn't tell by your previous reply if you had done it or not.
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 »

I upgraded Nagios to 4.1.2-beta.
Links working now:
View Status Detail For This Host
View Status Detail For All Hosts
View Status Overview For All Hosts

But map still doesn't work as discribed above. :( It's very flash and java depended solution.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios 4.1.1 Statusmap problem

Post by tmcdonald »

We do not use Flash and we do not use Java in Core, so updating those will not have any effect. We use JavaScript which is entirely different from Java, despite their similar names.

Can you visit the map and tail the apache error logs again? I want to see what might be logged their after the change. In addition, using Firefox please visit the map page and open the Browser Console by pressing Ctrl+Shift+J and find the Logging tab. Are there any errors listed there?
Former Nagios employee
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

I saw in error.log after upgrade and visit the map. It is in silence.
Here is Logging tab:

Code: Select all

"Error: JSON.parse: expected double-quoted property name at line 35 column 29 of the JSON data
oc@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:14:151
Yb@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:77:125
Yc/<@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:77:487
s@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:7:300
Yc@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:77:469
c@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:79:109
f/<@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:112:343
Pe/this.$get</l.prototype.$eval@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:126:189
Pe/this.$get</l.prototype.$digest@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:123:278
Pe/this.$get</l.prototype.$apply@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:126:469
l@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:81:420
O@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:86:51
wf/</w.onload@http://nagios.mydomain.loc/angularjs/angular-1.3.9/angular.min.js:87:78
"

 angular.min.js:103
e/<() angular.min.js:103
He/this.$get</<() angular.min.js:76
f/<() angular.min.js:112
Pe/this.$get</l.prototype.$eval() angular.min.js:126
Pe/this.$get</l.prototype.$digest() angular.min.js:123
Pe/this.$get</l.prototype.$apply() angular.min.js:126
l() angular.min.js:81
O() angular.min.js:86
wf/</w.onload() 

angular.min.js:87
undefined map-directive.js:1257
It's from PC1: Windows 8.1:
- java version "1.7.0_79"
- IE11 Flash 18,0,0,232 (flash 18,0,0,232)
- Firefox 34.0.5 (flash 18,0,0,232)
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios 4.1.1 Statusmap problem

Post by jdalrymple »

Fresh install of 4.1.1 on CentOS 6.5 - both maps work perfectly in all 3 of my browsers. (FF 40 something, Edge and IE11)

This thread has been all over the map talking about flash and java which are 100% irrelevant to the operation of any UI elements in Nagios Core, any version. The error that you're showing us is from the browser, not from the web server which is what tmcdonald requested. Please show us the apache error logs for further troubleshooting.

So with that said, my 2 cents of advice are to abandon this installation, backup and reinstall. The amount of time you have spent already is probably 2-3x that which it would take to reinstall from scratch, unless you have a wildly custom configuration.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

jdalrymple, thank you for your advice. I use Centos 5.11 and upgrade to 6.5 will not be easy. So one server I can peform fresh isntall, but its not easy. I wiil need to reinstall all installed plugion (check_oracle_helth, check_mssql_helth, check_cisco_configs and so on), re-install MRTG+RRD, PNP4Nagios, logs, grapshs...
Besides that I have another installtion with 11 Nagios servers connected in distribution system...
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios 4.1.1 Statusmap problem

Post by jdalrymple »

Do you plan on being on 5.11 forever? Don't let me tell you how to run your operation, but sometimes it's useful to see things like this as an opportunity to not only upgrade things, but maybe work towards freeing yourself from the burden of complicated upgrades down the road a bit. Make your installation a bit more streamlined etc.

That said, if we are to help you further troubleshoot the existing install we have to see those apache logs. They are the next step in the troubleshooting process. Reference tmcdonald's post.
whitest
Posts: 107
Joined: Tue Dec 30, 2014 8:16 am

Re: Nagios 4.1.1 Statusmap problem

Post by whitest »

whitest wrote:I saw in error.log after upgrade and visit the map. It is in silence.
Here is access.log:

Code: Select all

10.14.2.135 - yura [04/Sep/2015:21:28:46 +0300] "GET /js/nagios-time.js HTTP/1.1" 200 5680 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:46 +0300] "GET /js/map-directive.js HTTP/1.1" 200 100955 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:46 +0300] "GET /images/menu.png HTTP/1.1" 200 161 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /infobox.html HTTP/1.1" 200 1660 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /map-directive.html HTTP/1.1" 200 1967 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /map-links.html HTTP/1.1" 200 647 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /map-popup.html HTTP/1.1" 200 1723 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /cgi-bin/statusjson.cgi?query=programstatus HTTP/1.1" 200 992 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /cgi-bin/objectjson.cgi?&details=true&formatoptions=enumerate+bitmask&query=hostlist HTTP/1.1" 200 515227 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
10.14.2.135 - yura [04/Sep/2015:21:28:47 +0300] "GET /cgi-bin/statusjson.cgi?query=programstatus HTTP/1.1" 200 992 "http://nagios.mydomain.loc/map.html?host=all" "Mozilla/5.0 (Windows NT 5.1; rv:28.0) Gecko/20100101 Firefox/28.0"
I don't understand what differents between 5.11 and 6.5 for the Map in Nagios 4.1.2 . May be I need to install/upgrade java on the Centos 5.11 or something else??
Locked