Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun May 28, 2017 11:00 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: diskio087d uses 32 bit counters and experiences wrap
PostPosted: Sat Mar 11, 2017 12:48 pm 
Offline

Joined: Wed Jul 08, 2015 4:24 am
Posts: 5
I've been using diskio087d plugin for some time but noticed today that it was not showing the full extent of i/o done to my disk. I had reinstalled the system and wanted to check that everything was graphing correctly so I kicked off a `dd if=/dev/sda of=/dev/null` and left it running and the resulting cacti graph peaked at around 10MB/s yet dd is telling me that it's doing nearer 200MB/s. I checked the plugin diskio.xml and it is using snmp OIDs that are 32 bit counters and this wraps around in a single 5 minute cycle and gives misleading numbers. There are 64 bit counters in the same oid range so I changed the xml as per

Code:
--- /usr/share/cacti/resource/snmp_queries/disk_io.xml   2017-03-11 13:55:25.472386465 +0000
+++ /tmp/puppet-file20170311-18930-w11cy2   2017-03-11 17:46:32.367725798 +0000
@@ -23,14 +23,14 @@
                         <method>walk</method>
                         <source>value</source>
                         <direction>output</direction>
-                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.12</oid>
+                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.3</oid>
                 </hrDiskIONRead>
                 <hrDiskIONWrite>
                         <name>Number of Bytes Written</name>
                         <method>walk</method>
                         <source>value</source>
                         <direction>output</direction>
-                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.13</oid>
+                        <oid>.1.3.6.1.4.1.2021.13.15.1.1.4</oid>
                 </hrDiskIONWrite>
                 <hrDiskIOReads>
                         <name>Number of Read accesses</name>


then deleted and recreated the graph (easier than fixing up the rrd) and now it shows me more realistic numbers in the 150+MB/s range.

Oh, that patch is doing the exact opposite as it's puppet trying to back out my change... oops.


Top
 Profile  
 
 Post subject: Re: diskio087d uses 32 bit counters and experiences wrap
PostPosted: Fri Mar 31, 2017 10:09 am 
Offline

Joined: Wed Jul 08, 2015 4:24 am
Posts: 5
Wel, I see that gandalf appears to no longer post here (last seen in 2015). Did someone take over his cacti plugins?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group