Merge pull request #417 from TheSerapher/issue-415-statistics
Adding statistics cron to monitoring
This commit is contained in:
commit
29ce9d2123
@ -55,4 +55,6 @@ $log->logInfo("getAllUserShares " . number_format(microtime(true) - $start, 2) .
|
|||||||
foreach ($aUserShares as $aShares) {
|
foreach ($aUserShares as $aShares) {
|
||||||
$memcache->setCache('getUserShares'. $aShares['id'], $aShares);
|
$memcache->setCache('getUserShares'. $aShares['id'], $aShares);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
require_once('cron_end.inc.php');
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -11,6 +11,12 @@ if (!$user->isAuthenticated() || !$user->isAdmin($_SESSION['USERDATA']['id'])) {
|
|||||||
|
|
||||||
// Fetch settings to propagate to template
|
// Fetch settings to propagate to template
|
||||||
$aCronStatus = array(
|
$aCronStatus = array(
|
||||||
|
'statistics' => array (
|
||||||
|
array( 'NAME' => 'Exit Code', 'STATUS' => $monitoring->getStatus('statistics_status') ),
|
||||||
|
array( 'NAME' => 'Last Message', 'STATUS' => $monitoring->getStatus('statistics_message') ),
|
||||||
|
array( 'NAME' => 'Active', 'STATUS' => $monitoring->getStatus('statistics_active') ),
|
||||||
|
array( 'NAME' => 'Runtime', 'STATUS' => $monitoring->getStatus('statistics_runtime') )
|
||||||
|
),
|
||||||
'auto_payout' => array (
|
'auto_payout' => array (
|
||||||
array( 'NAME' => 'Exit Code', 'STATUS' => $monitoring->getStatus('auto_payout_status') ),
|
array( 'NAME' => 'Exit Code', 'STATUS' => $monitoring->getStatus('auto_payout_status') ),
|
||||||
array( 'NAME' => 'Last Message', 'STATUS' => $monitoring->getStatus('auto_payout_message') ),
|
array( 'NAME' => 'Last Message', 'STATUS' => $monitoring->getStatus('auto_payout_message') ),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user