Ad Widget

Collapse

Disk / Memory USED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fonzisherman
    Junior Member
    • Sep 2009
    • 11

    #1

    Disk / Memory USED

    Hi I have been searching through the forums and howtos for this, and have come up empty. I am curious how to get something like vfs.fs.size [c:,used] to work, and vm.memory.size [used]. i know there is a total and free, so if there is a way to have an item as a calculation (total - free) that would be fine, but looking at my graphs it seems counter intuitive to show free space and not used. i would basically like to graph on used space, memory, is there a way?
  • MrKen
    Senior Member
    • Oct 2008
    • 652

    #2
    According to page 101 Zabbix manual, there is no vm.memory.size[used].

    vfs.fs.size [c:,used] works fine for me.

    Type: zabbix agent
    Key: vfs.fs.size[c:,used]
    Type of info: Numeric (unsigned)
    Units: B

    Graphs for disk space, I use Total disk space & Used disk space. You can clearly see how much space is free.

    HTH
    Disclaimer: All of the above is pure speculation.

    Comment

    • fonzisherman
      Junior Member
      • Sep 2009
      • 11

      #3
      thanks, disk space used is working. has anyone done anything to get memory used somehow? this is on a windows server.

      Comment

      • fonzisherman
        Junior Member
        • Sep 2009
        • 11

        #4
        anyone graphing on memory used somehow? seems like it would be a common way to visualize.. any help is appreciated!

        Comment

        • MrKen
          Senior Member
          • Oct 2008
          • 652

          #5
          Not as difficult as you think.

          In fact, it's the same as what I posted above for Disk Space graphs. Except this time you use

          vm.memory.size[total]
          vm.memory.size[free]

          MrKen
          Disclaimer: All of the above is pure speculation.

          Comment

          • Calimero
            Senior Member
            • Nov 2006
            • 481

            #6
            Originally posted by MrKen
            vm.memory.size[total]
            vm.memory.size[free]
            There's also vm.memory.size[available] which is memory that's free and "freeable" (free + cache + buffers) and is usually a bit more interesting than just "free".

            Comment

            • fonzisherman
              Junior Member
              • Sep 2009
              • 11

              #7
              thanks, i guess its just a little counter-intuitive to see available/free vs used. from a monitoring/alert standpoint it doesnt really matter but from a graphing perspective i think 'used' would make more sense at a glance.

              Comment

              • MrKen
                Senior Member
                • Oct 2008
                • 652

                #8
                Originally posted by Calimero
                There's also vm.memory.size[available] which is memory that's free and "freeable" (free + cache + buffers) and is usually a bit more interesting than just "free".
                That's very interesting. Thanks for that.

                I couldn't find it in my manual V1.6 Release 014, so I just downloaded the latest version, Release 017, and guess what? it's not there either.

                Then I came across ZBX-390 where Alexei, on 8 July, is quoted as saying, "Fixed for 1.6.x manual. The old manual for 1.4.x won't be amended."

                MrKen
                Disclaimer: All of the above is pure speculation.

                Comment

                • Calimero
                  Senior Member
                  • Nov 2006
                  • 481

                  #9
                  Originally posted by MrKen
                  I couldn't find it in my manual V1.6 Release 014, so I just downloaded the latest version, Release 017, and guess what? it's not there either.

                  Then I came across ZBX-390 where Alexei, on 8 July, is quoted as saying, "Fixed for 1.6.x manual. The old manual for 1.4.x won't be amended."
                  I discovered it while browsing the zabbix_agent code for a unrelated problem.

                  And as we now have 'available' and 'total' I wish there were a 'used' parameter (total - available). Probably not a big change.

                  So far we use a UserParameter (free | grep ...) to get that value. But well... the less userparameters the better.

                  Comment

                  • hannibal20
                    Junior Member
                    • Jan 2007
                    • 22

                    #10
                    the vm.memory.size[available] item works only under linux ;-/

                    Comment

                    • harmonica
                      Senior Member
                      • Jan 2009
                      • 251

                      #11
                      I,

                      Perhaps with one script. Something as this:

                      #!/bin/bash


                      MTOTAL=`cat /proc/meminfo | grep "MemTotal" | sed 's/MemTotal: //g' | sed 's/ kB//g'`
                      MFREE=`cat /proc/meminfo | grep "MemFree" | sed 's/MemFree: //g' | sed 's/ kB//g'`
                      Kb=1024

                      echo $(((MTOTAL-MFREE)*Kb))

                      exit

                      Comment

                      Working...