32 lines
703 B
PHP

<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) Adam Armstrong
*
*/
if (!is_intnum($vars['id'])) {
return;
}
$counter = get_entity_by_id_cache('counter', $vars['id']);
if (is_numeric($counter['device_id']) && ($auth || is_entity_permitted($counter['counter_id'], 'counter') || device_permitted($counter['device_id']))) {
$device = device_by_id_cache($counter['device_id']);
//$rrd_filename = get_rrd_path($device, get_counter_rrd($device, $counter));
$auth = TRUE;
$graph_title = device_name($device, TRUE);
$graph_title .= " :: Counter :: " . $counter['counter_descr'];
}
// EOF