Quantcast
Channel: Monitoring-Portal Feed
Viewing all articles
Browse latest Browse all 1338

check_disk_btrfs - outdated?

$
0
0
Hi,
i would like to use check_disk_btrfs, but it dies with the following error:

Quellcode

1
2
3
4
[root@server066 plugins]# ./check_disk_btrfs -f /mnt/btrfs/ -w 50 -c 80
Argument "Data" isn't numeric in sprintf at ./check_disk_btrfs line 282.
Argument "single:" isn't numeric in sprintf at ./check_disk_btrfs line 282.
Illegal division by zero at ./check_disk_btrfs line 197.


The $line contains:

Quellcode

1
Data, single: total=471.01GiB, used=455.71GiB


Code that raises this error:

Quellcode

1
my $used_perc = $used_bytes / $total_bytes * 100;


I guess the Btrfs output changed, so the splits used in the plugin dont work anymore. Did someone already fix this in their setup and is willing to share?

Viewing all articles
Browse latest Browse all 1338