Improved Ucd/net cpu usage template (with iowait)

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
denger
Posts: 5
Joined: Thu Apr 03, 2008 6:43 pm

Improved Ucd/net cpu usage template (with iowait)

Post by denger »

I was not 100% satisfied with the stock cpu usage, mostly because it lacked IO wait portion. Attached is my improved template, it imports cleanly into 0.8.7g (but I know it does not into most earlier versions).
Sample graph:

Image

Download template here: http://www.globaltap.com/cacti_graph_te ... iowait.xml

Sorry that above is not a hot link, but my url bbcode is off for some reason, and I cannot seem to turn it on.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Improved Ucd/net cpu usage template (with iowait)

Post by gandalf »

Thanks for posting.
Would you please mind to publish that at http://docs.cacti.net/templates?
You may want to create a userid at http://bugs.cacti.net first, we use those ids on the docs site as well.
R.
denger
Posts: 5
Joined: Thu Apr 03, 2008 6:43 pm

Re: Improved Ucd/net cpu usage template (with iowait)

Post by denger »

Where would you like me to post it there? Contributed Graph Templates?


BTW, this uses only ucd/snmp values already available from any ucd/snmp host (or should be available).
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Improved Ucd/net cpu usage template (with iowait)

Post by gandalf »

denger wrote:Where would you like me to post it there? Contributed Graph Templates?
Yep. Thanks
R.
smaugs
Posts: 10
Joined: Mon Jan 09, 2012 3:07 am

Re: Improved Ucd/net cpu usage template (with iowait)

Post by smaugs »

Hi Gandalf,

maybe I'm wrong, but I think your template is not correct.

In your template you take the raw CPU-time-counters and simply printing them on a graph (without actually calculating the percentage value via a CDEF). For whatever reason it sums up to a value of about 100 - but why ??

maybe someone can give me a hint :)

ciao, flo
smaugs
Posts: 10
Joined: Mon Jan 09, 2012 3:07 am

Re: Improved Ucd/net cpu usage template (with iowait)

Post by smaugs »

It really seem to display the correct values (compared it with the default statistics), but why ?????
smaugs
Posts: 10
Joined: Mon Jan 09, 2012 3:07 am

Re: Improved Ucd/net cpu usage template (with iowait)

Post by smaugs »

after some research I discovered the following:

the raw snmp value is the CPU time spent in milliseconds for the corresponding workload (idle,wait,user,system,...)

because cacti is breaking down the 5 minute-counter-values into per-second-values AND the values are in milliseconds it displays the correct value.

:D now I'll use the template - thanks for your work - nice template !
roseqiu
Posts: 2
Joined: Tue Oct 23, 2012 2:12 am

Re: Improved Ucd/net cpu usage template (with iowait)

Post by roseqiu »

Thanks a lot for these scripts and templates! Having a little trouble with the perl script though, trying to set the port to 8080. It doesn't seem to recognize the change.http://www.freerun-tn-au.com/
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests