Page 2 of 3

Re: Nagios XI perf graphs are missing

Posted: Wed Oct 31, 2012 4:28 pm
by westernuniv
Hi,

Perf graphs are not displaying in none of the browsers (IE/firefox/Chrome)
I did cleared the cache and refreshed the browsers, still same

Thanks
Mukunthini

Re: Nagios XI perf graphs are missing

Posted: Wed Oct 31, 2012 4:30 pm
by scottwilkerson
Can you run the following and return any errors displayed

Code: Select all

tail /var/log/httpd/error_log

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 11:07 am
by westernuniv
Hi,
pls find attached.

Thanks

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 11:34 am
by mguthrie
Somehow we got what might be the same issue showing up on a local test box. We're in the midst of investigating as we speak, but it looks like somehow the graph images are being corrupted, so they're not displaying in the browser. We're looking to post an updated release in the next couple of days, so this item is a high priority item for the 1.2 release.

Can you try accessing the following URL in Firefox and see if you get an error about the image containing errors?
[url]http://<yourserver>/nagiosxi/includes/components/perfdata/graphApi.php?host=localhost[/url]

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 12:42 pm
by westernuniv
Yes I'm getting an error
" The image "http://<hostname>/nagiosxi/includes/components/perfdata/graphApi.php?host=localhos" cannto be displayed because it contains errors"

Thanks

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 2:01 pm
by westernuniv
I couldnt display network status map too. Is that related to the current issue?

Thanks

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 3:20 pm
by mguthrie
Almost has to be, got that on our test system too. Thanks for the tip, that's another clue at least. Seems like binary image data can't be rendered directly to the browser for some reason. Static image files are fine, just live binary data is failing.

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 3:30 pm
by westernuniv
I also checked the reports, Availability and Alert Histogram seems to have display issues too.
Thanks

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 3:58 pm
by mguthrie
Yeah, I think I figured it out. There's extra whitespace coming from somewhere, but it's not on every install. Have we sent you any patches or updated components in the last week or two?

Re: Nagios XI perf graphs are missing

Posted: Thu Nov 01, 2012 4:25 pm
by mguthrie
GOT IT. And you and I are the only lucky two people who get to experience this issue. The open service problems dashlet I sent you is causing the problems. Open up the following file:

/usr/local/nagiosxi/html/includes/dashlets/openserviceproblems/openserviceproblems.inc.php

Scroll down to the very bottom, and delete the two spaces at the very end of the file, or just delete the entire line with the closing ?> tag.

Stupid whitespace, grr! :x