Skip to content

SNMP External device monitoring

Max Chodorowski edited this page Dec 12, 2020 · 1 revision
sudo apt install snmpd snmp

In /etc/snmp/snmpd.conf:

  • Change the following agentAddress udp:127.0.0.1:161 to agentAddress udp:0.0.0.0:161. Instead of zeros you can put a specific IP.

  • Monitoring specific processes/services running:

    To get the list of processes and their names: ps -A

    image

    Add proc entries in the config, eg:

    image

    Then the following command should return us two entries snmpwalk -v 2c -c public localhost 1.3.6.1.4.1.2021.2.1.100:

    iso.3.6.1.4.1.2021.2.1.100.1 = INTEGER: 0
    iso.3.6.1.4.1.2021.2.1.100.2 = INTEGER: 0
    

    The 0 state indicates OK state and any other value an error one.

Clone this wiki locally