/** * Check system health */ protected function systemCheck() { $this->systemCheckDiskUsage(); if (!empty($this->sysCheckMessageList)) { if ($this->getApplication()->getConfigValue('syscheck', 'growl', 0)) { // Growl notification $message = 'WARNING:' . "\n\n" . implode("\n", $this->sysCheckMessageList); $this->sendGrowlMessage('CliTools :: System Check Warnings', $message); } if ($this->getApplication()->getConfigValue('syscheck', 'wall', 0)) { // Local wall message $msgPrefix = ' - '; $message = ' -- CliTools :: System Check Warnings --' . "\n\n"; $message .= $msgPrefix . implode("\n" . $msgPrefix, $this->sysCheckMessageList); $message .= "\n\n" . '(This warning can be disabled in /etc/clitools.ini)'; UnixUtility::sendWallMessage($message); } } }