getComponents($device['device_id'], array('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: