Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created September 20, 2023 03:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hunzo/5431f997ae4136196183a5d08db28952 to your computer and use it in GitHub Desktop.
Save hunzo/5431f997ae4136196183a5d08db28952 to your computer and use it in GitHub Desktop.
snmp config for proxmox

install snmpd

apt-get install snmpd -y

backup config

mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.ori

create /etc/snmp/snmpd.conf

sysLocation    YOUR_LOCATION
sysContact     YOUR_ADMIN_NAME <admin@domain.name>

sysServices    72

master  agentx

agentaddress  udp:161

view   systemonly  included   .1
view   systemonly  included   .1.3.6.1.2.1.1
view   systemonly  included   .1.3.6.1.2.1.25.1

rocommunity  YOUR_COMMUNITY_STRING default -V systemonly
rocommunity6 YOUR_COMMUNITY_STRING -V systemonly

rouser: a SNMPv3 read-only access username
rouser authPrivUser authpriv -V systemonly

includeDir /etc/snmp/snmpd.conf.d

start service

service snmpd restart
update-rc.d snmpd enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment