Red Hat Insights second malware scan not updating in dashboard
Hello,
I have installed this week the malware collector for Red Hat Insights used for a Dev Red Hat linux licence running RHEL 9.1.
Having launched a first scan on 3 January, it worked smoothly and the results could be seen in the dashboard of the Insights console.
A second malware scan was run today with the CLI (actually twice), but this time, the results can't be seen in the Insight Malware dashboard.
I don't think it is because of a firewall setting since it worked right on the first scan but who knows. As the documentation suggested to do a weekly scan because of the load it generates - when scanning many workstations - I wonder if there is maybe a limited usage of scans, eg no more than once a week?
Many thanks,
Alex
Responses
Hi Alexandre,
You most probably are facing a bug in the Red Hat Insights SaaS solution.
Please open a support case with Red Hat or file a bug report on bugzilla. :)
Regards,
Christian
Hi Alexandre,
I just want to let you know that it must be an issue that seems to affect only random customers.
I ran a malware scan on several systems, and the results are reflected correctly on the console. :)
Regards,
Christian
Hi Alexandre,
Please try if the following workaround (complete removal of insights-client and re-setup) resolves the problem ... :)
sudo insights-client --unregister
sudo dnf remove insight-client
sudo rm -r /etc/insights-client
sudo rm -r /etc/motd.d/insights-client
sudo rm -r /var/cache/insights
sudo rm -r /var/lib/insights
sudo rm -r /var/log/insights-client
sudo rm -r /var/tmp/insights-client
sudo dnf install insight-client
sudo reboot
sudo insights-client --register
sudo insights-client --collector malware-detection
sudo vi /etc/insights-client/malware-detection-config.yml
edit -> test_scan: false
sudo insights-client --collector malware-detection
Regards,
Christian
Hi Alexandre,
I have shared the link to this discussion with the team, so they may find your comments. :)
By the way, you can provide feedback on https://console.redhat.com/insights/dashboard.
Regards,
Christian
Hi Alexandre,
The product manager of the Insights team just came back to me - and here is what he told me ->
Quote :
Thank you for alerting me to that Portal discussion. It sounded familiar, so I went digging and found
this bug, which sounds incredibly similar - https://bugzilla.redhat.com/show_bug.cgi?id=2154098
I will follow-up with the team and see what further investigation has been done and get back to you when I know more.
You may want to add yourself to the "CC List" ... :)
Regards,
Christian
Think I found the bug. The scan result is only uploaded when test_scan is set to true. When you set it to false, to do an actual scan, 'last scan' is never updated in the console.redhat.com. (Well, for some reason we have one server that it still works on, but all others doesn't.)
Hi Siv Elisabeth,
That's an already known fact ... the Insights team is working on a solution as you can see in the
bugzilla. It might take some time to fix the problem, as it affects only random systems/users. :)
Regards,
Christian
Ah, my bad - in this thread I got the impression that it was only the first time it worked. But if I set it back to test_scan, it will change 'last scan'.
But I noticed now in the bugzilla, that it was mentioned there. I was looking most at the last post there - that said things was crashing, which I don't get the impression of on my servers. It looks like it successfully uploads the report.
The only difference between the (only) server that works, and all the others that doesn't - is that the one that works has a .'last_malware-detection_filesystem_scan' file that always gets updated with the time it scans. All other doesn't.
Hi Alexandre,
When you create a bootable Linux USB medium with e.g. a tool like Fedora media writer, the tool
creates new partitions - so, nothing to worry about. RHEL is known to be one of the most secure
systems to use. Try to avoid third party software (if possible) - then you are on the safe side ... :)
Regards,
Christian
Hi Alexandre,
I want to provide a short update on troubleshooting progress ... the Red Hat Insights engineers seem to have located the root
cause : It is a new timer that had been added to insights-client which prevents apps running too long. Unfortunately malware-
detection usually takes longer than two minutes to perform a scan. A patch to fix this behavior is in the works and will soon be released. Thanks a bunch to the Insights engineers, for their continuous efforts to solving the problem as quick as possible ! :)
Regards,
Christian
Hi Alexandre,
Once you have a working environment, you can download the 'test file' insights.zip provided by Mark Huth.
Move the file to the /tmp directory and execute the commands below as the root user to check if it works. :)
export INSIGHTS_GPG=false
export BYPASS_GPG=false
export EGG=/tmp/insights.zip
insights-client --collector malware-detection
Regards,
Christian