Ad Widget

Collapse

Monitor Disk I/O in Bps on Ubuntu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moshikoy
    Member
    • Aug 2017
    • 56

    #1

    Monitor Disk I/O in Bps on Ubuntu

    Hi All!
    I would like to monitor Disk(partition) I/O rate in Bytes/sec (not ops) so I can create a graph
    I saw that linux 2.4+ doesn't support it by default

    it can be achieved using a calculated field.
    using these parameters:
    UserParameter=custom.vfs.dev.read.sectors[*],awk '{print $$3}' /sys/class/block/$1/stat
    UserParameter=custom.vfs.dev.write.sectors[*],awk '{print $$7}' /sys/class/block/$1/stat

    How should I parse a calculated field that will take in considiration the delta and a sector size of 512B?

    Thanks
    Mosh
  • moshikoy
    Member
    • Aug 2017
    • 56

    #2
    the main issue here is working with times between the alerts

    can someone provide an example?

    Comment

    • kaspars.mednis
      Senior Member
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Oct 2017
      • 349

      #3
      You can try to use delta (speed per second)
      It's basicall delta of two values divided by seconds between those values

      If you want to do some more manipulations with source data, you can use custom multiplier

      More info here (look at preprocessing)



      Regards,
      Kaspars

      Comment

      Working...