Ace, tks Dave. I have managed to get a work around going using NET-SNMP-EXTEND and a custom ps program I wrote. This work on both Linux and Tru64 which is good enough for a version 1. So next I will take your suggestions and see what I can do.
Tks Regards Glen Bremner-Stokes | [EMAIL PROTECTED] INGRES Ingres Europe Limited | St Martin's Place | 51 Bath Road | Slough | Berkshire | SL1 3UF | UK Mobile: +44 7918 721 973 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield Sent: 31 March 2008 14:33 To: Glen Bremner-Stokes Cc: [email protected] Subject: Re: Process monitoring - Linux and Tru64 On 28/03/2008, Glen Bremner-Stokes <[EMAIL PROTECTED]> wrote: > I can see (as per some previous list mails) that process monitoring > uses pr_fname (16 bytes) as per the nix documentation How the agent retrieves information about running processes depends on the precise O/S you are using. Checking the code, the 'pr_fname' field only appears to be used on Solaris kit (reading this from /proc/{pid}/psinfo). Other systems use a choice of ioctl calls (BSDi), the 'getprocs()' API (AIX), /proc/{pid}/cmdline or /proc/{pid}/status (Linux), nlist (Ultrix), KVM (alternative on Solaris), or by parsing the output of 'ps' (everything else). You may need to do a bit of poking about to check with block of code is active on your particular kit. See the (various) routines 'sh_count_procs()' in the file mibgroup/ucd-snmp/proc.c Dave ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
