Red Hat Bugzilla – Bug 98619
Not reading proc as expected
Last modified: 2015-03-04 20:12:36 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030701
Description of problem:
Tried to add the below to snmpd.conf
proc named 1 1
It always returns 0 when doing an snmp poll of .188.8.131.52.4.1.2021.2.1.5.2.
2 is the instance for named.
It should return a value of 1. I confirmed
that named is in fact running and all /proc/"pid #"
info is their.
The example for sendmail does seem to work fine.
Sendmail is using instance 1.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Add proc named 1 1 to snmpd.conf as instance 2
2. restart snmpd
3. snmpget -c "string" -v2c localhost .184.108.40.206.4.1.2021.2.1.5.2
Actual Results: UCD-SNMP-MIB::prCount.2 = INTEGER: 0
Expected Results: UCD-SNMP-MIB::prCount.2 = INTEGER: 1
I will dig around, but this seems fairly cut and dry.
Created attachment 92765 [details]
Update to net-snmp-5.0.8/agent/mibgroup/ucd-snmp/proc.c
This resolves the issue I was having.
Fixed in net-snmp-5.0.8-7 and later by using a CVS version of proc.c.
Read ya, Phil