digiwhite1980 / snmpd

Modified net-snmp daemon version 5.7.3 for CoreOS monitoring
4 stars 8 forks source link

Disk table is incomplete on CoreOS #2

Open skupjoe opened 4 years ago

skupjoe commented 4 years ago

A walk shows:

$ snmpwalk -v2c -c '<comm_str>' <coreos_host> .1.3.6.1.2.1.25.2.3.1.3
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: Physical memory
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: Virtual memory
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: Memory buffers
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: Cached memory
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: Shared memory
HOST-RESOURCES-MIB::hrStorageDescr.10 = STRING: Swap space
HOST-RESOURCES-MIB::hrStorageDescr.33 = STRING: /dev
HOST-RESOURCES-MIB::hrStorageDescr.36 = STRING: /sys/fs/cgroup
HOST-RESOURCES-MIB::hrStorageDescr.51 = STRING: /etc/resolv.conf
HOST-RESOURCES-MIB::hrStorageDescr.52 = STRING: /etc/hostname
HOST-RESOURCES-MIB::hrStorageDescr.53 = STRING: /etc/hosts
HOST-RESOURCES-MIB::hrStorageDescr.54 = STRING: /dev/shm
HOST-RESOURCES-MIB::hrStorageDescr.60 = STRING: /proc/acpi
HOST-RESOURCES-MIB::hrStorageDescr.61 = STRING: /proc/kcore
HOST-RESOURCES-MIB::hrStorageDescr.62 = STRING: /proc/keys
HOST-RESOURCES-MIB::hrStorageDescr.63 = STRING: /proc/latency_stats
HOST-RESOURCES-MIB::hrStorageDescr.64 = STRING: /proc/timer_list
HOST-RESOURCES-MIB::hrStorageDescr.65 = STRING: /proc/sched_debug
HOST-RESOURCES-MIB::hrStorageDescr.66 = STRING: /proc/scsi
HOST-RESOURCES-MIB::hrStorageDescr.67 = STRING: /sys/firmware

Yet, I have also a /svc mount and a /cache mount which are physical drives:

$ mount | egrep 'svc|cache'
/dev/sdc1 on /svc type ext4 (rw,relatime,seclabel)
/dev/sdd1 on /cache type ext4 (rw,relatime,seclabel)

My snmpd.conf is:

agentAddress udp:161
view   all   included   .1
rocommunity <comm_str> default -V all

OS Info

NAME="Container Linux by CoreOS"
ID=coreos
VERSION=2345.3.0
VERSION_ID=2345.3.0
BUILD_ID=2020-02-26-2211
PRETTY_NAME="Container Linux by CoreOS 2345.3.0 (Rhyolite)"
ANSI_COLOR="38;5;75"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://issues.coreos.com"
COREOS_BOARD="amd64-usr"
skupjoe commented 4 years ago

I want to say that this might have been patched in a different snmp release? (ubuntu build?) https://bugs.launchpad.net/ubuntu/+source/net-snmp/+bug/1843036

skupjoe commented 4 years ago

Working using this build: https://github.com/crazy-max/docker-snmpd

digiwhite1980 commented 4 years ago

Hi Joseph,

I will pathc the snmp deamon to the latest version. If you please could try. I’ll let you know when its pushed.

Regards,

Raymond

From: Joseph Skupniewicz notifications@github.com Reply to: digiwhite1980/snmpd reply@reply.github.com Date: Friday, 5 June 2020 at 02:20 To: digiwhite1980/snmpd snmpd@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [digiwhite1980/snmpd] Disk table is incomplete on CoreOS (#2)

Working using this build: https://github.com/crazy-max/docker-snmpd

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/digiwhite1980/snmpd/issues/2#issuecomment-639186737, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC4LCQWQ7RVNNZ4IDB5TZYTRVA25XANCNFSM4NTBL3PA.