@ -45,7 +36,7 @@ class SNMPMonitorType extends MonitorType {
if(error){
reject(error);
}else{
log.debug("monitor",`SNMP: Received varbinds: Type: ${getKey(snmp.ObjectType,varbinds[0].type)}, Value: ${varbinds[0].value}`);// Log the received varbinds for debugging
log.debug("monitor",`SNMP: Received varbinds (Type=${getKey(snmp.ObjectType,varbinds[0].type)}): ${varbinds[0].value}`);
resolve(varbinds);
}
});
@ -91,7 +82,7 @@ class SNMPMonitorType extends MonitorType {
heartbeat.msg=`SNMP value `+(heartbeat.status?`passes`:`does not pass`)+` comparison: ${value.toString('ascii')}${monitor.snmpCondition}${monitor.snmpControlValue}`;