Download pdf Couldn't create temporary file.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Kevin.c
Posts: 37
Joined: Wed Mar 22, 2017 2:49 am

Download pdf Couldn't create temporary file.

Post 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.
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Download pdf Couldn't create temporary file.

Post by avandemore »

What is the output of:

Code: Select all

ls -la /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
Previous Nagios employee
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Download pdf Couldn't create temporary file.

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Kevin.c
Posts: 37
Joined: Wed Mar 22, 2017 2:49 am

Re: Download pdf Couldn't create temporary file.

Post by Kevin.c »

Hi,
it was working fine now
thank you very much :D
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Download pdf Couldn't create temporary file.

Post by cdienger »

Thanks for the update! Are we okay closing the thread or did you have any more questions?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked