From d5485e70b554080558f8fe8918c332435db0390f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20I=2E=20Bols=C3=B8?= Date: Tue, 11 Jan 2011 11:55:00 +0000 Subject: [PATCH] snmp__df - fallback to filesystems only if no disks/partitions found helps graphing a Check Point SecurePlatform (SPLAT) --- plugins/node.d/snmp__df.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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