Page 1 of 1

Scheduled Reports

Posted: Mon Oct 16, 2017 6:57 pm
by matson-itops
We run scheduled reports.

We seem to have a ton of old tmp report data under
/usr/local/nagiosxi/tmp/exportreport-nagiosadmin-59e24292d3487

This "tmp" report data dates back to 2016.
a) How far back do we need to keep these?
b) How do we automatically purge this tmp folder to keep it's size under control?

Re: Scheduled Reports

Posted: Tue Oct 17, 2017 10:12 am
by lmiltchev
What is the Nagios XI version that you are currently using?
The old "exportreport*" temp files *should* be deleted... It's possible that there is a bug with an older versions of Nagios XI. In any case, it should be safe to delete these files. You could run the following command from the command line:

Code: Select all

rm -rf /usr/local/nagiosxi/tmp/exportreport*
If you don't want to delete temp files manually, you could set up a cron job, using the above command.

Re: Scheduled Reports

Posted: Tue Oct 17, 2017 11:32 am
by matson-itops
we are running nagios xi 5.4.2

Re: Scheduled Reports

Posted: Tue Oct 17, 2017 12:54 pm
by dwasswa
Thanks @lmiltchev,

@ matson-itops thats an olad version, did you try what @lmiltchev proposed?