Discussion:
[mrtg] CPU Utilization in %
Nilesh Sutar
2009-01-08 14:06:46 UTC
Permalink
Hi Sir,

I have configured mrtg-rrd for individual cpu utilization. using
snmp.I have mibs for snmp ,give output in bytes.

i used multiple target for each cpu in % and providing value in bytes but in
graphs system cpu shows correct graph scale and reading. but for usr cpu and
nice cpu ,graph shows

Max In: 67.2 % (8.4%) Average In: 40.6 % (5.1%) Current In: 39.1 % (4.9%)
Max Out: 67.2 % (8.4%) Average Out: 40.6 % (5.1%) Current Out: 39.1 % (4.9%)
like this .then i cross checked this value by hiting top command then value
in bracket ( %) is perfect. but why value wrotes before bracket and how it
comes ???. I am providing value in bytes to each target then how it is
converted in %

here is cfg file:

Target[localhost.cpu] :442545 (#comes by snmpwalk)
ShortLegend[localhost.cpu]: %
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: System CPU
PageTop[localhost.cpu]: <H1>Percentage of System CPU Load %</H1>
Target[localhost.nicecpu] :0
ShortLegend[localhost.nicecpu]: %
MaxBytes[localhost.nicecpu]: 100
Title[localhost.nicecpu]: Nice CPU
PageTop[localhost.nicecpu]: <H1>Percentage of Nice CPU Load %</H1>
Target[localhost.usrcpu] :758208
ShortLegend[localhost.usrcpu]: %
MaxBytes[localhost.usrcpu]: 100
Title[localhost.usrcpu]: User CPU
PageTop[localhost.usrcpu]: <H1>Percentage of User CPU Load %</H1>
Legend1[localhost.cpu]: Active CPU in % (Load)
Legend2[localhost.cpu]:
Legend3[localhost.cpu]:
Legend4[localhost.cpu]:
LegendI[localhost.cpu]: Active
LegendO[localhost.cpu]:
Options[localhost.cpu]: growright,gauge,nopercent


I think i am doing in wrong way !!!


--
Regards,
Nilesh Sutar.
Matthew Petach
2009-01-09 02:04:08 UTC
Permalink
I'll let someone else explain why, but I graph CPU for all
our routers, and I set the MaxBytes to 800, and then
everything just works like you'd expect.

Matt




________________________________
From: Nilesh Sutar <***@gmail.com>
To: Tobi Oetiker <***@lists.oetiker.ch>
Sent: Thursday, January 8, 2009 6:06:46 AM
Subject: [mrtg] CPU Utilization in %


Hi Sir,
I have configured mrtg-rrd for individual cpu utilization. using snmp.I have mibs for snmp ,give output in bytes.
i used multiple target for each cpu in % and providing value in bytes but in graphs system cpu shows correct graph scale and reading. but for usr cpu and nice cpu ,graph shows
Max In: 67.2 % (8.4%) Average In: 40.6 % (5.1%) Current In: 39.1 % (4.9%)
Max Out: 67.2 % (8.4%) Average Out: 40.6 % (5.1%) Current Out: 39.1 % (4.9%)
like this .then i cross checked this value by hiting top command then value in bracket ( %) is perfect. but why value wrotes before bracket and how it comes ???. I am providing value in bytes to each target then how it is converted in %

here is cfg file:
Target[localhost.cpu] :442545 (#comes by snmpwalk)
ShortLegend[localhost.cpu]: %
MaxBytes[localhost.cpu]: 100
Title[localhost.cpu]: System CPU
PageTop[localhost.cpu]: <H1>Percentage of System CPU Load %</H1>
Target[localhost.nicecpu] :0
ShortLegend[localhost.nicecpu]: %
MaxBytes[localhost.nicecpu]: 100
Title[localhost.nicecpu]: Nice CPU
PageTop[localhost.nicecpu]: <H1>Percentage of Nice CPU Load %</H1>
Target[localhost.usrcpu] :758208
ShortLegend[localhost.usrcpu]: %
MaxBytes[localhost.usrcpu]: 100
Title[localhost.usrcpu]: User CPU
PageTop[localhost.usrcpu]: <H1>Percentage of User CPU Load %</H1>
Legend1[localhost.cpu]: Active CPU in % (Load)
Legend2[localhost.cpu]:
Legend3[localhost.cpu]:
Legend4[localhost.cpu]:
LegendI[localhost.cpu]: Active
LegendO[localhost.cpu]:
Options[localhost.cpu]: growright,gauge,nopercent



I think i am doing in wrong way !!!
--
Regards,
Nilesh Sutar.
Nilesh Sutar
2009-01-09 06:06:54 UTC
Permalink
Hi Sir,

still i didn't get any clue and satisfied answer and what that
blue line indicates ??

On Fri, Jan 9, 2009 at 7:34 AM, Matthew Petach <***@yahoo.com> wrote:

>
> I'll let someone else explain why, but I graph CPU for all
> our routers, and I set the MaxBytes to 800, and then
> everything just works like you'd expect.
>
> Matt
>
> ------------------------------
> *From:* Nilesh Sutar <***@gmail.com>
> *To:* Tobi Oetiker <***@lists.oetiker.ch>
> *Sent:* Thursday, January 8, 2009 6:06:46 AM
> *Subject:* [mrtg] CPU Utilization in %
>
> Hi Sir,
>
> I have configured mrtg-rrd for individual cpu utilization. using
> snmp.I have mibs for snmp ,give output in bytes.
>
> i used multiple target for each cpu in % and providing value in bytes but
> in graphs system cpu shows correct graph scale and reading. but for usr cpu
> and nice cpu ,graph shows
>
> Max In: 67.2 % (8.4%) Average In: 40.6 % (5.1%) Current In: 39.1 % (4.9%)
> Max Out: 67.2 % (8.4%) Average Out: 40.6 % (5.1%) Current Out: 39.1 %
> (4.9%)
> like this .then i cross checked this value by hiting top command then value
> in bracket ( %) is perfect. but why value wrotes before bracket and how it
> comes ???. I am providing value in bytes to each target then how it is
> converted in %
>
> here is cfg file:
>
> Target[localhost.cpu] :442545 (#comes by snmpwalk)
> ShortLegend[localhost.cpu]: %
> MaxBytes[localhost.cpu]: 100
> Title[localhost.cpu]: System CPU
> PageTop[localhost.cpu]: <H1>Percentage of System CPU Load %</H1>
> Target[localhost.nicecpu] :0
> ShortLegend[localhost.nicecpu]: %
> MaxBytes[localhost.nicecpu]: 100
> Title[localhost.nicecpu]: Nice CPU
> PageTop[localhost.nicecpu]: <H1>Percentage of Nice CPU Load %</H1>
> Target[localhost.usrcpu] :758208
> ShortLegend[localhost.usrcpu]: %
> MaxBytes[localhost.usrcpu]: 100
> Title[localhost.usrcpu]: User CPU
> PageTop[localhost.usrcpu]: <H1>Percentage of User CPU Load %</H1>
> Legend1[localhost.cpu]: Active CPU in % (Load)
> Legend2[localhost.cpu]:
> Legend3[localhost.cpu]:
> Legend4[localhost.cpu]:
> LegendI[localhost.cpu]: Active
> LegendO[localhost.cpu]:
> Options[localhost.cpu]: growright,gauge,nopercent
>
>
> I think i am doing in wrong way !!!
>
> --
> Regards,
> Nilesh Sutar.
>
>


--
Regards,
Nilesh Sutar.
Nilesh Sutar
2009-01-09 11:46:17 UTC
Permalink
Hi All,

I have solved my problem(CPU Utilization in %) but i want to give
box with color that indicates incomming/outgoing traffic. i have done by
Legend1234 but not getting output.

On Fri, Jan 9, 2009 at 11:36 AM, Nilesh Sutar <***@gmail.com>wrote:

> Hi Sir,
>
> still i didn't get any clue and satisfied answer and what that
> blue line indicates ??
>
> On Fri, Jan 9, 2009 at 7:34 AM, Matthew Petach <***@yahoo.com> wrote:
>
>>
>> I'll let someone else explain why, but I graph CPU for all
>> our routers, and I set the MaxBytes to 800, and then
>> everything just works like you'd expect.
>>
>> Matt
>>
>> ------------------------------
>> *From:* Nilesh Sutar <***@gmail.com>
>> *To:* Tobi Oetiker <***@lists.oetiker.ch>
>> *Sent:* Thursday, January 8, 2009 6:06:46 AM
>> *Subject:* [mrtg] CPU Utilization in %
>>
>> Hi Sir,
>>
>> I have configured mrtg-rrd for individual cpu utilization.
>> using snmp.I have mibs for snmp ,give output in bytes.
>>
>> i used multiple target for each cpu in % and providing value in bytes but
>> in graphs system cpu shows correct graph scale and reading. but for usr cpu
>> and nice cpu ,graph shows
>>
>> Max In: 67.2 % (8.4%) Average In: 40.6 % (5.1%) Current In: 39.1 % (4.9%)
>> Max Out: 67.2 % (8.4%) Average Out: 40.6 % (5.1%) Current Out: 39.1 %
>> (4.9%)
>> like this .then i cross checked this value by hiting top command then
>> value in bracket ( %) is perfect. but why value wrotes before bracket and
>> how it comes ???. I am providing value in bytes to each target then how it
>> is converted in %
>>
>> here is cfg file:
>>
>> Target[localhost.cpu] :442545 (#comes by snmpwalk)
>> ShortLegend[localhost.cpu]: %
>> MaxBytes[localhost.cpu]: 100
>> Title[localhost.cpu]: System CPU
>> PageTop[localhost.cpu]: <H1>Percentage of System CPU Load %</H1>
>> Target[localhost.nicecpu] :0
>> ShortLegend[localhost.nicecpu]: %
>> MaxBytes[localhost.nicecpu]: 100
>> Title[localhost.nicecpu]: Nice CPU
>> PageTop[localhost.nicecpu]: <H1>Percentage of Nice CPU Load %</H1>
>> Target[localhost.usrcpu] :758208
>> ShortLegend[localhost.usrcpu]: %
>> MaxBytes[localhost.usrcpu]: 100
>> Title[localhost.usrcpu]: User CPU
>> PageTop[localhost.usrcpu]: <H1>Percentage of User CPU Load %</H1>
>> Legend1[localhost.cpu]: Active CPU in % (Load)
>> Legend2[localhost.cpu]:
>> Legend3[localhost.cpu]:
>> Legend4[localhost.cpu]:
>> LegendI[localhost.cpu]: Active
>> LegendO[localhost.cpu]:
>> Options[localhost.cpu]: growright,gauge,nopercent
>>
>>
>> I think i am doing in wrong way !!!
>>
>> --
>> Regards,
>> Nilesh Sutar.
>>
>>
>
>
> --
> Regards,
> Nilesh Sutar.
>



--
Regards,
Nilesh Sutar.
Steve Shipway
2009-01-09 20:12:06 UTC
Permalink
A standard MRTG Target always retrieves two variables. The green area represents the first variable; the blue line represents the second variable. You can use the 'noo' and 'noi' options to suppress one of the variables, if you choose.

Steve

________________________________
From: mrtg-***@lists.oetiker.ch [mrtg-***@lists.oetiker.ch] On Behalf Of Nilesh Sutar [***@gmail.com]
Sent: Friday, 9 January 2009 7:06 p.m.
To: Matthew Petach
Cc: Tobi Oetiker
Subject: Re: [mrtg] CPU Utilization in %


Hi Sir,

still i didn't get any clue and satisfied answer and what that blue line indicates ??
Continue reading on narkive:
Loading...