mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-12 09:14:37 -05:00
Re-use monitor.radiusPassword for community string
This commit is contained in:
parent
da8f0d1c31
commit
1c4740748c
@ -194,7 +194,6 @@ class Monitor extends BeanModel {
|
|||||||
tlsCert: this.tlsCert,
|
tlsCert: this.tlsCert,
|
||||||
tlsKey: this.tlsKey,
|
tlsKey: this.tlsKey,
|
||||||
kafkaProducerSaslOptions: JSON.parse(this.kafkaProducerSaslOptions),
|
kafkaProducerSaslOptions: JSON.parse(this.kafkaProducerSaslOptions),
|
||||||
snmpCommunityString: this.snmpCommunityString,
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ class SNMPMonitorType extends MonitorType {
|
|||||||
|
|
||||||
let session;
|
let session;
|
||||||
try {
|
try {
|
||||||
session = snmp.createSession(monitor.hostname, monitor.snmpCommunityString, options);
|
session = snmp.createSession(monitor.hostname, monitor.radiusPassword, options);
|
||||||
|
|
||||||
// Handle errors during session creation
|
// Handle errors during session creation
|
||||||
session.on("error", (error) => {
|
session.on("error", (error) => {
|
||||||
|
@ -831,7 +831,6 @@ let needSetup = false;
|
|||||||
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
bean.gamedigGivenPortOnly = monitor.gamedigGivenPortOnly;
|
||||||
bean.remote_browser = monitor.remote_browser;
|
bean.remote_browser = monitor.remote_browser;
|
||||||
bean.snmpVersion = monitor.snmpVersion;
|
bean.snmpVersion = monitor.snmpVersion;
|
||||||
bean.snmpCommunityString = monitor.snmpCommunityString;
|
|
||||||
bean.snmpOid = monitor.snmpOid;
|
bean.snmpOid = monitor.snmpOid;
|
||||||
bean.snmpCondition = monitor.snmpCondition;
|
bean.snmpCondition = monitor.snmpCondition;
|
||||||
bean.snmpControlValue = monitor.snmpControlValue;
|
bean.snmpControlValue = monitor.snmpControlValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user