The issue I am facing:
I use the pihole docker image on kubernetes and as part of this i do a simple rebuild/republish of the image in order to perform some customisations, one of which is installing and configuring snmp. this works fine, however the challenge I have is that i cannot get the snmp service to start automatically on boot. If using /etc/init.d/snmpd i can start the service manually and it runs fine, i just need some guidance on how i can make this happen automatically on boot please
Details about my system:
pihole docker image
What I have changed since installing Pi-hole:
curl https://raw.githubusercontent.com/librenms/librenms-agent/master/snmp/distro -o /usr/bin/distro
apt update
apt upgrade -y
apt install -y snmpd vim nano apt-utils
chmod 755 /usr/bin/distro
tee /etc/snmp/snmpd.conf <<EOF
com2sec readonly default public
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation "somewhere"
syscontact me@me
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
dontLogTCPWrappersConnects yes
EOF