@ -45,7 +36,7 @@ class SNMPMonitorType extends MonitorType {
if(error){
if(error){
reject(error);
reject(error);
}else{
}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);
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}`;
heartbeat.msg=`SNMP value `+(heartbeat.status?`passes`:`does not pass`)+` comparison: ${value.toString('ascii')}${monitor.snmpCondition}${monitor.snmpControlValue}`;