Skip to content

Commit 3870860

Browse files
committed
Changed monitoring module to run rkhunter only once in 24 hours.
1 parent 45b8e41 commit 3870860

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/mods-available/monitor_core_module.inc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,8 @@ function monitorRkHunter(){
701701
* This monitoring is expensive, so do it only once a hour
702702
*/
703703
$min = date('i');
704-
if ($min != 0) return;
704+
$hour = date('H');
705+
if ($min != 0 && $hour != 23) return;
705706

706707
global $app;
707708
global $conf;

0 commit comments

Comments
 (0)