Database trouble
Posted: Tue Nov 01, 2016 8:45 am
Nagios initially seemed to be running okay with 700 hosts, but the drive ran out of space (originally 50GB) shortly after we added about 400 more hosts.
I expanded the drive to 150GB, ran database repair, but it doesn't seem to have really recovered. We are up to 1250 hosts and 26K services. Nagios won't stay up overnight because the OOM killer goes to work.
Even at 150GB, the drive is nearly out of space again.
What version of Nagios XI are you using?
5.3.0
Linux Distribution and version?
CentOS 6.8
32 or 64bit?
64-bit, 14 CPUs, 32GB of memory
VMware Image or Manual Install of XI?
Manual install
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
No special configuration
I have to run /usr/local/nagiosxi/scripts/repair_databases.sh every day. xi_meta in particular has millions more data records each time:
And its files are huge:
I found another thread from someone else having a similar-sounding problem, so I tried the advice they got, too. Running "mysqlcheck -f -r -u root -pnagiosxi --all-databases --use_frm" takes a long time and shows a lot of things changing from 0 to some number:
I've administered similarly-sized Nagios Core installations (version 3 and version 4) in the past, but Nagios XI's databases are still new to me.
I expanded the drive to 150GB, ran database repair, but it doesn't seem to have really recovered. We are up to 1250 hosts and 26K services. Nagios won't stay up overnight because the OOM killer goes to work.
Even at 150GB, the drive is nearly out of space again.
What version of Nagios XI are you using?
5.3.0
Linux Distribution and version?
CentOS 6.8
32 or 64bit?
64-bit, 14 CPUs, 32GB of memory
VMware Image or Manual Install of XI?
Manual install
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
No special configuration
I have to run /usr/local/nagiosxi/scripts/repair_databases.sh every day. xi_meta in particular has millions more data records each time:
Code: Select all
- recovering (with sort) MyISAM-table 'xi_meta.MYI'
Data records: 84161452Code: Select all
-rw-rw---- 1 mysql mysql 60G Nov 1 06:42 xi_meta.MYD
-rw-rw---- 1 mysql mysql 1.0K Nov 1 07:00 xi_meta.MYI
-rw-rw---- 1 mysql mysql 54G Nov 1 07:37 xi_meta.TMDCode: Select all
nagiosxi.xi_commands
warning : Number of rows changed from 0 to 20
status : OK
nagiosxi.xi_eventqueue
warning : Number of rows changed from 0 to 823593
status : OK
nagiosxi.xi_events
warning : Number of rows changed from 0 to 22528181
status : OK
nagiosxi.xi_incidents OK