Ad Widget

Collapse

Zabbix 1.8.5 vfs.fs.size ZBX_NOTSUPPORTED

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • wergles
    Junior Member
    • Aug 2011
    • 5

    #1

    Zabbix 1.8.5 vfs.fs.size ZBX_NOTSUPPORTED

    # zabbix_get -s ZABBIX_CLIENT_PATH -p10050 -k 'vfs.fs.size[/media/fotografia/alta/2010]'
    1596967026688

    # zabbix_get -s ZABBIX_CLIENT_PATH -p10050 -k 'vfs.fs.size[/media/fotografia/alta/2011/01]'
    ZBX_NOTSUPPORTED

    zabbix_get -s ZABBIX_CLIENT_PATH -p10050 -k 'vfs.fs.size[/dev/mapper/vg-alta_2011_01]'
    10485760

    Why does the first and last commands return valid data and the second one doesn't?

    Here is a part of the mounts on the monitored machine that might help:

    /dev/mapper/vg-fotografia_alta on /media/fotografia/alta type ext4 (rw,noatime,nodiratime)
    /dev/mapper/vg-alta_2009 on /media/fotografia/alta/2009 type ext4 (rw,noatime,nodiratime)
    /dev/mapper/vg-alta_2010 on /media/fotografia/alta/2010 type ext4 (rw,noatime,nodiratime)
    /dev/mapper/vg-alta_2011_01 on /media/fotografia/alta/2011/01 type ext4 (rw,noatime,nodiratime)
    /dev/mapper/vg-alta_2011_02 on /media/fotografia/alta/2011/02 type ext4 (rw,noatime,nodiratime)

    Please let me know if there is any extra info necessary.
  • ARA
    Junior Member
    • Aug 2011
    • 15

    #2
    as non-superuser, check

    cd /media/fotografia/alta/2011
    du

    cd /media/fotografia/alta/2011/01
    du

    Comment

    • wergles
      Junior Member
      • Aug 2011
      • 5

      #3
      du output

      The only errors I received from those commands where related to 'lost+found'
      directories.


      $cd cd /media/fotografia/alta/2011/
      $du


      2484 ./12/19/importa
      2488 ./12/19
      du: cannot read directory `./12/lost+found': Permission denied
      16 ./12/lost+found
      3296 ./12/01/importa
      4168 ./12/01/capa
      7468 ./12/01
      9976 ./12
      657324 ./07/29/imagem
      2006584 ./07/29/montagem
      4260 ./07/29/svg
      220956 ./07/29/capa
      427856 ./07/29/importa
      11414124 ./07/29
      372300 ./07/09/imagem
      542892 ./07/09/montagem
      3588 ./07/09/svg
      261424 ./07/09/capa

      ... [long output] ...

      1396 2669004 ./03/09
      1397 470884 ./03/27/montagem
      1398 107112 ./03/27/capa
      1399 92412 ./03/27/importa
      1400 336468 ./03/27/imagem
      1401 4744 ./03/27/svg
      1402 5121844 ./03/27
      1403 1540632 ./03/17/montagem
      1404 183424 ./03/17/capa
      1405 34848 ./03/17/importa
      1406 518476 ./03/17/imagem
      1407 4840 ./03/17/svg
      1408 6342664 ./03/17
      1409 170693580 ./03
      1410 1647921508 .

      ----------------------------------------------------------------------


      cd /media/fotografia/alta/2011/01
      du


      1 148452 ./21/capa
      2 503504 ./21/imagem
      3 3856 ./21/svg
      4 171460 ./21/importa
      5 524580 ./21/montagem
      6 4496304 ./21
      7 154500 ./06/capa
      8 435468 ./06/imagem
      9 3444 ./06/svg
      10 64312 ./06/importa
      11 524344 ./06/montagem
      12 5328812 ./06
      13 142972 ./20/capa
      14 489876 ./20/imagem
      15 3612 ./20/svg
      16 96912 ./20/importa
      17 689712 ./20/montagem
      18 5658396 ./20
      19 136068 ./15/capa
      20 372300 ./15/imagem
      21 2600 ./15/svg
      22 196280 ./15/importa
      23 182752 ./15/montagem
      24 4049384 ./15
      25 du: cannot read directory `./lost+found': Permission denied
      26 16 ./lost+found
      27 136684 ./23/capa

      ... [long output] ...

      181 550772 ./18/montagem
      182 4149408 ./18
      183 125520 ./29/capa
      184 359176 ./29/imagem
      185 3072 ./29/svg
      186 166468 ./29/importa
      187 139672 ./29/montagem
      188 4081108 ./29
      189 150358652 .

      If you need the full output please let me know and I'll paste to you.

      Thank you for the quick reply.
      Last edited by wergles; 11-08-2011, 23:50. Reason: just thanking

      Comment

      • wergles
        Junior Member
        • Aug 2011
        • 5

        #4
        Allow root

        I forgot to mention that the Zabbix Client configuration is set to allow root. So I don't think that could be permission problem.

        zabbix_agentd.conf:AllowRoot=1
        Last edited by wergles; 12-08-2011, 17:30.

        Comment

        • wergles
          Junior Member
          • Aug 2011
          • 5

          #5
          Updated

          After updating both, server and client to v1.8.6 (revision 20932), the problem persists.

          Comment

          • wergles
            Junior Member
            • Aug 2011
            • 5

            #6
            udpate

            From the client I always get the right results. But when I try from the server
            it returns the ZBX_NOTSUPPORTED message.

            client # zabbix_agentd -t 'vfs.fs.size[/media/fotografia/alta/2011/01]'
            vfs.fs.size[/media/fotografia/alta/2011/01] [u|164875579392]

            client # zabbix_agentd -t 'vfs.fs.size[/media/fotografia/alta/2011/]'
            vfs.fs.size[/media/fotografia/alta/2011/] [u|499910975488]


            server $ zabbix_get -s CLIENT -p10050 -k 'vfs.fs.size[/media/fotografia/alta/2011/]'
            499910975488

            server $ zabbix_get -s CLIENT -p10050 -k 'vfs.fs.size[/media/fotografia/alta/2011/01]'
            ZBX_NOTSUPPORTED

            Comment

            Working...