Observium_CE/html/includes/graphs/device/nfsen_common.inc.php

44 lines
986 B
PHP

<?php
/**
* Observium
*
* This file is part of Observium.
*
* @package observium
* @subpackage graphs
* @copyright (C) 2006-2013 Adam Armstrong, (C) 2013-2021 Observium Limited
*
*/
$simple_rrd = TRUE;
$rrd_filename = get_nfsen_filename($device['hostname']);
if ($rrd_filename) {
$flowtypes = array('tcp', 'udp', 'icmp', 'other');
$rrd_list=array();
$nfsen_iter=1;
foreach ($flowtypes as $flowtype) {
$rrd_list[$nfsen_iter]['filename'] = $rrd_filename;
$rrd_list[$nfsen_iter]['descr'] = $flowtype;
$rrd_list[$nfsen_iter]['ds'] = $dsprefix . $flowtype;
# set a multiplier which in turn will create a CDEF if this var is set
if ($dsprefix === "traffic_" || $dsprefix === "bytes_") { $multiplier = "8"; }
$colours = "mixed";
$nototal = 0;
$units="";
$unit_text = $dsdescr;
$scale_min = "0";
$nfsen_iter++;
}
}
include($config['html_dir']."/includes/graphs/generic_multi_simplex_separated.inc.php");
// EOF