From 0e9effe198676ba885b07f5cb7711869414c4ecf Mon Sep 17 00:00:00 2001 From: D Stephenson Date: Fri, 10 Jul 2026 08:18:05 -0500 Subject: [PATCH] Consolidate SNMP checkmk/jdisc users into single switchmon user Replaces the separate checkmk and jdisc SNMPv3 users with one switchmon user, updating both the settings UI and config template generation. The operatorauth SNMP group is unchanged. Co-Authored-By: Claude Sonnet 5 --- templates/index.html | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/templates/index.html b/templates/index.html index 0d5728a..dde4e62 100644 --- a/templates/index.html +++ b/templates/index.html @@ -748,20 +748,12 @@
- SNMP AUTH (checkmk) - + SNMP AUTH (switchmon) +
- SNMP PRIV (checkmk) - -
-
- SNMP AUTH (jdisc) - -
-
- SNMP PRIV (jdisc) - + SNMP PRIV (switchmon) +
@@ -933,10 +925,8 @@ function cfg() { defaultPassword: document.getElementById('s-password').value.trim(), engineId: document.getElementById('s-engine-id').value.trim(), radius: document.getElementById('s-radius').value.trim(), - snmpCmkAuth: document.getElementById('s-snmp-checkmk-auth').value.trim(), - snmpCmkPriv: document.getElementById('s-snmp-checkmk-priv').value.trim(), - snmpJdAuth: document.getElementById('s-snmp-jdisc-auth').value.trim(), - snmpJdPriv: document.getElementById('s-snmp-jdisc-priv').value.trim(), + snmpSwitchmonAuth: document.getElementById('s-snmp-switchmon-auth').value.trim(), + snmpSwitchmonPriv: document.getElementById('s-snmp-switchmon-priv').value.trim(), }; } @@ -1064,13 +1054,11 @@ function buildConfig(sw, c) { `snmp-server company ${hostname.toUpperCase()}`, `snmp-server contact ${asset}`, `snmp-server location ${location}`, - `snmp-server user checkmk engine-id ${engineId} sha ${c.snmpCmkAuth} priv aes ${c.snmpCmkPriv}`, - `snmp-server user jdisc engine-id ${engineId} sha ${c.snmpJdAuth} priv aes ${c.snmpJdPriv}`, + `snmp-server user switchmon engine-id ${engineId} sha ${c.snmpSwitchmonAuth} priv aes ${c.snmpSwitchmonPriv}`, `no snmp-server community v3 public`, `no snmp-server community v3 private`, `no snmp-server user default_user engine-id ${engineId} `, - `snmp-server security-to-group model v3 name checkmk group operatorauth`, - `snmp-server security-to-group model v3 name jdisc group operatorauth`, + `snmp-server security-to-group model v3 name switchmon group operatorauth`, `no snmp-server security-to-group model v1 name public`, `no snmp-server security-to-group model v1 name private`, `no snmp-server security-to-group model v2c name public`,