Performance Graph printout to PDF failing on file permission

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Asckey
Posts: 15
Joined: Tue Feb 18, 2014 11:31 am

Performance Graph printout to PDF failing on file permission

Post 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
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

Post by scottwilkerson »

The tmp directory these are placed in when created is

Code: Select all

/usr/local/nagiosxi/tmp
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Asckey
Posts: 15
Joined: Tue Feb 18, 2014 11:31 am

Re: Performance Graph printout to PDF failing on file permis

Post 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.
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

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Asckey
Posts: 15
Joined: Tue Feb 18, 2014 11:31 am

Re: Performance Graph printout to PDF failing on file permis

Post 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.
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

Post by scottwilkerson »

Can you show the output of the following:

Code: Select all

ls -ld /usr/local/nagiosxi/tmp
grep nag /etc/group
getenforce
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Asckey
Posts: 15
Joined: Tue Feb 18, 2014 11:31 am

Re: Performance Graph printout to PDF failing on file permis

Post 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
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

Post by scottwilkerson »

I believe it may also need to touch a file in /tmp

What are the permissions here

Code: Select all

ls -ld /tmp
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Asckey
Posts: 15
Joined: Tue Feb 18, 2014 11:31 am

Re: Performance Graph printout to PDF failing on file permis

Post by Asckey »

Hello Scott,

Code: Select all

drwxrwxrwt. 7 root root 4096 Nov 12 08:45 /tmp
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Performance Graph printout to PDF failing on file permis

Post by tgriep »

Lets see if we can catch the full error from the Apache log files.
Run the following as root.

Code: Select all

tail -f /var/log/httpd/*_log
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked