Red Hat Bugzilla – Bug 380321
snmpd proc statement reports 0 processes running for all procs
Last modified: 2007-11-30 17:12:22 EST
Description of problem:
The prTable reports all processes monitored with "proc" statement as have 0
Version-Release number of selected component (if applicable):
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)
Shows 0 processes, even when there are processes running.
should show number of sshd processes running. Note, sshd is just an example,
it's true of all processes I tested.
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
It's like the ps program wasn't found, or the path to it wasn't compiled in
Thanks for the report, I am able to reproduce it and I'll look what is wrong.
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).
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'
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.