What's in /usr/local/nagiosxi/tmp?
What's in /usr/local/nagiosxi/tmp?
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?
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
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
Cheers,
- Cole
- Cole
Re: What's in /usr/local/nagiosxi/tmp?
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
You can use a find command to safely target only the old files. Run this as the root user: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?
Code: Select all
find /usr/local/nagiosxi/tmp/ -type f -mtime +30 -delete-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).