Those tables are views that we are using for a light integration between products, so in theory they won't affect. We query those tables every 5 min.ssax wrote:I'm not sure what these tables are but they look crashed:
If those are in the nagios database I wouldn't recommend that you use our databases when adding new tables/etc, you should create a separate database for them so it doesn't impact any of the functionality of the XI app (backup scripts/etc).Code: Select all
'SAIM_comments_view', NULL 'SAIM_old_API_Values_view', NULL 'SAIM_old_view', NULL 'SAIM_view', NULL
I can talk with DBA, so I can request information, but I can't have admin rights.ssax wrote: You may need to reach out to whoever manages the database to get access to information.
MySQL [nagiosXI]> SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagiosXI');ssax wrote: I need the one for the nagiosxi DB as well:
- You can get the X.X.X.X/user/pass from /usr/local/nagiosxi/html/config.inc.php
Code: Select all
echo "SELECT table_name AS 'Table', round(((data_length + index_length) / 1024 / 1024), 2) 'Size in MB' FROM information_schema.TABLES WHERE table_schema IN ('nagiosxi');" | mysql -h X.X.X.X -uyourusername -p'yourpassword' nagiosXI --table
+---------------------+------------+
| Table | Size in MB |
+---------------------+------------+
| xi_auditlog | 3.66 |
| xi_auth_tokens | 0.31 |
| xi_cmp_trapdata | 0.03 |
| xi_cmp_trapdata_log | 0.03 |
| xi_commands | 0.02 |
| xi_eventqueue | 0.03 |
| xi_events | 0.75 |
| xi_meta | 12.52 |
| xi_mibs | 0.05 |
| xi_options | 0.06 |
| xi_sessions | 0.03 |
| xi_sysstat | 0.03 |
| xi_usermeta | 0.36 |
| xi_users | 0.06 |
+---------------------+------------+
14 rows in set (0.00 sec)
I thought it could be a problem with crashed tables, but mysqlcheck says that all tables are OK.