Ad Widget

Collapse

strange behavior with vfs.fs.size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MADxHAWK
    Member
    • Apr 2011
    • 41

    #1

    strange behavior with vfs.fs.size

    Hi,

    vfs.fs.size[<dir>,used] always return same incorrect value.

    madx:~# zabbix_get -s radio-***.de -p 10050 -k vfs.fs.size[/etc,used]
    207932032
    madx:~# zabbix_get -s radio-***.de -p 10050 -k vfs.fs.size[/usr,used]
    207932052
    madx:~# zabbix_get -s radio-***.de -p 10050 -k vfs.fs.size[/var,used]
    207932052
    madx:~# zabbix_get -s radio-***.de -p 10050 -k vfs.fs.size[/home,used]
    207932056
    As you can see i alway get the same vale, excet a few bytes. In a subfolder of /home there are over 9.5GB of data but if i want to check this folder (/home/abc/def/_streamrecords) i also get same value as shown above.

    -Greetz
    MAD
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    and what does df -h (assuming gnu-like system) return on that server ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • MADxHAWK
      Member
      • Apr 2011
      • 41

      #3
      The server that should be monitored is running Linux version 2.6.26-2-amd64 (Debian 2.6.26-21lenny4)
      Here are some outputs from the server i want to monitor (shell of radio-****.de)

      df -h
      Filesystem Size Used Avail Use% Mounted on
      /dev/md2 457G 176G 258G 41% /
      tmpfs 992M 0 992M 0% /lib/init/rw
      udev 10M 752K 9.3M 8% /dev
      tmpfs 992M 0 992M 0% /dev/shm
      /dev/md1 2.0G 79M 1.9G 5% /boot
      du -sh /etc
      6.7M /etc
      du -sh /usr
      837M /usr
      du -sh /var
      1.3G /var
      du -sh /home
      163G /home
      Last edited by MADxHAWK; 04-05-2011, 00:18.

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        oh, but vfs.fs.size is not for monitoring a directory size - it's for monitoring size of a mounted filesystem. so if the path is not a mountpoint, you get the data from whichever filesystem it resides on (in this case it seems to be simply /).

        also, flash-only websites are evil. just sayin'
        Last edited by richlv; 03-05-2011, 23:29. Reason: fix typo
        Zabbix 3.0 Network Monitoring book

        Comment

        • MADxHAWK
          Member
          • Apr 2011
          • 41

          #5
          Originally posted by richlv
          oh, but vfs.fs.size is not for monitoring a directory size - it's for monitoring size of a mounted filesystem. so if the path is not a mountpoint, you get the data from whichever filesystem it resides on (in this case it seems to be simply /).
          Ok thanks is there any way to monitor the size of a directory then?

          also, flash-only websites are evil. just sayin'
          Damn just saw it. Forgot to replace one host with *** :/
          Im working on it, im also quite new in flash will be changed soon. Thanks for the hint.

          Greetz
          MAD

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            Originally posted by MADxHAWK
            Ok thanks is there any way to monitor the size of a directory then?
            no built-in item. your best bet at this time would probably be a userparameter. you can take a look at userparameter_examples.conf for an example.
            Zabbix 3.0 Network Monitoring book

            Comment

            • MADxHAWK
              Member
              • Apr 2011
              • 41

              #7
              Thanks again ) will try this

              Comment

              Working...