This is a cache of https://support.nagios.com/kb/article/nagios-xi-running-out-of-disk-space-on-the-nagios-xi-vm-26.html. It is a snapshot of the page at 2025-05-12T01:10:37.336+0000.
Nagios <strong>xi</strong> - Running Out Of Disk Space On The Nagios <strong>xi</strong> VM
Home » Categories » Products » Nagios xi » Troubleshooting » Common Problems

Nagios xi - Running Out Of Disk Space On The Nagios xi VM

Overview

Running out of HDD space on the Nagios xi server could create a large number of problems - disrupted monitoring, data loss, database corruption, inability to log in the web interface, tons of notifications, etc. If you receive warning or critical alerts about "Root Partition" on localhost, you need to act fast and fix the low HDD space issue. Don't wait until your hard drive is 100% full!

 

Possible Causes

  • Increasing the number of hosts/services has consumed more disk space
  • Large number of backups
  • Large log files

 

Possible Solutions

Always plan ahead and set up your environment in a way that you allow for some growth. You can review the general hardware requirements needed to run Nagios xi here.

It is always a good idea to backup your Nagios xi instance but if you are saving them locally and don't have large enough hard drive, you can run out of space very fast.

By default, the backups are stored in /store/backups/nagiosxi/ directory. It is a good practice to keep an eye on this folder and remove the old backups that you don't need.

Also, there are some mysql and postgres backups in /store/backups/mysql/ and /store/backups/postgresql/ directories. These are created on daily, monthly, and weekly basis by the /root/scripts/automysqlbackup and /root/scripts/autopostgresqlbackup script. Both scripts are run on a cron job. Run the following command to view the crontab:

cat /etc/cron.d/nagiosxi

 

Keep in mind that the /store/backups/mysql/ and /store/backups/postgresql/ directories can also grow quite large. If you need to clear some HHD space you could delete some of the old backups that are no longer needed.

You can disable these two cron jobs if you wish by commenting them out (see below):

# 0 7 * * * root   /root/scripts/automysqlbackup
# 0 8 * * * root   /root/scripts/autopostgresqlbackup

 

Sometimes, your log files can grow out of control, especially if you have a poorly configured checks, system issues, debugging enabled, etc. You can temporarily clear some space by deleting old logs that you might not need.

Tip: In order to view the 10 largest files under /var/log/ directory you can run:

du -a /var/log | sort -n -r | head -n 10

 

Another option is to add another disk and move the existing data to that location. The following KB article walks you through moving /var/log to another disk:

Documentation - Moving /var/log

 

If you don't care about historical data, you can also delete some old nagios log files from the /usr/local/nagios/var/archives/ directory. These files are used for some of the reporting (mainly the legacy reports and the availability report).

 

After clearing some space, you will need to resize the virtual machine by following the steps, outlined in our Nagios xi - Resizing the VM Disk Size document.


 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/



Special Offer For Knowledgebase Visitors! Get a huge discount on Nagios Log Server by clicking below.

Get 60% Off Nagios Log Server!

Did you know? Nagios provides complete monitoring of: Windows, Linux, UNIX, Servers, Websites, SNMP, DHCP, DNS, Email, Storage, Files, Apache, IIS, EC2, and more!

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
API changes in Nagios xi 5.7
Viewed 4089 times since Tue, Feb 23, 2021
Nagios xi - SNMPTT Service generates Cannot find module errors
Viewed 6692 times since Sun, Apr 9, 2017
Nagios xi - Troubleshooting Reports
Viewed 7735 times since Wed, Dec 5, 2018
Pages Not Displaying Correctly
Viewed 8581 times since Mon, Jan 25, 2016
Nagios xi - Notifications Not Sending In xi 5.3.0
Viewed 5651 times since Tue, Oct 4, 2016
Nagios xi - HTTP 500 Error / PHP Parse error - Unexpected $end
Viewed 6986 times since Mon, Jan 25, 2016
Nagios xi - Schedulded Backups No Longer Working
Viewed 8212 times since Fri, Jun 3, 2016
Nagios xi - SNMP MIB Upload Problems
Viewed 9529 times since Mon, Apr 10, 2017
CCM says unapplied changes exist, but none listed
Viewed 6296 times since Mon, Feb 27, 2017
Nagios xi - MRTG Reports SNMP_Session Errors
Viewed 5868 times since Wed, Jul 27, 2016