Re: No hrSWRunPath in HOST-RESOURCES-MIB

Kamil Kisiel <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <C5F15FF5.8A85%[email protected]>
On 26/03/09 16:33 , "Dave Shield" <[email protected]> wrote:
> 2009/3/26 Kamil Kisiel <[email protected]>:
>> I tried another experiment with pid 2, kthreadd:
>> 
>> On my Gentoo machines:
>> snmpwalk ... hrSWRunPath.2
>> HOST-RESOURCES-MIB::hrSWRunPath.2 = STRING: "kthreadd"
>> 
>> On the openSUSE machines which are not working:
>> HOST-RESOURCES-MIB::hrSWRunPath.2 = No Such Instance currently exists at
>> this OID
> 
> OK - that would probably explain the behaviour you are seeing.
> 
> 
>> I verified that kthreadd is running as pid 2 on both machines
>> 
>> Running cat /proc/2/cmdline prints nothing on either.
> 
> It might be necessary to look at the contents a bit more closely.
> What does "od -c /proc/2/cmdline" display?   (on both systems)
> What about "head /proc/2/status" ?
> 

On openSUSE machine (non-working):
idose:~ # od -c /proc/2/cmdline
0000000
idose:~ # head /proc/2/status
Name:    kthreadd
State:    S (sleeping)
Tgid:    2
Pid:    2
PPid:    0
TracerPid:    0
Uid:    0    0    0    0
Gid:    0    0    0    0
FDSize:    64
Groups:    

On my Gentoo machine (working):
psicose ~ # od -c /proc/2/cmdline
0000000
psicose ~ # head /proc/2/status
Name:    kthreadd
State:    S (sleeping)
Tgid:    2
Pid:    2
PPid:    0
TracerPid:    0
Uid:    0    0    0    0
Gid:    0    0    0    0
FDSize:    64
Groups:    

I tried getting the hrSWRunPath for a bunch of other processes and it seems
on the openSUSE build it fails consistently on any kernel process (those
displayed as [foo] in ps output). I installed the exact same version of
net-snmp (5.4.2.1) on one of our Gentoo machines and it works fine. I think
that narrows it down to either some kind of configuration problem with the
openSUSE 11.1 distro, or something wrong with the way they built their
package.

- Kamil



Notice of Confidentiality: The information transmitted is intended only for the
person or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited. If you received this in error
please contact the sender immediately by return electronic transmission and then
immediately delete this transmission including all attachments without copying,
distributing or disclosing the same.


------------------------------------------------------------------------------
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.