where('device_id', $device['device_id'])->where('app_type', 'puppet-agent')->get('app_id')[0]; // show only if Puppet Agent Application discovered if (count($app_id)) { $params = []; $sql = "SELECT `metric`, `value` FROM `application_metrics` WHERE `app_id` =" . $app_id['app_id']; $metrics = dbFetchKeyValue($sql, $params); ?>
Summary
'.$overlib_link_last_run.': '.$metrics['last_run_last_run'].'min '.$overlib_link_runtime.': '.$metrics['time_total'].'s '.$overlib_link_resources.': '.$metrics['resources_total'].'
'.$overlib_link_events.'
Success: '.$metrics['events_success'].' Failure: '.$metrics['events_failure'].' Total: '.$metrics['events_total'].'
'; }