}
}
private Exception walkHard(Snmp snmp, Target target, String context_engine, String context_name,
String oid_string, ResmonResult rr) {
try {
OID walk_oid = new OID(oid_string);
TreeUtils treeUtils = new TreeUtils(snmp, new DefaultPDUFactory());
List<TreeEvent> events = treeUtils.getSubtree(target, walk_oid);
if(events == null || events.size() == 0) return null;
for (TreeEvent event : events) {
if(event != null){
if (event.isError()) continue;
VariableBinding[] varBindings = event.getVariableBindings();
if(varBindings == null || varBindings.length == 0) continue;
for (VariableBinding vb : varBindings) {
OID oid = vb.getOid();
String value = vb.toValueString();
if (value != null && !value.equals("Null")) {
coerceMetric(oid.toString(), vb.toValueString(), null, rr);
}
}
}
}
}