Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disk table is incomplete on CoreOS #2

Open
skupjoe opened this issue Jun 4, 2020 · 3 comments
Open

Disk table is incomplete on CoreOS #2

skupjoe opened this issue Jun 4, 2020 · 3 comments

Comments

@skupjoe
Copy link

skupjoe commented Jun 4, 2020

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
Copy link
Author

skupjoe commented Jun 4, 2020

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
Copy link
Author

skupjoe commented Jun 5, 2020

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

@digiwhite1980
Copy link
Owner

digiwhite1980 commented Jun 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants