mod: monitor_core_module.inc.php function: monitorRkHunter - Cron Issue
Mod: monitor_core_module.inc.php Function: monitorRkHunter (and maybe other)
---- CODE QUOTE START ----
[ ..CUT.. ]
$this->monitorServer();
$this->monitorDiskUsage();
$this->monitorMemUsage();
$this->monitorCpu();
$this->monitorServices();
$this->monitorMailLog();
$this->monitorMailWarnLog();
$this->monitorMailErrLog();
$this->monitorMessagesLog();
$this->monitorISPCCronLog();
$this->monitorFreshClamLog();
$this->monitorClamAvLog();
$this->monitorIspConfigLog();
$this->monitorSystemUpdate();
$this->monitorMailQueue();
$this->monitorRaid();
$this->monitorRkHunter();
$this->monitorFail2ban();
$this->monitorSysLog();
[ ..CUT.. ]
function monitorRkHunter(){
/*
* This monitoring is expensive, so do it only once a day
*/
$min = date('i');
$hour = date('H');
if ($min != 0 && $hour != 23) return;
[ ..CUT.. ]
---- CODE QUOTE END ----
I noticed rkhunter start too frequently .. the function is called at the bottom of the list and when time arrive to call that function the 'not run' time check fails ( $min is already not 0)
I think it's better to change the 'not run now' time conditions .. or put the functions in which there is such test at the top of the list.
Bye..
bajodel.