We recently experienced an issue where / was full and discovered /usr/local/nagiosxi/tmp had GBs of PDF reports, snmpwalk data, logs, etc dating back to 2017.
1. What is the purpose of /usr/local/nagiosxi/tmp?
2. Doesn't XI perform automatic housekeeping on /usr/local/nagiosxi/tmp?
3. We encounter a full drive issue at least annually, what is your recommendation for a clean-up checklist during such events?
Disk clean-up & purpose of /usr/local/nagiosxi/tmp
Disk clean-up & purpose of /usr/local/nagiosxi/tmp
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
1. Temporary files for XI (switch/router wizard temp files, reports, logs, etc)
2. No, it doesn't currently.
3. Check these:
I essentially just do this every time:
That's the most accurate way to do it that I'm aware, you can search for large files (google linux find large files) but this method is the most accurate as it could be a million tiny files consuming the space and this will show you where they reside.
If you have questions, just post them before deleting stuff you're unsure of for the nagios specific data.
Thank you
2. No, it doesn't currently.
3. Check these:
Code: Select all
/store/backups/*
/usr/local/nagiosxi/tmp/*
/usr/local/nagios/var/*
/var/log/*
/var/log/snmptt/*
/var/spool/mail/*Code: Select all
cd /
du -sh *
cd large directory
du -sh *
cd next directory
du -sh *
keep doing it until you find what is eating the space
cd /
du -sh *
cd large director2
du -sh *
rinse, repeatIf you have questions, just post them before deleting stuff you're unsure of for the nagios specific data.
Thank you
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
So it would be advisable to setup a cron to delete files order than 30 days from /usr/local/nagiosxi/tmp/ ?
eg:
eg:
Code: Select all
find /usr/local/nagiosxi/tmp/ -type f -mtime +30 -deleteNagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
Yeah, that should work, I would probably exclude these files from there though:
See here:
https://superuser.com/questions/397307/ ... using-find
Code: Select all
components_api_versions.xml
configwizards_api_versions.xml
phpmailer.log
upgrade.loghttps://superuser.com/questions/397307/ ... using-find
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
Why are those exclusion files in tmp if required?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
They aren't required, I was having you save them for your (and our) benefit to help you debug if you have an issue. They should be recreated automatically.
Feel free to delete whatever you want in there.
Feel free to delete whatever you want in there.
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
Okay, I've excluded them anyway.
Thanks.
Thanks.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
Glad to hear it! Are we okay to lock this topic and mark it as resolved or do you have any related questions?
Re: Disk clean-up & purpose of /usr/local/nagiosxi/tmp
We're good. My script is taking care of clean-up now.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2