Re: Tactical Overview, Ops Center, Ops Screen Problems
Posted: Fri Mar 01, 2013 12:47 pm
Just to clarify, the box that is out of space is the one I am trying to migrate FROM, for this reason.
Support for Nagios products and services
https://support.nagios.com/forum/
Code: Select all
cd /usr/local/nagios/share/perfdata
rm -rf *.rrd.xmlCode: Select all
service postgresql restart
service mysqld restartabrist wrote:If the XI box is out of space, you will have issues with many parts of XI. Run the following commands from the cli and post the output in a code wrap. This will help us track down where the space went.
I bet the problems are in /usr or /var, they always are.
Code: Select all
cd / df -i du -hsx * | sort -rh | head -10 find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {} find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
Code: Select all
[root@nagiosxivm /]# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
7122336 206839 6915497 3% /
tmpfs 160609 1 160608 1% /dev/shm
/dev/sda1 25688 57 25631 1% /boot
tmpfs 160609 71 160538 1% /var/nagiosramdisk
[root@nagiosxivm /]# du -hsx * | sort -rh | head -10
du: cannot access `proc/26395/task/26395/fd/4': No such file or directory
du: cannot access `proc/26395/task/26395/fdinfo/4': No such file or directory
du: cannot access `proc/26395/fd/4': No such file or directory
du: cannot access `proc/26395/fdinfo/4': No such file or directory
du: cannot access `proc/26398': No such file or directory
du: cannot access `proc/26399': No such file or directory
du: cannot access `proc/26400': No such file or directory
du: cannot access `proc/26402': No such file or directory
du: cannot access `proc/26404': No such file or directory
du: cannot access `proc/26406': No such file or directory
du: cannot access `proc/26408': No such file or directory
du: cannot access `proc/26409': No such file or directory
du: cannot access `proc/26410': No such file or directory
du: cannot access `proc/26412': No such file or directory
du: cannot access `proc/26413': No such file or directory
22G usr
16G var
2.3G store
290M lib
209M tmp
81M boot
58M etc
24M root
9.7M sbin
6.3M bin
[root@nagiosxivm /]# find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
{a whole list of 'No such file or directory' items in addition to the below:}
1.1G ./var/lib/mysql/mysql-bin.000003
1.1G ./var/lib/mysql/mysql-bin.000004
1.1G ./var/lib/mysql/mysql-bin.000005
1.1G ./var/lib/mysql/mysql-bin.000006
1.1G ./var/lib/mysql/mysql-bin.000007
1.1G ./var/lib/mysql/mysql-bin.000008
1.1G ./var/lib/mysql/mysql-bin.000010
1.1G ./var/lib/mysql/mysql-bin.000011
1.1G ./var/lib/mysql/mysql-bin.000012
1.1G ./store/backups/nagiosxi/1358874081.tar.gz
[root@nagiosxivm /]# find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
{a whole list of 'No such file or directory' items in addition to the below:}
6.7G ./usr/local/nagios/var
13G ./var/lib/mysql
13G ./var/lib
14G ./usr/local/nagios/share/perfdata
14G ./usr/local/nagios/share
16G ./var
20G ./usr/local/nagios
21G ./usr/local
22G ./usr
41G .
When I run the command to remove the .rrd.xml files that were created, it doesn't appear to do anything. As a result, when I remove the switched to not prompt, I get the following:scottwilkerson wrote:Ok, lets run this to remove the files we just created in the backup process
then you will likely need to restart the followingCode: Select all
cd /usr/local/nagios/share/perfdata rm -rf *.rrd.xmlFinally run the commands abrist suggested so we can find files that can be removed to allow the spaceCode: Select all
service postgresql restart service mysqld restart
Code: Select all
find /usr/local/nagios/share/perfdata -type f -iname "*.rrd.xml" -exec rm -f {} \;Thanks! That appears to have done the trick:abrist wrote:Your command looks right. I just tested it to be sure
Code: Select all
[root@nagiosxivm]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
108G 41G 63G 40% /
tmpfs 7.4G 0 7.4G 0% /dev/shm
/dev/sda1 97M 82M 11M 89% /boot
tmpfs 50M 33M 18M 65% /var/nagiosramdisk
You are safe in removing these old folder and that would really help reduce the increase of disk-space in the export.jbennett wrote:Am I safe to delete these folders? Or are they actually the host groups?
Code: Select all
find /usr/local/nagios/share/perfdata/* -mtime +30 -exec ls -l {} \;Code: Select all
find /usr/local/nagios/share/perfdata/* -mtime +30 -exec rm -rf {} \;