Commit version 24.12.13800
This commit is contained in:
@ -5,40 +5,38 @@
|
||||
*
|
||||
* This file is part of Observium.
|
||||
*
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
|
||||
* @package observium
|
||||
* @subpackage graphs
|
||||
* @copyright (C) Adam Armstrong
|
||||
*
|
||||
*/
|
||||
|
||||
$rrd_filename = get_rrd_path($device, "netstats-snmp.rrd");
|
||||
|
||||
$stats = array('snmpInTraps',
|
||||
'snmpOutTraps',
|
||||
'snmpInTotalReqVars',
|
||||
'snmpInTotalSetVars',
|
||||
'snmpOutGetResponses',
|
||||
'snmpOutSetRequests');
|
||||
$stats = ['snmpInTraps',
|
||||
'snmpOutTraps',
|
||||
'snmpInTotalReqVars',
|
||||
'snmpInTotalSetVars',
|
||||
'snmpOutGetResponses',
|
||||
'snmpOutSetRequests'];
|
||||
|
||||
$i=0;
|
||||
foreach ($stats as $stat)
|
||||
{
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = str_replace("snmp", "", $stat);
|
||||
$rrd_list[$i]['ds'] = $stat;
|
||||
if (strpos($stat, "Out") !== FALSE)
|
||||
{
|
||||
$rrd_list[$i]['invert'] = TRUE;
|
||||
}
|
||||
$i = 0;
|
||||
foreach ($stats as $stat) {
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = str_replace("snmp", "", $stat);
|
||||
$rrd_list[$i]['ds'] = $stat;
|
||||
if (strpos($stat, "Out") !== FALSE) {
|
||||
$rrd_list[$i]['invert'] = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
$colours='mixed';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
$nototal = 1;
|
||||
$scale_min = "0";
|
||||
$nototal = 1;
|
||||
$simple_rrd = TRUE;
|
||||
|
||||
include($config['html_dir']."/includes/graphs/generic_multi.inc.php");
|
||||
include($config['html_dir'] . "/includes/graphs/generic_multi.inc.php");
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user