I'm assuming you mean diskio.c in agent/mibgroup/ucd-snmp.
# find . -type f -exec grep -l "devla_getstats" {} +
./agent/mibgroup/ucd-snmp/diskio.c
As far as I can tell, it gets its values for Solaris using kstat, which
returns...
# kstat -c disk | more
module: md instance: 10
name: md10 class: disk
crtime 17872115.8405128
nread 9592669184
nwritten 220757504
rcnt 0
reads 555107
rlastupdate 18713716.9618097
rlentime 5356.73464727
rtime 1225.729063647
snaptime 18713743.5354598
wcnt 0
wlastupdate 18713716.9497998
wlentime 118.604158357
writes 61408
wtime 118.494561652
of which we only use the nread, nwritten, reads and writes values. Is
there anything we can use there to construct the values I'm after?
Near as I can make out of the BSD code, the values are being returned by
"stat" and the linux code leads me to believe the value is being returned
from various places in /proc. Is this something we can leverage?
On Thu, Jul 5, 2012 at 3:39 AM, Niels Baggesen
<n...@users.sourceforge.net>wrote:
> On Wed, Jul 04, 2012 at 04:26:51PM -0600, Bruce Shaw wrote:
> > Are we supposed to be reporting diskIOLA1/5/10 correctly? If not, what
> > would it take?
>
> Have a look at the devla_getstats functions in hr_diskio.c. They
> generate the data. There are implementatios for FreeBSD and Linux.
>
> /Niels
>
> --
> Niels Baggesen - @home - Ã…rhus - Denmark - n...@users.sourceforge.net
> The purpose of computing is insight, not numbers --- R W Hamming
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders