mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
Fix rrd creation parameters
This commit is contained in:
@@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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']
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user