mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
Fix coding style part 2
This commit is contained in:
@@ -1,85 +1,82 @@
|
||||
<?php
|
||||
|
||||
include("includes/graphs/common.inc.php");
|
||||
require 'includes/graphs/common.inc.php';
|
||||
|
||||
$rrd_filename = $config['rrd_dir'] . "/" . $device['hostname'] . "/cipsec_flow.rrd";
|
||||
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/cipsec_flow.rrd';
|
||||
|
||||
$i=0;
|
||||
$i = 0;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InAuths";
|
||||
$rrd_list[$i]['ds'] = "InAuths";
|
||||
$rrd_list[$i]['descr'] = 'InAuths';
|
||||
$rrd_list[$i]['ds'] = 'InAuths';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutAuths";
|
||||
$rrd_list[$i]['ds'] = "OutAuths";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = 'OutAuths';
|
||||
$rrd_list[$i]['ds'] = 'OutAuths';
|
||||
$ds_list[$i]['invert'] = '1';
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InDecrypts";
|
||||
$rrd_list[$i]['ds'] = "InDencrypts";
|
||||
$rrd_list[$i]['descr'] = 'InDecrypts';
|
||||
$rrd_list[$i]['ds'] = 'InDencrypts';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutEncrypts";
|
||||
$rrd_list[$i]['ds'] = "OutEncrypts";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = 'OutEncrypts';
|
||||
$rrd_list[$i]['ds'] = 'OutEncrypts';
|
||||
$ds_list[$i]['invert'] = '1';
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InDrops";
|
||||
$rrd_list[$i]['ds'] = "InDrops";
|
||||
$rrd_list[$i]['descr'] = 'InDrops';
|
||||
$rrd_list[$i]['ds'] = 'InDrops';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InReplayDrops";
|
||||
$rrd_list[$i]['ds'] = "InReplayDrops";
|
||||
$rrd_list[$i]['descr'] = 'InReplayDrops';
|
||||
$rrd_list[$i]['ds'] = 'InReplayDrops';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutDrops";
|
||||
$rrd_list[$i]['ds'] = "OutDrops";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = 'OutDrops';
|
||||
$rrd_list[$i]['ds'] = 'OutDrops';
|
||||
$ds_list[$i]['invert'] = '1';
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InAuthFail";
|
||||
$rrd_list[$i]['ds'] = "InAuthFails";
|
||||
$rrd_list[$i]['descr'] = 'InAuthFail';
|
||||
$rrd_list[$i]['ds'] = 'InAuthFails';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutAuthFail";
|
||||
$rrd_list[$i]['ds'] = "OutAuthFails";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = 'OutAuthFail';
|
||||
$rrd_list[$i]['ds'] = 'OutAuthFails';
|
||||
$ds_list[$i]['invert'] = '1';
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "InDecryptFails";
|
||||
$rrd_list[$i]['ds'] = "InDecryptFails";
|
||||
$rrd_list[$i]['descr'] = 'InDecryptFails';
|
||||
$rrd_list[$i]['ds'] = 'InDecryptFails';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "OutEncryptFails";
|
||||
$rrd_list[$i]['ds'] = "OutEncryptFails";
|
||||
$ds_list[$i]['invert'] = "1";
|
||||
$rrd_list[$i]['descr'] = 'OutEncryptFails';
|
||||
$rrd_list[$i]['ds'] = 'OutEncryptFails';
|
||||
$ds_list[$i]['invert'] = '1';
|
||||
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "ProtocolUseFails";
|
||||
$rrd_list[$i]['ds'] = "ProtocolUseFails";
|
||||
$rrd_list[$i]['descr'] = 'ProtocolUseFails';
|
||||
$rrd_list[$i]['ds'] = 'ProtocolUseFails';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "NoSaFails";
|
||||
$rrd_list[$i]['ds'] = "NoSaFails";
|
||||
$rrd_list[$i]['descr'] = 'NoSaFails';
|
||||
$rrd_list[$i]['ds'] = 'NoSaFails';
|
||||
$i++;
|
||||
$rrd_list[$i]['filename'] = $rrd_filename;
|
||||
$rrd_list[$i]['descr'] = "SysCapFails";
|
||||
$rrd_list[$i]['ds'] = "SysCapFails";
|
||||
$rrd_list[$i]['descr'] = 'SysCapFails';
|
||||
$rrd_list[$i]['ds'] = 'SysCapFails';
|
||||
|
||||
#$units='%';
|
||||
#$total_units='%';
|
||||
$colours='mixed';
|
||||
|
||||
$scale_min = "0";
|
||||
#$scale_max = "100";
|
||||
// $units='%';
|
||||
// $total_units='%';
|
||||
$colours = 'mixed';
|
||||
|
||||
$scale_min = '0';
|
||||
// $scale_max = "100";
|
||||
$nototal = 1;
|
||||
|
||||
include("includes/graphs/generic_multi_line.inc.php");
|
||||
|
||||
?>
|
||||
require 'includes/graphs/generic_multi_line.inc.php';
|
||||
|
||||
Reference in New Issue
Block a user