Simple Network Management Protocol (SNMP) is an “Internet-standard protocol for managing devices on IP networks”. Devices that typically support SNMP include routers, switches, servers, workstations, printers, modem racks and more. SNMP is used mostly in network management systems to monitor network-attached devices for conditions that warrant administrative attention. SNMP is a component of the Internet Protocol Suite as defined by the Internet Engineering Task Force (IETF). It consists of a set of standards for network management, including an application layer protocol, a database schema, and a set of data objects.
Lets say our proxmox IP address is 192.168.0.15 , and the monitoring server IP address is 192.168.0.20 .
Now we install SNMPD package on the Proxmox VE server
$ sudo apt-get update && sudo apt-get install snmpd
Add the following lines in your snmpd.conf file
$ sudo vim /etc/snmp/snmpd.conf
rocommunity YourSecret 192.168.0.20
Test on the Proxmox server that snmpd is working
$ snmpwalk -c public -v 2c localhost
You can replace localhost by the Proxmox IP if you would like to test it from the Monitoring server.
If this post helped you installing SNMP drop us a comment 😉
Check your /etc/log/syslog file, if you are seeing this error message:
error on subcontainer 'ia_addr' insert (-1)
The problem is snmpd reports all errors to syslog, because of default setting in /etc/default/snmpd.
To log only up to info level, and not debug, change these lines as follows:
SNMPDOPTS='-LS6d -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
TRAPDOPTS='-LS6d -p /var/run/snmptrapd.pid'
Replacing this -Lsd by -LS6d lowers the debug level.