From 99a4df5fc2b2b476c5860176449e4d862b92f78f Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Fri, 25 Mar 2016 10:53:28 -0700 Subject: [PATCH] Get rid of once-per-week check of SMART database update since it does not work and besides is a possible exploit vector: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804299 --- plugins/dynamix/scripts/monitor | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/dynamix/scripts/monitor b/plugins/dynamix/scripts/monitor index 057fe0ec3..10c1e83bf 100755 --- a/plugins/dynamix/scripts/monitor +++ b/plugins/dynamix/scripts/monitor @@ -195,11 +195,6 @@ function check_usage($name,$used,$text,$info) { } } -// check once a week for smart database updates -$smartDB = '/usr/share/smartmontools/drivedb.h.lastcheck'; -$interval = 3600*24*7; // one week -if (!file_exists($smartDB) || (time()-filemtime($smartDB)>=$interval)) exec('/usr/sbin/update-smart-drivedb 1>/dev/null 2>&1'); - // check array devices foreach ($disks as $disk) { $name = $disk['name'];