Page 1 of 1

Download pdf Couldn't create temporary file.

Posted: Tue Mar 28, 2017 2:18 am
by Kevin.c
Hi Nagios,
when I want to download the graph to a PDF-file PNG and jpeg image , Nagios XI give me an alert like below :

Couldn't create temporary file. Check that the directory permissions for the /temp directory are set to 777.

Re: Download pdf Couldn't create temporary file.

Posted: Tue Mar 28, 2017 10:01 am
by avandemore
What is the output of:

Code: Select all

ls -la /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp

Re: Download pdf Couldn't create temporary file.

Posted: Tue Mar 28, 2017 10:07 am
by tgriep
When downloading a graph, it needs to create that graph in a temp folder and the permissions for that folder and not set correctly and the following procedure should fix that.
Login as root to the Nagios server and run the following.

Code: Select all

chown -R  nagios.nagios /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
chmod -R  ug+rwx /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Now, try and download a graph and see if this resolved the issue.

Re: Download pdf Couldn't create temporary file.

Posted: Tue Mar 28, 2017 9:55 pm
by Kevin.c
Hi,
it was working fine now
thank you very much :D

Re: Download pdf Couldn't create temporary file.

Posted: Wed Mar 29, 2017 9:05 am
by cdienger
Thanks for the update! Are we okay closing the thread or did you have any more questions?