Arch LinuxをSNMPで監視できるようにしたいので、net-snmpを導入しました。
    設定は、Snmpd - ArchWikiを参照。



    [root@blackle0pard ~]# pacman -S net-snmp --noconfirm



    [root@blackle0pard ~]# mkdir /etc/snmp


    [root@blackle0pard ~]# echo rocommunity TEST >> /etc/snmp/snmpd.conf
    [root@blackle0pard ~]# echo rocommunity TEST localhost >> /etc/snmp/snmpd.conf
    [root@blackle0pard ~]# cat /etc/snmp/snmpd.conf
    rocommunity TEST
    rocommunity TEST localhost


    [root@blackle0pard ~]# systemctl start snmpd


    [root@blackle0pard ~]# systemctl enable snmpd
    Created symlink /etc/systemd/system/ → /usr/lib/systemd/system/snmpd.service.


    [root@blackle0pard ~]# systemctl status snmpd
     snmpd.service - Simple Network Management Protocol (SNMP) Daemon
       Loaded: loaded (/usr/lib/systemd/system/snmpd.service; enabled; vendor preset: disabled)
       Active: active (running) since Sat 2017-10-28 20:19:17 JST; 11s ago
     Main PID: 3349 (snmpd)
        Tasks: 1 (limit: 4915)
       CGroup: /system.slice/snmpd.service
               └─3349 /usr/bin/snmpd -p /run/
    Oct 28 20:19:17 systemd[1]: Starting Simple Network Management Protocol (SNMP) Daemon...
    Oct 28 20:19:17 systemd[1]: snmpd.service: PID file /run/ not readable (yet?) after start: No such file or directory
    Oct 28 20:19:17 systemd[1]: Started Simple Network Management Protocol (SNMP) Daemon.



    [root@blackle0pard ~]# snmpwalk -v 2c -c TEST localhost | less



    • a textual description of the entity
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost .
    SNMPv2-MIB::sysDescr.0 = STRING: Linux 4.9.50-x86_64-linode86 #1 SMP Thu Sep 14 19:28:20 UTC 2017 x86_64
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost sysDescr
    • an administratively-assigned name for this managed node
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost .
    SNMPv2-MIB::sysName.0 = STRING:
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost sysName
    • The number of network interfaces
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost .
    IF-MIB::ifNumber.0 = INTEGER: 12
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost .ifNumber
    • a textual string containing information about the interface
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost .
    IF-MIB::ifDescr.1 = STRING: lo
    IF-MIB::ifDescr.2 = STRING: dummy0
    IF-MIB::ifDescr.3 = STRING: Red Hat, Inc Device 0001
    IF-MIB::ifDescr.4 = STRING: teql0
    IF-MIB::ifDescr.5 = STRING: tunl0
    IF-MIB::ifDescr.6 = STRING: gre0
    IF-MIB::ifDescr.7 = STRING: gretap0
    IF-MIB::ifDescr.8 = STRING: ip_vti0
    IF-MIB::ifDescr.9 = STRING: ip6_vti0
    IF-MIB::ifDescr.10 = STRING: sit0
    IF-MIB::ifDescr.11 = STRING: ip6tnl0
    IF-MIB::ifDescr.12 = STRING: ip6gre0
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost ifDescr
    • the type of interface, distinguished according to the physical/link protocol
    [root@localhost ~]# snmpwalk -v 2c -c TEST localhost .
    IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
    IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.4 = INTEGER: other(1)
    IF-MIB::ifType.5 = INTEGER: tunnel(131)
    IF-MIB::ifType.6 = INTEGER: tunnel(131)
    IF-MIB::ifType.7 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifType.8 = INTEGER: tunnel(131)
    IF-MIB::ifType.9 = INTEGER: tunnel(131)
    IF-MIB::ifType.10 = INTEGER: tunnel(131)
    IF-MIB::ifType.11 = INTEGER: tunnel(131)
    IF-MIB::ifType.12 = INTEGER: other(1)
    root@localhost ~]# snmpwalk -v 2c -c TEST localhost ifType


    [bee@blackle0pard ~]$ inxi -SM
    System:    Host: Kernel: 4.9.50-x86_64-linode86 x86_64 bits: 64 Console: tty 0
               Distro: Arch Linux
    Machine:   Device: kvm System: QEMU product: Standard PC (i440FX + PIIX 1996) v: pc-i440fx-2.6 serial: N/A
               Mobo: N/A model: N/A serial: N/A
               BIOS: SeaBIOS v: date: 04/01/2014