Ad Widget

Collapse

vfs.dev.read[/dev/sda,bytes, ] not support on centos 6.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pswen
    Junior Member
    • May 2011
    • 3

    #1

    vfs.dev.read[/dev/sda,bytes, ] not support on centos 6.5

    vfs.dev.read[/dev/sda,bytes, ]

    zabbix 2.2.3 , this item not support on centos 6.5 ?
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello!

    Try this item with the extra space removed in the third parameter.

    Code:
    vfs.dev.read[/dev/sda,bytes,]
    Best Regards,
    Ingus

    Comment

    • aib
      Senior Member
      • Jan 2014
      • 1615

      #3
      I have the same problem, sorry.

      Code:
      [root@zabbix ~]# cat /etc/system-release
      CentOS release 6.5 (Final)
      [root@zabbix ~]# df -h
      Filesystem            Size  Used Avail Use% Mounted on
      /dev/mapper/vg_zabbix2-lv_root
                            114G   22G   87G  21% /
      tmpfs                 1.5G     0  1.5G   0% /dev/shm
      [B]/dev/sda1             485M  140M  320M  31% /boot[/B]
      /dev/mapper/vg_zabbix2-LogVol02
                            1.4T  1.4G  1.3T   1% /home
      /dev/mapper/vg_zabbix2-LogVol03
                            917G  2.8G  868G   1% /usr
      tmpfs                 100M   76K  100M   1% /tmp
      [root@zabbix ~]# zabbix_get -s localhost -k vfs.dev.read[/dev/sda1,bytes,]
      [B]ZBX_NOTSUPPORTED[/B]
      [root@zabbix ~]#
      Sincerely yours,
      Aleksey

      Comment

      • ingus.vilnis
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Mar 2014
        • 908

        #4
        Interesting.

        I looked up documentation https://www.zabbix.com/documentation...s/zabbix_agent for key vfs.dev.write and read that it is OS dependent.

        Then I tested it on my Ubuntu 12.04 and got not supported as well.

        Code:
        ingus@ingus:~$ zabbix_get -s localhost -k vfs.dev.read[/dev/sda1,bytes]
        ZBX_NOTSUPPORTED
        ingus@ingus:~$ zabbix_get -s localhost -k vfs.dev.read[/dev/sda1,operations]
        64091
        So can you get a correct result using different type parameters?

        Best Regards,
        Ingus
        Last edited by ingus.vilnis; 19-06-2014, 16:28. Reason: wrong link

        Comment

        • aib
          Senior Member
          • Jan 2014
          • 1615

          #5
          Ok, there are CentOS 6.5

          Code:
          [root@zabbix ~]# zabbix_get -s localhost -k vfs.dev.write[/dev/sda1,bytes,]
          ZBX_NOTSUPPORTED
          [root@zabbix ~]# zabbix_get -s localhost -k vfs.dev.write[/dev/sda1,operations]
          128
          PS Your link is not going to Documentation. It's a link to my other topic (Windows agent - memory leaking)
          Sincerely yours,
          Aleksey

          Comment

          • ingus.vilnis
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Mar 2014
            • 908

            #6
            Aleksey, thank you for noticing the wrong link! Corrected now.

            So is operations the solution?

            Best Regards,
            Ingus

            Comment

            • aib
              Senior Member
              • Jan 2014
              • 1615

              #7
              It looks like that.
              Only one way to get any information about disk activity is to use operations type of parameter.

              I wish I know how to convert "operations" to "bytes" or "bytes per second"
              Sincerely yours,
              Aleksey

              Comment

              • jan.garaj
                Senior Member
                Zabbix Certified Specialist
                • Jan 2010
                • 506

                #8
                Use item:
                Code:
                vfs.dev.read[/dev/sda1,sectors]
                And then create calculated item, which calculated bytes:
                Code:
                vfs.dev.read[/dev/sda1,sectors]*<sector_size>
                <sector_size> is usually 512 (logical sector size), but check fdisk:
                Code:
                fdisk -l /dev/sda1
                Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
                My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

                Comment

                • ahowell
                  Member
                  • Jan 2011
                  • 66

                  #9
                  Just use vfs.dev.read[/dev/sda1,sectors] and use a custom multiplier of 512

                  Comment

                  • ZabbixFun
                    Junior Member
                    • Apr 2014
                    • 23

                    #10
                    Or use:

                    Code:
                    UserParameter=custom.vfs.dev.read.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$6}'
                    UserParameter=custom.vfs.dev.write.sectors[*],cat /proc/diskstats | grep $1 | head -1 | awk '{print $$10}'

                    Comment

                    Working...