As also stated here: http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg21569.html I'd suggest to apply this patch!
Could you please elaborate in more detail why do you want the patch and what error do you want to fix? The patch you refer to was really accepted upstream, but the whole email thread is about OpeSuSE hiding /proc/<pid>/status of kernel threads. Fedora does not do anything like this and hrSWRunTable works like charm.
Jan. That's the point. The patch was accepted upstream. But - for whatever reason - never made it into F10 (I guess also F11). The begin of the thread doesn't matter. The point is, that under some circumstances, 'hrSWRunTable' doesn't contain 'hrSWRunPath' for all processes - We've seen this with all our F10 webservers; Our monitoring system was not able to see hrSWRunPath for httpd (/usr/sbin/httpd). Try it yourself. Steps to reproduce: *) Use a F10 machine *) Install and start httpd *) Install and start snmpd (I'll attach a simple config) *) On the machine do: snmpwalk -v1 -c test localhost |grep http
Created attachment 370042 [details] Example SNMP config (v1, community string: 'test', accessible from everywhere)
This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
True for F11 as well: [root@leftie ~]# cat /etc/redhat-release; snmpwalk -c test -v1 localhost hrSWRunTable|grep http Fedora release 11 (Leonidas) HOST-RESOURCES-MIB::hrSWRunName.18008 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18011 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18012 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18013 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18014 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18015 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18016 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18017 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunName.18018 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunParameters.18027 = STRING: "http" I don't have any F12 machine (yet).
I still don't see any bug here, I've installed http on fresh installations of Fedora 10 and 11, started it and I can see all httpd processes in hrSWRunTable, together with their hrSWRunParameters. The hrSWRunParameters is obviously empty, because the httpd was started without any parameters. Your 'snmpwalk -c test -v1 localhost hrSWRunTable|grep http' does not prove anything, you filter out any hrSWRunParameters which does not contain word 'http', so all httpd daemons are filtered out (because they were started without parameters).
Jan. It's all about the hrSWRunPath - it's missing! See this example from my patched (F-10) box: [falko@leftie ~]$ snmpwalk -v1 -c cacti <HOSTNAME> hrSWRunTable|grep 2888 HOST-RESOURCES-MIB::hrSWRunIndex.2888 = INTEGER: 2888 HOST-RESOURCES-MIB::hrSWRunName.2888 = STRING: "httpd" HOST-RESOURCES-MIB::hrSWRunID.2888 = OID: SNMPv2-SMI::zeroDotZero HOST-RESOURCES-MIB::hrSWRunPath.2888 = STRING: "/usr/sbin/httpd" HOST-RESOURCES-MIB::hrSWRunParameters.2888 = "" HOST-RESOURCES-MIB::hrSWRunType.2888 = INTEGER: application(4) HOST-RESOURCES-MIB::hrSWRunStatus.2888 = INTEGER: runnable(2)
(In reply to comment #7) > Jan. It's all about the hrSWRunPath - it's missing! Aaaargh, I must have been blind... I am sorry, hrSWRunPath is really missing.
Don't worry Jan... It took me some time to find it myself also. And I wouldn't stop bugging you as long as you don't see it as well :-P
net-snmp-5.4.2.1-13.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/net-snmp-5.4.2.1-13.fc11
net-snmp-5.4.2.1-5.fc10 has been submitted as an update for Fedora 10. http://admin.fedoraproject.org/updates/net-snmp-5.4.2.1-5.fc10
net-snmp-5.4.2.1-19.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/net-snmp-5.4.2.1-19.fc12
Hurray!
net-snmp-5.4.2.1-19.fc12 has been pushed to the Fedora 12 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'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2009-11722
net-snmp-5.4.2.1-5.fc10 has been pushed to the Fedora 10 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'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F10/FEDORA-2009-11847
net-snmp-5.4.2.1-13.fc11 has been pushed to the Fedora 11 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'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-11856
net-snmp-5.4.2.1-5.fc10 has been pushed to the Fedora 10 stable repository. If problems still persist, please make note of it in this bug report.
net-snmp-5.4.2.1-19.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
net-snmp-5.4.2.1-13.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.