Enhancement #2686

Antivirus dashboard widget

Added by Giacomo Sanchietti over 7 years ago. Updated over 7 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-antivirus
Target version:v6.5-final
Resolution: NEEDINFO:No

Description

Create a dashboard widget which displays freshclam update status.
The widget should also display a warning if freshclam fails the update.

Alert logic can be merged from #2678.


Related issues

Related to NethServer 6 - Enhancement #2678: Mail filter: remove clamav warning CLOSED

Associated revisions

Revision aff7c046
Added by Giacomo Sanchietti over 7 years ago

Web UI: remove antivirus warning. Refs #2686 #2678

Revision dcbbf980
Added by Giacomo Sanchietti over 7 years ago

Dashboard: add update status widget. Refs #2686 #2678

Revision 3590d73c
Added by Davide Principi over 7 years ago

Simplified alarm logic. Refs #2686

The warning is shown if antivirus DB files are older than 72 hours.

History

#1 Updated by Davide Principi over 7 years ago

  • Subject changed from Mail filter: add dashboard widget with db update status to Antivirus dashboard widget

I would implement this in package nethserver-antivirus.

#2 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

#3 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from TRIAGED to ON_DEV
  • Assignee set to Giacomo Sanchietti
  • % Done changed from 20 to 30

#4 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_DEV to MODIFIED
  • % Done changed from 30 to 60

#5 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 60 to 70
New packages in nethserver-testing:
  • nethserver-mail-filter-1.1.4-3.0gitaff7c046.ns6.noarch.rpm
  • nethserver-antivirus-1.0.6-1.0gitdcbbf980.ns6.noarch.rpm

Notification has been removed from nethserver-mail-filter package.

Test case 1

  • Grab the freshclam mirrors from freshclam.conf:
        # grep Mirror /etc/freshclam.conf 
    DatabaseMirror db.it.clamav.net
    DatabaseMirror db.local.clamav.net
    
  • In DNS UI module, define any DatabaseMirror as server self alias, to fake freshclam update failures.
  • Run freshclam and verify it's state is error:
        # cat /var/log/clamav/freshclam-updates.log 
    error 2014-03-04T11:52:50Z
    
  • Now fake stale db signatures:
        # touch -d @$((`date +%s` - (3600*24*7))) /var/lib/clamav/*
    
  • Open dashboard: you must see the update status error inside the widget

Test case 2

  • Remove DNS aliases
  • Restore signatures access/modification timestamp in /var/lib/clamav/*
  • Run freshclam
  • Open dashboard: you must see a green update status inside the widget

#6 Updated by Davide Principi over 7 years ago

  • Assignee set to Davide Principi

#7 Updated by Davide Principi over 7 years ago

  • Status changed from ON_QA to TRIAGED
  • Assignee deleted (Davide Principi)
  • % Done changed from 70 to 20

#8 Updated by Davide Principi over 7 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

Test case

  • Check light is green
        # touch -d @$((`date +%s` - 5)) /var/lib/clamav/*
    
  • Check light is red
        # touch -d @$((`date +%s` - 3600*73)) /var/lib/clamav/*
    

#9 Updated by Davide Principi over 7 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

#10 Updated by Giacomo Sanchietti over 7 years ago

  • Status changed from ON_QA to VERIFIED
  • % Done changed from 70 to 90

Marking as VERIFIED.

#11 Updated by Davide Principi over 7 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100

In nethserver-updates:
nethserver-mail-filter-1.1.5-1.ns6.noarch.rpm
nethserver-antivirus-1.0.7-1.ns6.noarch.rpm

Also available in: Atom PDF