Performance Graph printout to PDF failing on file permission
Performance Graph printout to PDF failing on file permission
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
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Performance Graph printout to PDF failing on file permis
The tmp directory these are placed in when created is
Code: Select all
/usr/local/nagiosxi/tmpRe: Performance Graph printout to PDF failing on file permis
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Performance Graph printout to PDF failing on file permis
What error are you seeing?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.
Re: Performance Graph printout to PDF failing on file permis
scottwilkerson wrote:What error are you seeing?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.
"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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Performance Graph printout to PDF failing on file permis
Can you show the output of the following:
Code: Select all
ls -ld /usr/local/nagiosxi/tmp
grep nag /etc/group
getenforceRe: Performance Graph printout to PDF failing on file permis
Hello Scott,
Printouts are below,
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
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Performance Graph printout to PDF failing on file permis
I believe it may also need to touch a file in /tmp
What are the permissions here
What are the permissions here
Code: Select all
ls -ld /tmpRe: Performance Graph printout to PDF failing on file permis
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
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.
Run the following as root.
Code: Select all
tail -f /var/log/httpd/*_logThanks.
Be sure to check out our Knowledgebase for helpful articles and solutions!