Den 05-07-2012 20:36, Bruce Shaw skrev: > 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?
Looking at /usr/include/sys/kstat.h, rtime should be the variable that tells you how long the disk has been busy. /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