On 31/01/2008, Larry Low <[EMAIL PROTECTED]> wrote:
> The /proc/<pid>/status 15 character limit seems to be a limit of the linux
> kernel. Is this expected?
You'd really need to ask the Linux kernel people about that.
Checking the kernel source code, the internal header file
includes a definition:
struct task_struct {
:
char comm[16];
:
}
And this structure is what is used in the /proc/{pid}/status
interface. So yes - the process name does appear to be
explicitly limited to 15 characters.
I'm currently working my way through the various Host Resources
MIB implementations, consolidating the underlying data gathering
between these and the equivalent UCD-specific MIB groups.
The handling of running processes is on that list, though it
might take a little while before this work becomes available.
But at that stage, I would hope to be able to improve the detection
of process names.
Not that this helps you in your immediate problem, I know.
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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