Page 1 of 1

Scheduled Reports tmp directory

Posted: Thu Dec 09, 2021 4:55 am
by andyb4u
Hi,

If I schedule a page to be run as a scheduled report with a pdf attachment, I notice that it creates that pdf in the /usr/local/nagiosxi/tmp/ directory. The pdf file does not get automatically deleted. However, a scheduled report with a pdf attachment, created for an availability report does not leave behind a pdf in this directory. Is this normal behaviour?

Re: Scheduled Reports tmp directory

Posted: Thu Dec 09, 2021 4:38 pm
by benjaminsmith
Hi Andy,

Which version of Nagiso XI are you currently using. I tested this out and did not see that some behavior.

There is a log file for scheduled reports, so let's check that for any errors.

Code: Select all

tail -n 100 /usr/local/nagiosxi/var/scheduledreporting.log
Also, the reports run on cron jobs, so let's check the cron log as well.

Code: Select all

tail -n 50 /var/log/cron
Please post those to the thread. Thanks, Benjamin

Re: Scheduled Reports tmp directory

Posted: Fri Dec 10, 2021 2:50 am
by andyb4u
Hi Benjamin,

We are using XI 5.8.7.

I've attached the outputs of the commands.

Thanks,
Andy

Re: Scheduled Reports tmp directory

Posted: Fri Dec 10, 2021 4:52 pm
by benjaminsmith
Hi Andy,

Thanks for reaching out to us on this issue. I was able to re-create this on a Ubuntu system but not on my Cent system for some reason. I'm working with QA to get a bug report filed. In the meantime, I would clear out the temp directory so this directory is not using excess space.

Let me know if you have any questions.

--Benjamin