iowait graphics

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

mtsm
Posts: 12
Joined: Fri Oct 21, 2005 8:08 am

Post by mtsm »

I tried to modify the existing CPU usage graph template and add iowait ...but the graph became to confuse...i decided to make an IOWait x CPU Idle graph....(separate graph template) it's nice now...thanks for the help!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Just compiled the modified Graph Template along with ALL xxxCPUxxx OIDs from HOST MIB. Currently, I'm not that satisfied, as it does not show exactly 100 % as it should. See screenshot attached
Reinhard
Attachments
Modified ucd/net CPU Graph
Modified ucd/net CPU Graph
Bildschirmfoto-3.png (93.59 KiB) Viewed 9229 times
User avatar
knebb
Cacti User
Posts: 138
Joined: Tue Sep 19, 2006 11:29 am

Post by knebb »

lvm wrote:Just compiled the modified Graph Template along with ALL xxxCPUxxx OIDs from HOST MIB. Currently, I'm not that satisfied, as it does not show exactly 100 % as it should. See screenshot attached
Reinhard
Ok, looks great. Two (three) questions:

1. Can you export this template, so I can download it? :D
2. Do I really have to touch all existing DataSources? :o We have some more hosts....
[EDIT]3. What about SMP-Hosts? Does it graph them right?
User avatar
knebb
Cacti User
Posts: 138
Joined: Tue Sep 19, 2006 11:29 am

Post by knebb »

mtsm wrote:nice!! it's working...i extended ucd/net cpu usage as you suggested
I have to wakeup the old thread- because I have the same problem. I want to monitor the IOWait from my linux-boxes.

I looked in the UCD-SNMP-MIB.txt and found an entry:

Code: Select all

ssCpuRawWait OBJECT-TYPE
    SYNTAX      Counter32
    MAX-ACCESS  read-only
    STATUS      current
    DESCRIPTION
        "iowait CPU time. This is primarily a SysV thingie"
    ::= { systemStats 54 }
So I added a data template copied from the ucd/net - CPU Usage - Nice and changed the related values. As OID I took the "nice" OId (.1.3.6.1.4.1.2021.11.51.0) and changed it to .1.3.6.1.4.1.2021.11.54.0 (54 from the MIB, last line).
Are these steps right?

Ok, then I created a new graph template (copied from 02 - ucd/net - CPU Usage) and inserted four new items (with same setting as the other values like nice and system).
This graph template has been added to a ucd-host.

Now there's my problem, that no IOWaits will be monitored. The rrd-graph is shown and he shows the values, but he shows no iowaits (and there are some!) :cry:

In the png at IT-Wait I find "nan" (on System, too :o ). Why are they "nan"? :roll:
Anyone any hints?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please see my signature for a link to NaN Debugging. Post a screenshot and add the full rrdtool graph statement (from Graph Management, DEBUG) to help debugging
Reinhard
User avatar
knebb
Cacti User
Posts: 138
Joined: Tue Sep 19, 2006 11:29 am

Post by knebb »

lvm wrote:Please see my signature for a link to NaN Debugging. Post a screenshot and add the full rrdtool graph statement (from Graph Management, DEBUG) to help debugging
Reinhard
THX for your tips. The nan Links didn't help at all. But I foudn the solution myself:
We used RedHat EL3. Red Hat has patched his 2.4 Kernel to show IO-Waits in top, vmstat and so on.
But they haven't patched their net-snmp packet, which only shows IO-Waits if there is a 2.6 Kernel :evil:
I'm on the way to recompile the net-snmp packet to skip the test for the 2.6 kernel.
User avatar
Instigater
Cacti User
Posts: 141
Joined: Mon Dec 13, 2004 5:14 pm
Location: Jurmala, Latvia

Post by Instigater »

lvm, graph exceeds 100% because of system variable is interupt + kernel.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Tank you for your inout. Would you prefer just to omit system, then?
Reinhard
cshanerc
Posts: 2
Joined: Wed Jan 24, 2007 8:26 am
Location: Maryland, USA

Template?

Post by cshanerc »

Gandalf,

Would it be possible to post your template? I've created one of my own, but wasn't sure if I had it all right ... so I've been searching and found this thread.

Thanks!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Here they are.
Pay Attention! If you are using non-standard rrd definitions, importing this will reset them to default. Please write your current settings down to be able to restore them.
Warning to users of non-standard polling times! The precaution appies to you as well!
Exported using cacti 0.8.6j, fully patched. So you will need at least this version to import

Reinhard
Attachments
How it looks like
How it looks like
iostat.png (79.07 KiB) Viewed 8739 times
cacti_graph_template_ucdnet_full_cpu_usage.xml
The Graph Templates, including all dependencies.
(38.9 KiB) Downloaded 1447 times
Last edited by gandalf on Sat Jan 27, 2007 3:33 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Only way to fix the 100% is to make it a script and "walk" the OID's so that it get the information from the kernel all in one OS call. By performing multiple snmpget's, you don't achieve this (I think).

This is how it's been with other type of transactions in the past. Problem with this is that it slow's things down of course. Script (outside of script server) slow things down measurably.

TheWitness
Last edited by TheWitness on Sat Jan 27, 2007 3:56 pm, edited 1 time in total.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

TheWitness wrote:Only way to fix the 100% is to make it a script and "walk" the interface ...
Hmm, are we talking about the same topic? I don't get the clue
Reinhard
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I edited my sleepish comment. It's the OID's not the Interfaces Larry (you idiot). Ok enough of that, well I suspect that you poll the entire host cpu information at once, it will pull the information from the operating system all at once thus keeping your total at 100%.

On the other hand, if you make multiple calls similar to the way that the "out-of-the-box" net-snmp graph template does, net-snmp (agent) polls the OS multiple times, resulting in minor deviations from 100%.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
cshanerc
Posts: 2
Joined: Wed Jan 24, 2007 8:26 am
Location: Maryland, USA

Thanks!

Post by cshanerc »

Works great ...
mmuse
Posts: 8
Joined: Fri Jan 26, 2007 6:43 pm

Multiple CPU support?

Post by mmuse »

I understand there is another thread on multiple CPU (e.g 2-way, 4-way servers). Does this xml takes that in consideration?

Thanks
MM
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest