Hi,
We have a system running nagios XI 2014 R1.2. Sometime The filesystem is full.
So, I excuted the find command in linux to find a reason.
root@nagiosxi var]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda2 9.7G 9.3G 0 100% /
tmpfs 939M 0 939M 0% /dev/shm
/dev/vda1 194M 34M 151M 18% /boot
[root@nagiosxi var]# find /usr -type f -size +1048576
/usr/local/nagiosxi/var/cleaner.log-20140629
[root@nagiosxi var]# ls -alh /usr/local/nagiosxi/var/cleaner.log-20140629
-rw-r--r-- 1 nagios nagios 4.9T 2014-06-30 09:26 /usr/local/nagiosxi/var/cleaner.log-20140629
As a result of filesystem Full, we can't access the web pages because we can'nt access db.
The strange strings(^@) are included in this files.
What is the purpose of cleaner.log files located in "/usr/local/nagiosxi/var/" ?
=============================================================
DIR: /usr/local/nagiosxi/nom/checkpoints/nagioscore
NUMFOUND: 10
KEEPING ALL GOOD CHECKPOINTS
DIR: /usr/local/nagiosxi/nom/checkpoints/nagioscore/errors
NUMFOUND: 1
KEEPING ALL ERROR CHECKPOINTS
DIR: /usr/local/nagiosxi/nom/checkpoints/nagiosxi
NUMFOUND: 10
KEEPING ALL SNAPSHOTS
PROCESSED 0 COMMANDS
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@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^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
What is the purpose of cleaner.log files located in "/usr/lo
Re: What is the purpose of cleaner.log files located in "/us
The "cleaner.log" logs various cleanup jobs that are run on a cron schedule (removing old nom checkpoints, nagiosql backups, etc.).
You shouldn't be concerned with the cleaner.log, but with the fact that you are running out of disk space...
You can delete old files in the "/var/log" directory and sub-directories. You can also delete whatever you don't need in the /tmp/" directory. Maybe you have some old backups that you can delete in "/store/backups/nagiosxi".
After you clear some room, add more disk space to your Nagios XI server. Please, review our Nagios XI - Resizing the VM Disk SIze" document here:
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
Note: Almost always, when you run out of disk space, you will end up with database errors. You will need to run our database repair script to fix corrupted tables:
Code: Select all
grep cleaner /etc/cron.d/nagiosxiYou can delete old files in the "/var/log" directory and sub-directories. You can also delete whatever you don't need in the /tmp/" directory. Maybe you have some old backups that you can delete in "/store/backups/nagiosxi".
After you clear some room, add more disk space to your Nagios XI server. Please, review our Nagios XI - Resizing the VM Disk SIze" document here:
http://assets.nagios.com/downloads/nagi ... M_Disk.pdf
Note: Almost always, when you run out of disk space, you will end up with database errors. You will need to run our database repair script to fix corrupted tables:
Code: Select all
cd /usr/local/nagiosxi/scripts
./repairmysql.sh nagios
./repairmysql.sh nagiosql
Be sure to check out our Knowledgebase for helpful articles and solutions!