Hi,
I have a problem to calculate percentage cpu usage in linux.
As I know that I can calculate the the percentage by this
formula,
long
cpu_diff_total =
diff( cpu_user1, cpu_user2 ) +
diff( cpu_syst1, cpu_syst2 ) +
diff( cpu_nice1, cpu_nice2 ) +
In the Formaula “ sum( delta( raw* )) “
means
sum
(delta RawIdle+ delta RawUser +delta RawNice+ delta RawKernel+ delta RawWait+
delta RawInterrupt+ delta RawSystem)
I had seen one more way of doing it
As all these values are cpu ticks. And it is 100 ticks per second
Hello -
I'm porting net-snmp to Apollo Domain/OS. I ran configure, and
things went fine until config.status ran. I get the following message:
-
config.status: creating Makefile
Too many commands, last: s,@module_list@, mibII ucd_snmp snmpv3mibs
notification target agent_mibs agentx util
So, if you've been itching to try embedded perl in snmpd or snmptrapd, grab
net-snmp-5.2.2.pre1 from http://www.net-snmp.org/download/ when it appears
(should be later today, maybe Monday), and let us know how it works! (Grab the
V5-2-patches cvs branch if you can't wait.)
hi robert,
fyi, attem
On Tue, Sep 20, 2005 at 01:29:39PM +0200, Timothy S. Bowers wrote:
Well, Dave, I suppose you are right.
Timothy, what OS are you running on?
> hecking syslog.h presence... yes
> checking for syslog.h... yes
> checking for unistd.h... (cached) yes
> checking netinet/tcpip.h usability... no
> chec
On Tue, Sep 20, 2005 at 11:06:34AM -0400, sasson, shuki wrote:
> Hi Magnus, I have retrieved the 5.24 version of agent_trap.c and observed
> the fix:
>
> The code should automatically add udp6: prefix and :port number suffix.
Here I actually agree that the code should add a reasonable port prefix
> Hi all,
> I´m new in coding master agent. I´m trying to develop a master agent
> (a table) and a sub-agent(another table). I´ve created the
> snmpd.conf with master agentx. Then I executed the master agent and
> everything was fine. Then I tried to execute the sub-agent and then
> I´ve found
On Tue, 2005-09-20 at 20:47 +0530, Naganarasimha wrote:
> Is there any way to find out the Disk Usage for each drives in
> linux( SuSE linux 9.0, having net snmp 5.1)?
man snmpd.conf
See the "disk" directive.
Dave
---
SF.Net email is
On Tue, 2005-09-20 at 20:40 +0530, Naganarasimha wrote:
> Can some one please inform how to get the percentage of
> CPU utilized by using this OID.
Take a reading of the various ssCPURaw* objects.
Wait a bit.
Take another reading of these object.
Calculate the differences.
The CPU idle percentage
On Tue, 2005-09-20 at 12:09 -0300, Rafael Garabato wrote:
> I am developing a snmp client using snmp version 3. After
> the snmp_open, the session variable that is returned has its
> s_snmp_errno element set to SNMPERR_UNKNOWN_ENG_ID.
> The client works all right in spite of thi
On Tue, 2005-09-20 at 11:06 -0400, sasson, shuki wrote:
> This will only work for IPv6 when the address is given in a format:
>
> udp6:[3ffe::1]:161
Not quite.
This code will work when the address is given in the format:
udp6:something
That is the supported syntax for non-IPv4 addresses.
It
Dave, David,
Thanks a lot for your detailed responses.
Cheers,
Dipesh
"David T. Perkins" <[EMAIL PROTECTED]> wrote:
HI,A "better solution" is "better MIB design". And of coursesome of us wished that the error code "tooComplex" waspresent.But seriously, a MIB designer can make a huge difference.
Is there any way to find out the Disk
Usage for each drives in linux( SuSE linux 9.0, having net snmp 5.1)?
I am asking this because hrStorage table
is not giving values for hrStorageSize, hrStorageUsed
Hence I am not able to find out the disk
utilized and its capacity.
Can some one please inform how to get the percentage of CPU utilized by
using this OID.
And why is ssCPUIdle deprecated?
And is this value, average over past few minutes?
Because I see from the "top" command in linux that the CPU
idle time is changing but this value from snmpwalk is n
Hello there,
I am
developing a snmp client using snmp version 3. After the snmp_open, the
session variable that is returned has its s_snmp_errno element set to
SNMPERR_UNKNOWN_ENG_ID. I took a look at the snmpv3_engine_ID_probe
function, which is the one that throws this error a
Hi Magnus, I have retrieved the 5.24 version of agent_trap.c and observed
the fix:
int
create_trap_session(char *sink, u_short sinkport,
char *com, int version, int pdutype)
{
netsnmp_session session, *sesp;
char *peername = NULL;
int len;
HI,
A "better solution" is "better MIB design". And of course
some of us wished that the error code "tooComplex" was
present.
But seriously, a MIB designer can make a huge difference.
Of course, if you are implementing a MIB that was designed
by someone that had no idea of the cost to code the de
hecking syslog.h presence... yes
checking for syslog.h... yes
checking for unistd.h... (cached) yes
checking netinet/tcpip.h usability... no
checking netinet/tcpip.h presence... yes
configure: WARNING: netinet/tcpip.h: present but cannot be compiled
configure: WARNING: netinet/tcpip.h: check fo
On Mon, 2005-09-19 at 11:01 -0700, Dipesh Gorashia wrote:
> Question:
> While proccessing varbinds "simultaneousluy", the
> above consistency check
>
> --> should be made for each variable in varbind only
> against existing configuration on the system?
>
> --> should the variables in varbinds b
On Sun, 2005-09-18 at 21:11 +0200, Magnus Fromreide wrote:
> On Fri, Sep 16, 2005 at 04:06:06PM +0100, Dave Shield wrote:
> >Is there anything in particular
> > that you think "messes up configure.in" unnecessarily?
>
> It is mainly that it changes the style used
> but
On Mon, 2005-09-19 at 00:17 -0500, Dey, Rajnish wrote:
> Can we generate .cpp file using mib2c option?
No.
Net-SNMP is written in C, so mib2c is designed to
generate C code.
If you want to treat this as C++, you'll need to
rename the (and possibly tweak the code) manually.
Dave
--
21 matches
Mail list logo