Enhancement #3340
Dashboard antivirus update status
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-antivirus | |||
Target version: | v6.7 | |||
Resolution: | NEEDINFO: | No |
Description
The antivirus database update status shown on the dashboard is sometimes reporting a false not up to date status.
This is due to an incomplete regexp which evaluates the last database modification.
Associated revisions
dashboard/antivirus: regexp to evaluate all db files. Refs #3340
History
#1 Updated by Filippo Carletti over 5 years ago
- Status changed from NEW to TRIAGED
- Target version set to v6.7
- % Done changed from 0 to 20
Here's a fix I tested with success:
--- /tmp/Antivirus.php 2015-09-29 15:26:53.000000000 +0200 +++ /usr/share/nethesis/NethServer/Module/Dashboard/SystemStatus/Antivirus.php 2016-01-12 12:03:08.450511164 +0100 @@ -36,7 +36,7 @@ private function readAntivirus() { $max = 0; - $fileList = glob('/var/lib/clamav/*.{cvd,cld}', GLOB_BRACE); + $fileList = glob('/var/lib/clamav/*.{cvd,cld,ndb,hdb,cdb}', GLOB_BRACE); foreach ($fileList as $file) { $changeTime = filemtime($file); if ($changeTime > $max) {
#2 Updated by Filippo Carletti over 5 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Filippo Carletti
- % Done changed from 20 to 30
#3 Updated by Filippo Carletti over 5 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Filippo Carletti) - % Done changed from 30 to 60
#4 Updated by Filippo Carletti over 5 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
Package in nethserver-testing:
nethserver-antivirus-1.1.4-1.1.ga6128fe.ns6.noarch.rpm
- take note of Last update in dashboard/antivirus
- update to new package
- Last update should be closer to current time
Note: date shown on dashboard uses GMT.
To discover the last antivirus update:
ls -lt /var/lib/clamav | head
#5 Updated by dz0 0te over 5 years ago
- Assignee set to dz0 0te
#6 Updated by dz0 0te over 5 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
dz0 0te) - % Done changed from 70 to 90
System and Package Version installed
VM KVM - Clean install of Nethserver 6.7 fully updated
Package Installed: nethserver-antivirus-1.1.4-1.ns6.noarch
Other Package installed: File server, Web server
Test Original Problem
Created 2 identical VM, one with updated package
Install Updated Package
yum --enablerepo=nethserver-testing update nethserver-antivirus-1.1.4-1.1.ga6128fe.ns6.noarch
Test Results after update
Test case 1:
after some time of work, the VM with updated package show a correct/closer time to the current one
Verified or Reopen
Verified
Note
#7 Updated by Giacomo Sanchietti over 5 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
Released in 6.7/nethserver-updates
nethserver-antivirus-1.1.5-1.ns6.noarch.rpm
Released in 7.2.1511/nethserver-updates
nethserver-antivirus-1.1.5-1.12.gc84dd84.ns7.noarch.rpm