getComponents($device['device_id'], ['type'=>'Cisco-CIMC']); // We only care about our device id. $components = $components[$device['device_id']]; if (count($components) > 0) { ?>
Hardware Components
$array) { if ($array['status'] == 2) { $class = 'danger'; $message = 'Alert'; } else { $class = ''; $message = 'Ok'; } ?>
Error: