Fix rrd creation parameters

This commit is contained in:
f0o
2015-09-28 08:24:57 +00:00
parent 28e1cfda22
commit 7d95e94954
33 changed files with 304 additions and 304 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ if (is_numeric($FdbAddressCount)) {
if (!is_file($fdb_rrd_file)) {
rrdtool_create(
$fdb_rrd_file,
' --step 300 \
' --step 300
DS:value:GAUGE:600:-1:100000 '.$config['rrd_rra']
);
}
+3 -3
View File
@@ -12,9 +12,9 @@ list ($sessalloc, $sessmax, $sessfailed) = explode("\n", $sess_data);
if (!is_file($sessrrd)) {
rrdtool_create(
$sessrrd,
' --step 300 \
DS:allocate:GAUGE:600:0:3000000 \
DS:max:GAUGE:600:0:3000000 \
' --step 300
DS:allocate:GAUGE:600:0:3000000
DS:max:GAUGE:600:0:3000000
DS:failed:GAUGE:600:0:1000 '.$config['rrd_rra']
);
}
+5 -5
View File
@@ -27,11 +27,11 @@ $rrdfile = $config['rrd_dir'].'/'.$device['hostname'].'/data.rrd';
if (!is_file($rrdfile)) {
rrdtool_create(
$rrdfile,
'DS:INOCTETS:COUNTER:600:U:100000000000 \
DS:OUTOCTETS:COUNTER:600:U:10000000000 \
DS:INPKTS:COUNTER:600:U:10000000000 \
DS:OUTPKTS:COUNTER:600:U:10000000000 \
DS:CALLS:COUNTER:600:U:10000000000 \
'DS:INOCTETS:COUNTER:600:U:100000000000
DS:OUTOCTETS:COUNTER:600:U:10000000000
DS:INPKTS:COUNTER:600:U:10000000000
DS:OUTPKTS:COUNTER:600:U:10000000000
DS:CALLS:COUNTER:600:U:10000000000
DS:REGISTRATIONS:COUNTER:600:U:10000000000 '.$config['rrd_rra']
);
}