mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
37b533a5c3
Reading from /sys/block/*/stat does not provide the disk major and minor numbers (versus reading from /proc/diskstats). When saving the disk data back to a temp state file, these empty values for the disk major and minor numbers get turned into undef values on state restore. On the line: `my ( $prev_time, %prev_diskstat ) = restore_state();` `%prev_diskstat` will 'slurp' up all returned values from the function call (converting the list into key value pairs) but if one of last values is from the major or minor number (which will be undef), the key (major or minor) will be sent but the undef value will not be sent. Hence this results in an attempted hash assignment where one of the key values pairs is missing a value and thus the 'Odd number of elements in hash assignment ' warning is thrown. |
||
---|---|---|
.. | ||
example-graphs | ||
btrfs_subvol_usage | ||
df_with_nfs | ||
dirsizes | ||
disk-io-multigraph-munin-plugin | ||
dm_cache_occupancy_ | ||
dm_cache_statistics_ | ||
du | ||
du_multidirs | ||
du_pattern | ||
du-2 | ||
e2 | ||
file_age | ||
freedisk | ||
hdsentinel | ||
hp_temp | ||
hpasmcli2_ | ||
iostat-xfrs | ||
linux_diskstat_ | ||
log_sizes | ||
lvm_ | ||
lvm_snap_used | ||
lvm_usage | ||
md_iostat_ | ||
megaraid-controller-information | ||
megaraid-hdd-temperature-using-megacli | ||
quota2percent_ | ||
raid | ||
raid-mismatch-count | ||
scsi_queue | ||
snmp__areca_ | ||
snmp__hp_temp | ||
useddisk | ||
xfs | ||
xfs_frag |