mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Rebased
This commit is contained in:
@@ -15,23 +15,19 @@ if (count($diskio_data)) {
|
||||
|
||||
echo $diskio['diskio_descr'].' ';
|
||||
|
||||
if ($debug) {
|
||||
print_r($entry);
|
||||
}
|
||||
d_echo($entry);
|
||||
|
||||
$rrd = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('ucd_diskio-'.$diskio['diskio_descr'].'.rrd');
|
||||
|
||||
if ($debug) {
|
||||
echo "$rrd ";
|
||||
}
|
||||
d_echo("$rrd ");
|
||||
|
||||
if (!is_file($rrd)) {
|
||||
rrdtool_create(
|
||||
$rrd,
|
||||
'--step 300 \
|
||||
DS:read:DERIVE:600:0:125000000000 \
|
||||
DS:written:DERIVE:600:0:125000000000 \
|
||||
DS:reads:DERIVE:600:0:125000000000 \
|
||||
'--step 300
|
||||
DS:read:DERIVE:600:0:125000000000
|
||||
DS:written:DERIVE:600:0:125000000000
|
||||
DS:reads:DERIVE:600:0:125000000000
|
||||
DS:writes:DERIVE:600:0:125000000000 '.$config['rrd_rra']
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user