Bug 380321

Summary: snmpd proc statement reports 0 processes running for all procs
Product: [Fedora] Fedora Reporter: Aran Cox <acox>
Component: net-snmpAssignee: Jan Safranek <jsafrane>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 5.4.1-5.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-11-26 18:54:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aran Cox 2007-11-13 16:23:33 UTC
Description of problem:
The prTable reports all processes monitored with "proc" statement as have 0
processes running.

Version-Release number of selected component (if applicable):
net-snmp-5.4.1-4.fc8

How reproducible:
Trivially, just add a proc statement and walk the prTable.

Steps to Reproduce:
1. add something like: proc sshd to snmpd.conf
2. restart snmpd
3. walk prTable (snmpwalk -v 2c -c public localhost prTable)


Actual results:
Shows 0 processes, even when there are processes running.

Expected results:
should show number of sshd processes running.  Note, sshd is just an example,
it's true of all processes I tested.

Additional info:
The issue is that snmpd doesn't invoke ps... it's supposed to us ps acx, but if
you strace the snmpd process it shows this:

17546 execve("", ["", "-acx"], [/* 21 vars */]) = -1 ENOENT (No such file or
directory)

It's like the ps program wasn't found, or the path to it wasn't compiled in
properly.

Comment 1 Jan Safranek 2007-11-15 09:35:42 UTC
Thanks for the report, I am able to reproduce it and I'll look what is wrong.

Comment 2 Jan Safranek 2007-11-15 10:47:29 UTC
Oh, from some reason 'ps' is not in the default buildroot anymore -> ./configure
script cannot find it -> prTable does not work.

I added appropriate build-dependency and net-snmp should be fine in next release
(I will not release update just because of this bug).

Comment 3 Fedora Update System 2007-11-20 17:49:45 UTC
net-snmp-5.4.1-5.fc8 has been pushed to the Fedora 8 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update net-snmp'

Comment 4 Fedora Update System 2007-11-26 18:54:31 UTC
net-snmp-5.4.1-5.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.