Ad Widget

Collapse

how to check Disk usage in % for windows?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jme_net
    Junior Member
    • Aug 2010
    • 6

    #1

    how to check Disk usage in % for windows?

    Hello folks...perhaps you can help me...

    I want to create an item to check how much a disk is in use (in %).
    I know I could use "vfs.fs.size[c:,pfree]" to check how much this is free but that's not what I'm looking for.

    Also, I noticed that using "vfs.fs.size[c:,pused]" returns data in bytes and NOT in %.
    According to the Zabbix manual, this seems to be the normal behavior now in 1.8.2.


    Well, If anyone could give me a hand on that..i'd appreciate it.. ;-)

    Or if anyone would know how to use some math on zabbix...let's say:
    ("vfs.fs.size[c:,pused]" * 100) / Total Disk Space

    don't know if it's possible to do such a thing...

    Thank you in advance!
  • jme_net
    Junior Member
    • Aug 2010
    • 6

    #2
    I could find a way to do it...
    zabbix has this "calculated functions"...

    More details here:
    http://www.zabbix.com/documentation/...lculated_items

    Comment

    • Zaniwoop
      Senior Member
      • Jan 2010
      • 232

      #3
      yes, use a calculated function such as 100*last("vfs.fs.size[c:,free]")/last("vfs.fs.size[c:,total]") for % free on C:

      Comment

      • jme_net
        Junior Member
        • Aug 2010
        • 6

        #4
        Yes..that one works, however, I wanted/needed to check the used percentage and not the free percentage ...
        So I used:
        100-last("vfs.fs.size[c:,pfree]")

        ;-)

        Comment

        Working...