initial commit; version 22.5.12042

This commit is contained in:
2022-12-12 23:28:25 -05:00
commit af1b03d79f
17653 changed files with 22692970 additions and 0 deletions

View File

@ -0,0 +1,54 @@
<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2019 Observium Limited
*
*/
if (!isset($rrd_filename))
{
# We can be included from arista_netstats_sw_ip6, which just sets the filename.
$rrd_filename = get_rrd_path($device, "arista-netstats-sw-ip.rrd");
$ipv = "v4";
}
$stats = array(
'InReceives' => array(),
'InForwDatagrams' => array(),
'InNoRoutes' => array(),
'InAddrErrors' => array(),
'InUnknownProtos' => array(),
'InTruncatedPkts' => array(),
'OutForwDatagrams' => array(),
'OutDiscards' => array(),
'OutNoRoutes' => array(),
'OutTransmits' => array());
$i=0;
foreach ($stats as $stat => $array)
{
$i++;
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $stat . " " . $ipv;
$rrd_list[$i]['ds'] = $stat;
if (strpos($stat, "Out") !== FALSE)
{
$rrd_list[$i]['invert'] = TRUE;
}
}
$colours='mixed';
$scale_min = "0";
$nototal = 1;
$simple_rrd = TRUE;
include($config['html_dir']."/includes/graphs/generic_multi_line.inc.php");
?>