Ad Widget

Collapse

snmp agent - incorrent disk percentage values

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rectifier
    Junior Member
    • Oct 2018
    • 6

    #1

    snmp agent - incorrent disk percentage values

    I'm getting different values from snmpwalk and df... around 3% different on partition. Any idea what is wrong with snmp?

    $ snmpwalk -v 2c -c public localhost dskPercent
    UCD-SNMP-MIB::dskPercent.1 = INTEGER: 43
    UCD-SNMP-MIB::dskPercent.6 = INTEGER: 0
    UCD-SNMP-MIB::dskPercent.8 = INTEGER: 0
    UCD-SNMP-MIB::dskPercent.9 = INTEGER: 0
    UCD-SNMP-MIB::dskPercent.28 = INTEGER: 16
    UCD-SNMP-MIB::dskPercent.29 = INTEGER: 3
    UCD-SNMP-MIB::dskPercent.30 = INTEGER: 0
    UCD-SNMP-MIB::dskPercent.31 = INTEGER: 13
    UCD-SNMP-MIB::dskPercent.32 = INTEGER: 0

    $ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/vg-root 7.8G 3.4G 4.0G 46% /
    devtmpfs 7.8G 0 7.8G 0% /dev
    tmpfs 7.8G 0 7.8G 0% /dev/shm
    tmpfs 7.8G 8.9M 7.8G 1% /run
    tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
    /dev/sda1 976M 153M 757M 17% /boot
    /dev/mapper/vg-var_log 7.8G 253M 7.1G 4% /var/log
    /dev/mapper/vg-tmp 2.0G 7.5M 1.8G 1% /tmp
    /dev/mapper/vg-home 2.0G 264M 1.6G 15% /home
    tmpfs 1.6G 0 1.6G 0% /run/user/6030

    Thank you.
    Last edited by Rectifier; 21-02-2019, 19:24.
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Some filesystems reserve space for root only use. DF may reflect that, snmp may not.

    Comment

    • Rectifier
      Junior Member
      • Oct 2018
      • 6

      #3
      oh thanks for your feedback. Is there any way how to fix that?
      Last edited by Rectifier; 22-02-2019, 09:32.

      Comment

      • LenR
        Senior Member
        • Sep 2009
        • 1005

        #4
        Those file systems have a way to remove or change the reserve percentage, it would take root access. You could also use pre-processing in zabbix to add a fudge factor to make them read the same. There is also some issue with sample interval if the values are changing enough to notice. I think I've seen snmp return values that are somewhat outdated. Personally, I just don't sample both methods on the same server, pick one and live with it. If you're living within 3% of the edge, it's not that safe with either value :-)

        Comment

        • Rectifier
          Junior Member
          • Oct 2018
          • 6

          #5
          I don't wanna change reserve space for root. Is there any way to handle this?

          Comment

          Working...