diff --git a/host/src/main/java/com/instana/dc/host/impl/snmphost/SnmpHostDc.java b/host/src/main/java/com/instana/dc/host/impl/snmphost/SnmpHostDc.java index e75010e..5456c21 100644 --- a/host/src/main/java/com/instana/dc/host/impl/snmphost/SnmpHostDc.java +++ b/host/src/main/java/com/instana/dc/host/impl/snmphost/SnmpHostDc.java @@ -141,6 +141,7 @@ private void queryFileSystemUsage() throws IOException { Oid.FILESYSTEM_USAGE__ALL, Oid.FILESYSTEM_USAGE__UNIT); List output = new ArrayList(); + int no = 0; for (Map result1 : result) { String device = SnmpValue.getString(result1, Oid.FILESYSTEMDEVICE, null); long unit = SnmpValue.getLong(result1, Oid.FILESYSTEM_USAGE__UNIT, 0L); @@ -149,13 +150,14 @@ private void queryFileSystemUsage() throws IOException { long all = SnmpValue.getLong(result1, Oid.FILESYSTEM_USAGE__ALL, 0L); long free = all - used; output.add(new SimpleQueryResult(used * unit).setKey(device + ":u") - .setAttribute("device", device).setAttribute("mountpoint", device).setAttribute("state", "used") - .setAttribute("mode", "-").setAttribute("type", "ext4") + .setAttribute("device", "dev" + no).setAttribute("mountpoint", device).setAttribute("state", "used") + .setAttribute("mode", "-").setAttribute("type", "xfs") ); output.add(new SimpleQueryResult(free * unit).setKey(device + ":f") - .setAttribute("device", device).setAttribute("mountpoint", device).setAttribute("state", "free") - .setAttribute("mode", "-").setAttribute("type", "ext4") + .setAttribute("device", "dev" + no).setAttribute("mountpoint", device).setAttribute("state", "free") + .setAttribute("mode", "-").setAttribute("type", "xfs") ); + no++; } }