Observium_CE/html/pages/device/health/sensors.inc.php

39 lines
913 B
PHP

<?php
/**
* Observium Network Management and Monitoring System
* Copyright (C) 2006-2015, Adam Armstrong - http://www.observium.org
*
* @package observium
* @subpackage webui
* @author Adam Armstrong <adama@observium.org>
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
if($metric != 'sensors' && device_permitted($device))
{
// Don't show aggregate graphs to people without device permissions, or for "all sensors" view.
$graph_title = nicecase($vars['metric']);
$graph_array['type'] = "device_".$vars['metric'];
$graph_array['device'] = $device['device_id'];
$graph_array['legend'] = 'no';
$box_args = array('title' => $graph_title,
'header-border' => TRUE,
);
echo generate_box_open($box_args);
print_graph_row($graph_array);
echo generate_box_close();
}
print_sensor_table($vars);
// EOF