Page 1 of 1

What's in /usr/local/nagiosxi/tmp?

Posted: Tue Jan 13, 2026 12:26 pm
by adamsj
I'm trying to clean up space on our Nagios server, and this is the directory I'm focused on right now. It's huge and contains files going back to 2022. Not very tmporary, if you ask me. Can I delete some of this stuff without harm? How far back is it safe to delete?

Re: What's in /usr/local/nagiosxi/tmp?

Posted: Tue Jan 13, 2026 1:41 pm
by cdietsch
Hi @adamsj,

The /usr/local/nagiosxi/tmp folder contains XI temporary files such as the phpmailer log, logs from upgrade scripts, and also temporary files from some XI wizards and reports.

You should be able to delete the files in there without harm, although I would still recommend backing them up and storing them somewhere else (temporarily) as you confirm this.

There are a few other forum posts regarding this directory I would recommend you look at:
viewtopic.php?t=58171
viewtopic.php?t=50163

There is also a mention of /usr/local/nagiosxi/tmp in the XI Log Locations doc that mentions the log files stored there.
https://assets.nagios.com/downloads/nag ... ptions.pdf

Re: What's in /usr/local/nagiosxi/tmp?

Posted: Fri Jan 23, 2026 1:37 am
by elockman
cdietsch wrote: Tue Jan 13, 2026 1:41 pm Hi @adamsj,

The /usr/local/nagiosxi/tmp folder contains XI temporary files such as the phpmailer log, logs from upgrade scripts, and also temporary files from some XI wizards and reports.

You should be able to delete the files in there without harm, although I would still recommend backing them up and storing them somewhere else (temporarily) as you confirm this.

There are a few other forum posts regarding this directory I would recommend you look at:
viewtopic.php?t=58171
viewtopic.php?t=50163

There is also a mention of /usr/local/nagiosxi/tmp in the XI Log Locations doc that mentions the log files stored there.
https://assets.nagios.com/downloads/nag ... ptions.pdfgeometry dash
adamsj wrote: Tue Jan 13, 2026 12:26 pm I'm trying to clean up space on our Nagios server, and this is the directory I'm focused on right now. It's huge and contains files going back to 2022. Not very tmporary, if you ask me. Can I delete some of this stuff without harm? How far back is it safe to delete?
You can use a find command to safely target only the old files. Run this as the root user:

Code: Select all

find /usr/local/nagiosxi/tmp/ -type f -mtime +30 -delete
-type f: Only targets files (leaves the directory structure intact).

-mtime +30: Only targets files older than 30 days.

-delete: Removes them instantly. (Omit this first if you want to see a list of what would be deleted).