diff --git a/plugins/node.d/snmp__df.in b/plugins/node.d/snmp__df.in index 52d32e35a0..fc400a7093 100755 --- a/plugins/node.d/snmp__df.in +++ b/plugins/node.d/snmp__df.in @@ -145,7 +145,9 @@ foreach my $kept (@keep) # For each disk... my $stor_id; -if (defined $partitions{""}) +my $foundpartitions = keys %partitions; + +if ($foundpartitions == 0 or defined $partitions{""}) { # Oh bugger. Some (or all) mountpoints were undeterminable. The backup # solution is to just graph everything that claims to be a FixedDisk, # without checking if it's removable etc