Discussion:
Hiding /run/user/X ?
Cameron Smith
2017-04-06 18:20:06 UTC
Permalink
Hello,

We are running into an issue relating to net-snmp on CentOS 7x and Citrix
XenServer 7.x

Both of these OS create temporary partitions at /run/user/0 for root or
/run/user/$uid for others.

One of our monitoring tools polls snmp and will see one of these partitions
and then if the partition goes away alerts us. That's a problem as it is
normal for these to come and go.

We would like to have the monitoring tool not be able to be aware that
those partitions exist.

we have added ignoredisk /run/user/* to /etc/snmp/snmpd.conf and restarted
snmpd and they are still seen.

Is there something else we can add to snmpd.conf or are we at a point we
need to edit a mib?

Cameron
Cameron Smith
2017-04-11 21:58:03 UTC
Permalink
I am still seeing:

[***@staging-www /]# snmpwalk -v 1 -c redux localhost |grep "/run/user/"
HOST-RESOURCES-MIB::hrStorageDescr.59 = STRING: /run/user/65000
HOST-RESOURCES-MIB::hrFSMountPoint.29 = STRING: "/run/user/65000"

How can I make walks never see the temp partitions in /run/user?


Cameron Smith
Technical Operations Manager
Network Redux, LLC
Cell: 503-926-4928
Post by Cameron Smith
Hello,
We are running into an issue relating to net-snmp on CentOS 7x and Citrix
XenServer 7.x
Both of these OS create temporary partitions at /run/user/0 for root or
/run/user/$uid for others.
One of our monitoring tools polls snmp and will see one of these
partitions and then if the partition goes away alerts us. That's a problem
as it is normal for these to come and go.
We would like to have the monitoring tool not be able to be aware that
those partitions exist.
we have added ignoredisk /run/user/* to /etc/snmp/snmpd.conf and restarted
snmpd and they are still seen.
Is there something else we can add to snmpd.conf or are we at a point we
need to edit a mib?
Cameron
Loading...