Page 1 of 2

Exporting Server not Working

Posted: Tue Dec 09, 2014 12:32 pm
by lb2cons
Hello everyone. I'm having some problems with Highcharts export server.

We've just deployed Nagios XI and tried to download graphs:
Screen Shot 2014-12-09 at 15.06.12.png
After that I was redirected to a not found page:
Screen Shot 2014-12-09 at 15.06.20.png
I know that highcharts has two methods of exporting server, the first one is use export.highcharts.com, the other is setup your own exporting-server using batik-rasterizer/php or Java/PhantonJS.

I've noticed that exporting has only this problem when the image has custom size, like in the first attachment, when this happen the requisition goes to my NagiosXI server, but, if I don't change the image size the requisition goes OK and the file is downloaded.

Am i doing something wrong? I didn't modify any configuration of NagiosXI .ova.

Another information, I've got this message in Apache error_log:

[Tue Dec 09 15:26:57 2014] [error] [client 10.20.20.2] File does not exist: /var/www/html/includes, referer: http://10.200.0.113/nagiosxi/dashboards ... d=d7mccig7

Server informations:

Linux Distribution and version? - CentOS 6.6
32 or 64bit? 64bit
VMware Image or Manual Install of XI? VMware Image on VMware Vsphere
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? No

Re: Exporting Server not Working

Posted: Tue Dec 09, 2014 12:44 pm
by tmcdonald
What version of Nagios XI are you running?

Re: Exporting Server not Working

Posted: Tue Dec 09, 2014 1:03 pm
by lb2cons
Hello, the latest: Nagios XI 2014R2.0

Re: Exporting Server not Working

Posted: Tue Dec 09, 2014 5:16 pm
by cmerchant
How is it that you are creating a custom size for the graph?

Re: Exporting Server not Working

Posted: Wed Dec 10, 2014 6:47 pm
by lb2cons
For custom size I mean the dashlet size inside a dashboard.

I've figured out that the size ins't the problem.

Actually, the problem it's only when the graph it's a capacity planning graph and when the graph is inside a dashboard.

Apache errors related:

[Wed Dec 10 21:40:20 2014] [error] [client 192.168.46.22] PHP Notice: Undefined offset: 3 in /usr/local/nagiosxi/html/includes/components/graphexplorer/templates/perfdata.inc.php on line 201, referer: http://svmonitora/nagiosxi/perfgraphs/

One more information. When I click to download the graph, I'm able to see the upload going on but when it's complete and Nagios has to redirect the download for me the error occurs.

Thanks in advance.

Re: Exporting Server not Working

Posted: Thu Dec 11, 2014 10:50 am
by lmiltchev
I was able to recreate the issue and filed an internal bug report (TASK ID 4678).

Re: Exporting Server not Working

Posted: Thu Dec 11, 2014 1:00 pm
by lb2cons
Thank you. Please contact me when this issue were corrected

Re: Exporting Server not Working

Posted: Thu Dec 11, 2014 2:01 pm
by jomann
I've fixed it and it will be in the next release.

Since this is an encrypted component, you'll have to reinstall the whole component using the zip file attached to get the updates now if you don't want to wait.

Re: Exporting Server not Working

Posted: Thu Dec 11, 2014 2:30 pm
by lb2cons
Thanks for your quick response jomann, but as you can see in the image below, the component couldn't be installed.

Am I doing something wrong? I've removed Capacity Planning Report component and after that uploaded your zip file.
Screen%20Shot%202014-12-11%20at%2017.27.36.png

Re: Exporting Server not Working

Posted: Thu Dec 11, 2014 3:26 pm
by jomann
It looks like because the inc.php file is encrypted it won't upload via the Manage Component section.

You can unzip the folder into /usr/local/nagiosxi/html/includes/components/ but you'll need to do the following after:

Code: Select all

chown nagios:nagios -R /usr/local/nagiosxi/html/includes/components/capacityplanning/
chmod +x -R /usr/local/nagiosxi/html/includes/components/capacityplanning/backend/