Page 1 of 3
Performance Graph printout to PDF failing on file permission
Posted: Wed Oct 31, 2018 8:53 am
by Asckey
Hello All,
When I go to the performance graphs for a host and try to download it as a PDF I get a permissions error the same as the below topic.
I tried the below to fix this with no success. Does anyone know where the /tmp file is created so I can change the file permissions?
https://support.nagios.com/forum/viewto ... =6&t=43131
Re: Performance Graph printout to PDF failing on file permis
Posted: Wed Oct 31, 2018 9:52 am
by scottwilkerson
The tmp directory these are placed in when created is
Re: Performance Graph printout to PDF failing on file permis
Posted: Thu Nov 01, 2018 4:01 am
by Asckey
Thank you for the quick reply Scott. I have changed the permissions for "/usr/local/nagiosxi/tmp/" however I am still getting the same issue.
Re: Performance Graph printout to PDF failing on file permis
Posted: Thu Nov 01, 2018 7:14 am
by scottwilkerson
Asckey wrote:Thank you for the quick reply Scott. I have changed the permissions for "/usr/local/nagiosxi/tmp/" however I am still getting the same issue.
What error are you seeing?
Re: Performance Graph printout to PDF failing on file permis
Posted: Fri Nov 02, 2018 4:00 am
by Asckey
scottwilkerson wrote:Asckey wrote:Thank you for the quick reply Scott. I have changed the permissions for "/usr/local/nagiosxi/tmp/" however I am still getting the same issue.
What error are you seeing?
"Couldn't create temporary file. Check that the directory permissions for the /tmp directory are set to 777."
This is after clicking on a host -> Performance Graphs and then trying to download any of the graphs as a CSV.
Re: Performance Graph printout to PDF failing on file permis
Posted: Fri Nov 02, 2018 12:17 pm
by scottwilkerson
Can you show the output of the following:
Code: Select all
ls -ld /usr/local/nagiosxi/tmp
grep nag /etc/group
getenforce
Re: Performance Graph printout to PDF failing on file permis
Posted: Wed Nov 07, 2018 10:44 am
by Asckey
Hello Scott,
Printouts are below,
Code: Select all
ls -ld /usr/local/nagiosxi/tmp
drwsrwsrwx. 2 nagios nagios 4096 Oct 12 11:36 /usr/local/nagiosxi/tmp
grep nag /etc/group
nagios:x:1000:nagios,apache,snmptt
nagcmd:x:1001:nagios,apache,snmptt
getenforce
Disabled
Re: Performance Graph printout to PDF failing on file permis
Posted: Wed Nov 07, 2018 11:13 am
by scottwilkerson
I believe it may also need to touch a file in /tmp
What are the permissions here
Re: Performance Graph printout to PDF failing on file permis
Posted: Mon Nov 12, 2018 3:46 am
by Asckey
Hello Scott,
Code: Select all
drwxrwxrwt. 7 root root 4096 Nov 12 08:45 /tmp
Re: Performance Graph printout to PDF failing on file permis
Posted: Mon Nov 12, 2018 3:53 pm
by tgriep
Lets see if we can catch the full error from the Apache log files.
Run the following as root.
Then in the GUI, try and download a graph as a PDF file and if there are any errors in the screen running the tail command, post them here.
Thanks.