mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
[plugins/disk/btrfs_device_usage] Reformat linebreaks.
Following suggestions from linting.
This commit is contained in:
parent
f12bfed795
commit
675dedf1d4
1 changed files with 8 additions and 8 deletions
|
@ -35,8 +35,8 @@ def munin_config(fs):
|
|||
for this_device in devices:
|
||||
this_dev_info = fs.dev_info(this_device.devid)
|
||||
this_dev_name = this_dev_info.path.replace('/dev/', '')
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + \
|
||||
".label " + this_dev_name)
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
|
||||
".label " + this_dev_name)
|
||||
|
||||
print("")
|
||||
|
||||
|
@ -53,8 +53,8 @@ def munin_config(fs):
|
|||
for this_device in devices:
|
||||
this_dev_info = fs.dev_info(this_device.devid)
|
||||
this_dev_name = this_dev_info.path.replace('/dev/', '')
|
||||
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + \
|
||||
".label " + this_dev_name)
|
||||
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) +
|
||||
".label " + this_dev_name)
|
||||
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".warning 95")
|
||||
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + ".critical 98")
|
||||
|
||||
|
@ -69,8 +69,8 @@ def munin_values(fs):
|
|||
|
||||
for this_device in devices:
|
||||
this_dev_info = fs.dev_info(this_device.devid)
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) + \
|
||||
".value " + str(this_dev_info.bytes_used))
|
||||
print("btrfs_bytes_" + fsid + "_" + str(this_device.devid) +
|
||||
".value " + str(this_dev_info.bytes_used))
|
||||
|
||||
print("")
|
||||
|
||||
|
@ -82,8 +82,8 @@ def munin_values(fs):
|
|||
for this_device in devices:
|
||||
this_dev_info = fs.dev_info(this_device.devid)
|
||||
usage = 100.0 * this_dev_info.bytes_used / this_dev_info.total_bytes
|
||||
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) + \
|
||||
".value " + str(round(usage, 2)))
|
||||
print("btrfs_percent_" + fsid + "_" + str(this_device.devid) +
|
||||
".value " + str(round(usage, 2)))
|
||||
|
||||
print("")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue