Page 1 of 1

Couldn't create temporary file error

Posted: Wed Jan 25, 2017 11:39 am
by ksafa
When attempting to download PDF for graphs we get the following error:

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

Do we need to manually create /temp folder on the nagios server? Is there a config somewhere we can change the /temp folder to point to another location such as /tmp.

Thanks.

Re: Couldn't create temporary file error

Posted: Wed Jan 25, 2017 1:47 pm
by dwhitfield
Are you using Cacti?

What is the output of these commands:

Code: Select all

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

Re: Couldn't create temporary file error

Posted: Wed Jan 25, 2017 2:11 pm
by ksafa
I guess that was it. Permissions were set to 755. I changed to 777 and now i can download charts.

Thanks!

Re: Couldn't create temporary file error

Posted: Wed Jan 25, 2017 2:15 pm
by dwhitfield
You're welcome!

I'm going to go ahead and lock the thread.