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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
adamsj
Posts: 12
Joined: Wed May 15, 2024 4:52 pm

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

Post 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?
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

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

Post 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
Cheers,
- Cole
elockman
Posts: 2
Joined: Tue Jul 30, 2024 11:22 pm

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

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