Linux net-snmp, теперь игнорировать точки монтирования в HOST-RESOURCES-MIB::hrFSMountPoint

Я использую кластер openshift, мониторинг которого осуществляется через SNMP.

Одна из проверок сигнализации HOST-RESOURCES-MIB::hrFSMountPoint для использования смонтированного диска, и он перехватывает все динамически смонтированные тома:

]# snmpwalk -v2c  -c $(grep "com2sec" /etc/snmp/snmpd.conf  | awk '{print $4}' | sort -u) localhost HOST-RESOURCES-MIB::hrFSMountPoint

HOST-RESOURCES-MIB::hrFSMountPoint.1 = STRING: "/"
HOST-RESOURCES-MIB::hrFSMountPoint.3 = STRING: "/var"
HOST-RESOURCES-MIB::hrFSMountPoint.9 = STRING: "/dev/shm"
HOST-RESOURCES-MIB::hrFSMountPoint.11 = STRING: "/run"
HOST-RESOURCES-MIB::hrFSMountPoint.12 = STRING: "/sys/fs/cgroup"
HOST-RESOURCES-MIB::hrFSMountPoint.31 = STRING: "/boot"
HOST-RESOURCES-MIB::hrFSMountPoint.33 = STRING: "/var/lib/docker/containers"
HOST-RESOURCES-MIB::hrFSMountPoint.34 = STRING: "/var/lib/docker/overlay2"
HOST-RESOURCES-MIB::hrFSMountPoint.35 = STRING: "/var/lib/origin/openshift.local.volumes/pods/4a2dc1cf-ffc3-11e8-b1e8-00505692fe17/volumes/kubernetes.io~secret/certs"
HOST-RESOURCES-MIB::hrFSMountPoint.36 = STRING: "/var/lib/origin/openshift.local.volumes/pods/e912a722-ffa6-11e8-bfd9-00505692fe17/volumes/kubernetes.io~secret/service-catalog-apiserver-token-nwp2z"
HOST-RESOURCES-MIB::hrFSMountPoint.37 = STRING: "/var/lib/origin/openshift.local.volumes/pods/fb929d5f-f3ed-11e8-9d30-00505692fe17/volumes/kubernetes.io~secret/service-catalog-controller-token-2kdtf"
HOST-RESOURCES-MIB::hrFSMountPoint.38 = STRING: "/var/lib/origin/openshift.local.volumes/pods/fb929d5f-f3ed-11e8-9d30-00505692fe17/volumes/kubernetes.io~secret/service-catalog-ssl"
HOST-RESOURCES-MIB::hrFSMountPoint.39 = STRING: "/var/lib/origin/openshift.local.volumes/pods/e912a722-ffa6-11e8-bfd9-00505692fe17/volumes/kubernetes.io~secret/apiserver-ssl"
HOST-RESOURCES-MIB::hrFSMountPoint.40 = STRING: "/var/lib/origin/openshift.local.volumes/pods/4a2dc1cf-ffc3-11e8-b1e8-00505692fe17/volumes/kubernetes.io~secret/aggregated-logging-fluentd-token-flvvm"
HOST-RESOURCES-MIB::hrFSMountPoint.42 = STRING: "/var/lib/docker/containers/42e2be5986b0d26aad89fdb285b81d0f27c03aee9fb2b36271f56fb31c0b6b24/shm"
HOST-RESOURCES-MIB::hrFSMountPoint.45 = STRING: "/var/lib/docker/containers/0f3b7766afdd93569fa083b395fa8d27897c4f0e87f86e4bbab95d07191eaa24/shm"
HOST-RESOURCES-MIB::hrFSMountPoint.48 = STRING: "/var/lib/docker/containers/39a22c5e62a48f1dac7c46016377e073186f347f0fc6fa5e36b351a32da4f108/shm"
HOST-RESOURCES-MIB::hrFSMountPoint.53 = STRING: "/var/lib/origin/openshift.local.volumes/pods/0e6c3dd3-0534-11e9-8d74-00505692bbea/volumes/kubernetes.io~secret/serving-cert"
HOST-RESOURCES-MIB::hrFSMountPoint.54 = STRING: "/var/lib/origin/openshift.local.volumes/pods/0e6c3dd3-0534-11e9-8d74-00505692bbea/volumes/kubernetes.io~secret/webconsole-token-mj42l"
HOST-RESOURCES-MIB::hrFSMountPoint.56 = STRING: "/var/lib/docker/containers/7c61f17510a1b009181f868d1ccae525e4d893a20d8d0c22c175aa326a61de69/shm"

Я пытался добавить ignoredisk директивы к /etc/snmp/snmpd.conf:

disk / 200000
disk /opt 200000
disk /var 200000
disk /app 200000

# also tried adding before the 'disk' directives
ignoredisk /var/lib/docker*
ignoredisk /var/lib/origin*
ignoredisk /sys/fs/cgroup
ignoredisk /var/lib/docker/containers

Однако после перезапуска snmpd тома openshift по-прежнему отображаются в snmpwalk выход. Как я могу сделать эту работу?

Я использую RHEL7.6 с net-snmp-5.7.2-37.

0 ответов

Другие вопросы по тегам