2009-10-28 23:34:13 +00:00
|
|
|
<?php
|
|
|
|
|
2010-07-24 19:14:41 +00:00
|
|
|
include('includes/graphs/common.inc.php');
|
2009-10-28 23:34:13 +00:00
|
|
|
|
2010-05-02 19:47:09 +00:00
|
|
|
$device = device_by_id_cache($id);
|
|
|
|
|
|
|
|
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/netstats-icmp.rrd";
|
2009-10-28 23:34:13 +00:00
|
|
|
|
2011-09-18 22:55:29 +00:00
|
|
|
$stats = array('icmpInSrcQuenchs' => array(),
|
|
|
|
'icmpOutSrcQuenchs' => array(),
|
|
|
|
'icmpInRedirects' => array(),
|
|
|
|
'icmpOutRedirects' => array(),
|
|
|
|
'icmpInAddrMasks' => array(),
|
|
|
|
'icmpOutAddrMasks' => array(),
|
|
|
|
'icmpInAddrMaskReps' => array(),
|
|
|
|
'icmpOutAddrMaskReps' => array());
|
|
|
|
|
|
|
|
$i=0;
|
|
|
|
|
|
|
|
foreach($stats as $stat => $array)
|
|
|
|
{
|
|
|
|
$i++;
|
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
|
|
|
$rrd_list[$i]['descr'] = str_replace("icmp", "", $stat);
|
2011-09-21 11:59:59 +00:00
|
|
|
$rrd_list[$i]['ds'] = $stat;
|
2011-09-20 14:37:54 +00:00
|
|
|
if (strpos($stat, "Out") !== FALSE)
|
2011-09-18 22:55:29 +00:00
|
|
|
{
|
|
|
|
$rrd_list[$i]['invert'] = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$colours='mixed';
|
|
|
|
|
|
|
|
$scale_min = "0";
|
|
|
|
$nototal = 1;
|
|
|
|
$basicrrd = 1;
|
|
|
|
|
|
|
|
include("includes/graphs/generic_multi_line.inc.php");
|
|
|
|
|
|
|
|
?>
|