public function indexAction()
 {
     $system = new System();
     $latestRecord = $system->findOne([], ['timeCreated' => -1])->getFields();
     return ['dataPointTotalCount' => $system->find()->count(), 'cpu' => $latestRecord['loadPercent'], 'memFree' => $latestRecord['memFree'], 'memTotal' => $latestRecord['memTotal'], 'diskFree' => $latestRecord['diskFree'], 'diskTotal' => $latestRecord['diskTotal'], 'created' => $latestRecord['timeCreated'], 'transfer' => $this->transferanddiskAction(), 'activeSshSessions' => shell_exec('users | wc -w'), 'uptime' => seconds_to_time((int) shell_exec("awk '{print \$1}' /proc/uptime"))];
 }