[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-coders
Subject:    Re: how to add info about other processes (i.e. other than linux
From:       anshul mittal <anshulmittal.nsit () gmail ! com>
Date:       2009-04-30 10:41:51
Message-ID: fa848e6f0904300329j3f70c7c0s65a37fe40b1c3727 () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


@wes

hi can u tell me the link of tutorials where i can understand what is going
on in the hr_swrun.c so that i can modify it to add the information about
the processes other than linux processes.
Regards

Anshul


On Tue, Apr 28, 2009 at 9:06 PM, Wes Hardaker <
hardaker@users.sourceforge.net> wrote:

> >>>>> On Tue, 28 Apr 2009 18:35:02 +0530, anshul mittal <
> anshulmittal.nsit@gmail.com> said:
>
> am> The output would thus consist of the standard info about the linux
> processes
> am> and the new appended info about the "other processes" read from the
> file
> ...
> am> It uses the functions in
> am> /agent/mibgroup/host/hr_swrun.c to get the info.
>
> Well, you found the right file to modify in order to achieve what you
> want.  You should probably start by looking at the tutorials for writing
> agent code, as you'll need to understand what's going on within that
> file.
>
> But...  I'm not sure what you're trying to do is wise in the first
> place.  You didn't explain your motivations and what you're trying to
> achieve, but you need to watch out for conflicts between the linux and
> your own processes.  I think there are probably better ways to
> accomplish what you want than reusing an existing table.
> --
> Wes Hardaker
> Please mail all replies to net-snmp-coders@lists.sourceforge.net
>

[Attachment #5 (text/html)]

@wes<br><br>hi can u tell me the link of tutorials where i can understand what is \
going on in the hr_swrun.c so that i can modify it to add the information about the \
processes other than linux processes.<br clear="all">Regards<br> <br>Anshul <br>
<br><br><div class="gmail_quote">On Tue, Apr 28, 2009 at 9:06 PM, Wes Hardaker <span \
dir="ltr">&lt;<a href="mailto:hardaker@users.sourceforge.net">hardaker@users.sourceforge.net</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> &gt;&gt;&gt;&gt;&gt; On Tue, 28 \
Apr 2009 18:35:02 +0530, anshul mittal &lt;<a \
href="mailto:anshulmittal.nsit@gmail.com">anshulmittal.nsit@gmail.com</a>&gt; \
said:<br> <br>
am&gt; The output would thus consist of the standard info about the linux \
processes<br> am&gt; and the new appended info about the &quot;other processes&quot; \
                read from the file<br>
...<br>
am&gt; It uses the functions in<br>
am&gt; /agent/mibgroup/host/hr_swrun.c to get the info.<br>
<br>
Well, you found the right file to modify in order to achieve what you<br>
want.  You should probably start by looking at the tutorials for writing<br>
agent code, as you&#39;ll need to understand what&#39;s going on within that<br>
file.<br>
<br>
But...  I&#39;m not sure what you&#39;re trying to do is wise in the first<br>
place.  You didn&#39;t explain your motivations and what you&#39;re trying to<br>
achieve, but you need to watch out for conflicts between the linux and<br>
your own processes.  I think there are probably better ways to<br>
accomplish what you want than reusing an existing table.<br>
<font color="#888888">--<br>
Wes Hardaker<br>
Please mail all replies to <a \
href="mailto:net-snmp-coders@lists.sourceforge.net">net-snmp-coders@lists.sourceforge.net</a><br>
 </font></blockquote></div><br>



------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf

_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic