From 2e5df311e6281a8151e46f19f132f327859d75bf Mon Sep 17 00:00:00 2001 From: Dopch <9436367+dopch@users.noreply.github.com> Date: Mon, 21 Sep 2026 14:54:02 +0200 Subject: [PATCH] Fix local snmpd community string setup (#17363) snmpd sed placement for community string is using the wrong variable RANDOMSTRINGHERE need to be RANDOMSTRINGGOESHERE --- install/librenms-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/librenms-install.sh b/install/librenms-install.sh index 5d69ad650..7dd5cd872 100644 --- a/install/librenms-install.sh +++ b/install/librenms-install.sh @@ -129,7 +129,7 @@ $STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms db:seed --force" $STD su - librenms -s /bin/bash -c "cd /opt/librenms && lnms user:add -p ${APP_PASSWORD} ${APP_USER} --role=admin" RANDOM_STRING=$(openssl rand -base64 16 | tr -dc 'a-zA-Z0-9') -sed -i "s/RANDOMSTRINGHERE/$RANDOM_STRING/g" /etc/snmp/snmpd.conf +sed -i "s/RANDOMSTRINGGOESHERE/$RANDOM_STRING/g" /etc/snmp/snmpd.conf echo "SNMP Community String: $RANDOM_STRING" >>~/librenms.creds curl -qso /usr/bin/distro https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro chmod +x /usr/bin/distro