Bug 512345 - net-snmp not correctly returning hrSWRunPath
Summary: net-snmp not correctly returning hrSWRunPath
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: net-snmp
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Safranek
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-17 13:11 UTC by Oliver Falk
Modified: 2009-12-08 08:03 UTC (History)
2 users (show)

Fixed In Version: 5.4.2.1-13.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-08 08:03:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Example SNMP config (v1, community string: 'test', accessible from everywhere) (437 bytes, text/plain)
2009-11-18 09:42 UTC, Oliver Falk
no flags Details

Description Oliver Falk 2009-07-17 13:11:27 UTC
As also stated here:
http://www.mail-archive.com/net-snmp-users@lists.sourceforge.net/msg21569.html
I'd suggest to apply this patch!

Comment 1 Jan Safranek 2009-07-20 12:57:04 UTC
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.

Comment 2 Oliver Falk 2009-11-18 09:40:38 UTC
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

Comment 3 Oliver Falk 2009-11-18 09:42:06 UTC
Created attachment 370042 [details]
Example SNMP config (v1, community string: 'test', accessible from everywhere)

Comment 4 Bug Zapper 2009-11-18 12:10:23 UTC
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

Comment 5 Oliver Falk 2009-11-18 13:53:36 UTC
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).

Comment 6 Jan Safranek 2009-11-18 16:08:14 UTC
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).

Comment 7 Oliver Falk 2009-11-18 16:21:00 UTC
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)

Comment 8 Jan Safranek 2009-11-19 12:41:05 UTC
(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.

Comment 9 Oliver Falk 2009-11-19 13:38:11 UTC
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

Comment 10 Fedora Update System 2009-11-19 14:49:27 UTC
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

Comment 11 Fedora Update System 2009-11-19 14:49:33 UTC
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

Comment 12 Fedora Update System 2009-11-19 14:49:39 UTC
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

Comment 13 Oliver Falk 2009-11-19 15:14:20 UTC
Hurray!

Comment 14 Fedora Update System 2009-11-20 05:12:16 UTC
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

Comment 15 Fedora Update System 2009-11-20 05:33:11 UTC
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

Comment 16 Fedora Update System 2009-11-20 05:34:43 UTC
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

Comment 17 Fedora Update System 2009-12-08 08:03:07 UTC
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.

Comment 18 Fedora Update System 2009-12-08 08:03:24 UTC
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.

Comment 19 Fedora Update System 2009-12-08 08:03:36 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.