Page 13 of 15
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 8:30 am
by DanielB
Hi, Holden.
hsmith wrote:I would say we have enough here to say that we have something. I can't confirm the same errors that you are getting because I am not getting them, sadly.
Thanks for your answer. If you have any update from the developers at some point for some inference based on what I mentioned, please let me know.
Best regards,
Daniel
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 9:06 am
by jfrickson
DanielB wrote:Thanks for sharing this information with the developers. Along the same line, I have installed Firebug on the Windows Server 2012 where I also have this problem with the information shown on the network map and I can see the same errors shown on Debian Jessie. Attached screenshot.
So we probably have something here. Especially if you do not see these errors in the tests where the information was displayed correctly. Can you confirm this?
That screenshot looks like you do not have the latest patches to statusjason.c and objectjason.c. See
https://github.com/NagiosEnterprises/na ... 39b6474fe4 and
https://github.com/NagiosEnterprises/na ... a456986afc
Let me know if you already have these applied or if they don't fix the problem.
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 10:08 am
by DanielB
Hi, John. Thanks for your reply.
Yes, I have applied the patch on Nagios Core 4.1.1 and recompiled it.
In fact, before applying the patch was not able to see at all on the network map in Debian Jessie and Windows Server 2012 when using Icewasel/Firefox 40.0.3 (I saw only an empty frame). After applying this patch I see the map with the hosts but by moving the mouse over the hosts, they do not show information for Iceweasel/Firefox on these two operating systems.
Here I mentioned this problem. I would like to note that the problem is specific to Firefox / Iceweasel only in Windows Server 2012 and Debian Jessie. At least it's where I found this inconvenient.
Yesterday I did a
test on FreeBSD with Firefox 40.0.3 and there the information is displayed properly and Firebug shows no errors. Which do you think can be the difference?
Thanks for your time.
Best regards,
Daniel
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 10:42 am
by jfrickson
DanielB wrote:Hi, John. Thanks for your reply.
Yesterday I did a
test on FreeBSD with Firefox 40.0.3 and there the information is displayed properly and Firebug shows no errors. Which do you think can be the difference?
Well, it's showing a JSON error:
Code: Select all
Error: JSON.parse: expected double-quoted property name at line 56 column 35 of the JSON data
If you go to the networking (Red) tab, there should be entries for statusjson.cgi. It should show what data was transferred from the server.
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 12:13 pm
by DanielB
Hi, John.
jfrickson wrote:
Well, it's showing a JSON error:
Code: Select all
Error: JSON.parse: expected double-quoted property name at line 56 column 35 of the JSON data
If you go to the networking (Red) tab, there should be entries for statusjson.cgi. It should show what data was transferred from the server.
I have reviewed the Network tab and I see entries for statusjson.cgi but I don't know what is exactly what I should look. Maybe you can help me here. I attach a screenshot.
Moreover I think now I see other different errors to that I showed earlier in the Firebug Console. I'm not sure if this has to do with to have upgraded to Iceweasel 41.0. I attach a screenshot.
Thanks for your time.
Best regards,
Daniel
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 12:44 pm
by jfrickson
DanielB wrote:Hi, John.
I have reviewed the Network tab and I see entries for statusjson.cgi but I don't know what is exactly what I should look. Maybe you can help me here. I attach a screenshot.
Click on one of the statusjson.cgi lines to expand it. Then select the "Response" tab. Copy the contents of that tab and paste it into a message here.
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 1:02 pm
by DanielB
Hi, John.
jfrickson wrote:
Click on one of the statusjson.cgi lines to expand it. Then select the "Response" tab. Copy the contents of that tab and paste it into a message here.
Thanks for the clarification. Below I copy the corresponding response to one of the entries (
https://nagios.freesoftware/nagios/cgi- ... gramstatus)
Code: Select all
{
"format_version": 0,
"result": {
"query_time": 1443116961000,
"cgi": "statusjson.cgi",
"user": "nagiosadmin",
"query": "programstatus",
"query_status": "released",
"program_start": 1442538190000,
"last_data_update": 1443116959000,
"type_code": 0,
"type_text": "Success",
"message": ""
},
"data": {
"programstatus": {
"version": "4.1.1",
"nagios_pid": 13170,
"daemon_mode": true,
"program_start": 1442538190000,
"last_log_rotation": 1443063599000,
"enable_notifications": true,
"execute_service_checks": true,
"accept_passive_service_checks": true,
"execute_host_checks": true,
"accept_passive_host_checks": true,
"enable_event_handlers": true,
"obsess_over_services": false,
"obsess_over_hosts": false,
"check_service_freshness": true,
"check_host_freshness": false,
"enable_flap_detection": true,
"process_performance_data": true
}
}
}
I hope that the chosen entry is valid for what you hope to find.
Please let me know if there is something else that I can help.
Thanks.
Best regards,
Daniel
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 1:47 pm
by jfrickson
Hi Daniel,
That one looks OK. Right after pulling up the map, there will be two calls to objectjson.cgi. The first of the two should be the longest. Grab that one, and make a note of the line and column of the error from the console tab. If it's really big, you can attach it or private message it to me.
Thanks for your help!
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 3:41 pm
by DanielB
Hi, John.
jfrickson wrote:Right after pulling up the map, there will be two calls to objectjson.cgi. The first of the two should be the longest.
I have identified these two calls to
objectjson.cgi:
Code: Select all
https://nagios.freesoftware/nagios/cgi-bin/objectjson.cgi?&details=true&formatoptions=enumerate+bitmask&query=hostlist (111 ms)
https://nagios.freesoftware/nagios/cgi-bin/objectjson.cgi?details=false&formatoptions=enumerate+bitmask&query=servicelist (72 ms)
Please confirm that the first one would be the call that we need to analyze.
jfrickson wrote:Grab that one, and make a note of the line and column of the error from the console tab. If it's really big, you can attach it or private message it to me.
I'm not sure if I've understood this. The majority of the entries (I think they're 324 errors so far because the number displayed besides the Firebug icon that is on the navigation bar of Iceweasel) I see in Console->Errors seems to say the same when I compare the number of the lines (I do not see columns numbers). But I think the errors shown there are independent of the URLs selected in the "Network" tab, right?
I've seen a lot of errors of "Error1" type (see screenshot) and only a few of Error2, Error3 and Error4 type (see screenshots).

- Error 1

- Error 2
NOTE: Error3 and Error4 screenshots are placed in the next message as there is a limitation of number of attachments.
Moreover, do you need the content of the "Response" tab for the first call?
jfrickson wrote:Thanks for your help!
No problem. Always a pleasure to help and that way we can all benefit with this.
Best regards,
Daniel
Re: Nagios 4.1.1 Statusmap problem
Posted: Thu Sep 24, 2015 3:48 pm
by DanielB

- Error 3 / Part1 (It is an error with several lines and it does not fit in a single screenshot)

- Error 3 / Part2

- Error 4
Best regards,
Daniel