Thank You very much Dave.
I was just comparing with the output of top command which gives me
percentage of CPU utilization of each process.
Yes it should be over a time period.

So if within a time duration of 1 minute this couter gets incremented by x
then the CPU utilization percentage would be equals to =
(x / (60 * 100))

also i need to take care of roundoff conditions as its SYNTAX is Integer32
(0..2147483647).

Please correct me if i am wrong somewhere.

Just one small doubt
in the snmpd.conf file we use the "monitor" keyword to monitor OIDs using
DISMAN
and -D option to specify the delta values
Now as the difference is always relative to the couters previous value, So
is there any way to specify it, such that DISMAN would generate
notifications for the same?

Please refer me some links on tutorial for DISMAN-EVENT and its usage and
ALARM Manager

Thanks and Regards,
Sandeep Patra

On Fri, Aug 28, 2009 at 1:49 PM, Dave Shield <[email protected]>wrote:

> 2009/8/28 sandeep patra <[email protected]>:
> > I think HOST-RESOURCES-MIB::hrSWRunPerfCPU
> > would provide me "the number of centi-seconds of the total system CPU
> > resource that a running process is consuming"
>
> Yes - this gives you the raw data that you need.
>
> > but i want to monitor the current percentage of CPU a perticular process
> is
> > consuming. (e.g. 10% of CPU)
>
> That's a meaningless statement.
> There is no such thing as "current percentage".
>
> At any given instant, only one process will be using each CPU,
> and all other processes will be inactive.   So the (instantaneous)
> percentage will either be 100% or 0%, with nothing in between.
>
>
> Percentage utilisation only makes sense when calculated over
> a defined time period.   (% over the last minute, hour, day, century....)
>
>
> > I have seen that HOST-RESOURCES-MIB::hrSWRunPerfCPU
> > value is always increamenting.
>
> Yes - it's effectively a counter (though not strictly defined as such).
> You'll need to look at monitoring the delta between values, rather
> than a single value itself.
>  Have a read-up on the use of counters in SNMP.
>
>
> Dave
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to