No Data for Alert Statistic in Trellix NSM
1. Introduction
- User unable to view all the alert statistic data
- This issue is important to resolve as the data showing summary of alert reported
2. Symptoms
- Loss of data on how much alert is calculated.
- The error messages shows “Retry in a few minutes”
3. Prerequisites/Initial Checks
- Trellix support requests below information for their troubleshooting.
- Infocollector logs
- All Table Backup
- Screenshot of Alert Statistic page
- Fault report for the last 7 days
- User Activity report for the last 7 days
4. Common Causes and solution
- This issue is caused by the missing tables in MariaDB.
- Trellix support advice is to rebuild all the missing tables.
- Below is all the table that is missing in MariaDB
- iv_app_viz_weekly_data
- iv_perf_mon_last_update_time
- iv_perf_mon_hourly_data
- iv_seq_trend_day_data_id
- iv_alert_type6_alerts
- iv_seq_trend_hourly_data_id
- iv_app_viz_hourly_data
- iv_app_viz_last_update_time
- iv_perf_mon_weekly_data
- iv_perf_mon_daily_data
- iv_trend_hourly_data
- iv_trend_day_data
- iv_app_viz_monthly_data
- iv_perf_mon_monthly_data
- iv_attacks_seen_on_specific_day
5. Solving Steps
- Turned off watchdog service
- watchdog stop -- stops watchdog service
- watchdog status -- check to confirm service is stopped
- Logged into shell to perform a database table error check via the following commands
- cd opt/IPSManager/App/bin
- sudo -u admin ./dbcheck_installer.sh error
- Then tailed the logs created by this script to see which tables are having issues
- cd /opt/IPSManager/App/logs/
- tail -f dbconsistency.log
- Then went into our MariaDB service on the Manager to and set the current database to "LF".
- cd opt/IPSManagar/Mariadb/bin
- ./mariadb -u root -p (once in MariaDB) USE lf;
- From here, began adding new tables to the database that were requested of us per Trellix backend engineering team's instructions. To validate the actions, we compared results via the command below to make sure the new tables were made successfully.
- SHOW TABLES LIKE 'tablename%';
- The watchdog service was now turned back on.
- watchdog start -- starts watchdog service
- watchdog status -- check to confirm service is stopped
- Went into the Manager WebUI and noticed data under Manager > Maintenance > Database Pruning > Alert Statistics is revealing more positive behavior than before changes today. However, it will require some time for the database tables to aggregate new data before the statistical data will become more accurate.
6. Conclusion
- We hope this guide helped you resolve the Alert Statistic not showing data issue. By following these steps, you should now be able to identify and resolve the issue
Note: Kindly refer to the Trellix support team for more information and accuracy in troubleshooting.