-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[database::mysql::plugin] wrong data on table-frag with databases-size mode #4761
Comments
For exemple, result for sql command (Found in plugin pack script) : mysql> SELECT table_schema, table_name, engine, data_free, data_length+index_length as data_used, (DATA_FREE / (DATA_LENGTH+INDEX_LENGTH)) as TAUX_FRAG FROM information_schema.tables WHERE table_type = 'BASE TABLE' AND engine IN ('InnoDB', 'MyISAM'); |
Hi @gagzou,
|
Hi, |
I prefer not to mix communication channels, next time ;-) Here is an extract of the result you sent me:
It seems to make much more sense than the previous method. We'll implement this in a next release. |
Hi, do you have any news regarding the resolution of this bug ? |
Hello, :) |
Hi @gagzou the fix is on track for the next release. |
The fix will be publicly available on july 11th. |
Hi,
The following command gives me a surprising result :
/usr/lib/centreon/plugins//centreon_mysql.pl --plugin=database::mysql::plugin --host=x.x.x.x --username='xxx' --password='***' --port='' --mode=databases-size --filter-database='^(?!(information_schema|performance_schema|test))' --filter-perfdata='database' --warning-table-usage='' --critical-table-usage='' --warning-table-free='' --critical-table-free='' --warning-table-frag='15' --critical-table-frag='30' --warning-db-usage='' --critical-db-usage='' --warning-db-free='' --critical-db-free='' --warning-total-usage='' --critical-total-usage='' --warning-total-free='' --critical-total-free='' --verbose
CRITICAL: Database 'xxx' Table 'acteur' Fragmentation: 85.33 % - Table 'xxx' Fragmentation: 85.33 % - Table 'xxx' Fragmentation: 64.00 % - Table 'xxx' Fragmentation: 256.00 % - Table 'xxxx' Fragmentation: 256.00 % - Table 'xxx' Fragmentation: 64.00 % - Table 'xxx' Fragmentation: 85.33 % - Table 'xxx' Fragmentation: 96.00 % - Table 'xxx' Fragmentation: 256.00 % - Table 'xxx' Fragmentation: 256.00 % - Table 'xxx' Fragmentation: 128.00 % - Table 'xxx' Fragmentation: 256.00 % - Table 'xxx' Fragmentation: 85.33 % - Table 'xxx' Fragmentation: 85.33 % - Table 'xxx' Fragmentation: 64.00 % - Table 'xxx' Fragmentation: 85.33 % - Table 'xxx' Fragmentation: 85.33 % - Table 'xxxx' Fragmentation: 160.00 % - Table 'xxx' Fragmentation: 128.00 %
Some results are greater than 100%
uname -a ; cat /etc/redhat-release
Linux xxx 3.10.0-1160.102.1.el7.x86_64 Support of connecting via Unix-socket for MySQL checks #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
CentOS Linux release 7.9.2009 (Core)
Expected result
A consistent result in % (0-100)
Actual result
exemple : Table 'xxx' Fragmentation: 256.00 %
Best regards,
The text was updated successfully, but these errors were encountered: