Ad Widget

Collapse

Incorrect calculated free disk space units in SNMP Agent.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ultrasonic
    Junior Member
    • Sep 2015
    • 8

    #1

    Incorrect calculated free disk space units in SNMP Agent.

    Hello.
    I have a little problem with free disk space calculation in SNMP Agent.
    SNMP Disk Partitions Template doesn't have item like "Free disk space". There is only "Total" and "Used". Free disk space must be calculated (total-used=free).

    ok. then i did changes in 10% free trigger:

    {my_host:hrStorageUsed[{#SNMPVALUE}].last(0)} / {my_hostl:hrStorageSize[{#SNMPVALUE}].last(0)} > 0.9 & ({my_host:hrStorageSizeInBytes[{#SNMPVALUE}].last(0)} - {my_host:hrStorageUsedInBytes[{#SNMPVALUE}].last(0)}) & {my_hostl:hrStorageSizeInBytes[{#SNMPVALUE}].last(0)}

    and trigge tittle:

    Free disk space is less than 10% on volume {#SNMPVALUE} free: {ITEM.VALUE2} total: {ITEM.VALUE3}

    result of trigger:

    Free disk space is less than 10% on volume /var/log free: 47.23 Munits total: 180.18 GB

    Why calculated free space is in Munits. Should be in GB too.
Working...