3.0
2018-07-18T08:18:17Z
Templates
debug SNMP Disks
debug SNMP Disks
Templates
Disk partitions
Disk partitions
4
{$SNMP_COMMUNITY}
discovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]
hrStorageDescr
3600
0
0
0
0
0
0
1
{#SNMPVALUE}
@Storage devices for SNMP discovery
8
A
30
The rule will discover all disk partitions matching the global regexp "Storage devices for SNMP discovery".
{$SNMP_COMMUNITY} is a global macro.
Allocation units for storage $1
4
{$SNMP_COMMUNITY}
0
HOST-RESOURCES-MIB::hrStorageAllocationUnits.{#SNMPINDEX}
hrStorageAllocationUnits[{#SNMPVALUE}]
3600
7
365
0
3
B
0
0
0
0
1
0
0
The size, in bytes, of the data objects allocated from this pool. If this entry is monitoring sectors, blocks, buffers, or packets, for example, this number will commonly be greater than one. Otherwise this number will typically be one.
0
Disk partitions
Description of storage $1
4
{$SNMP_COMMUNITY}
0
HOST-RESOURCES-MIB::hrStorageDescr.{#SNMPINDEX}
hrStorageDescr[{#SNMPVALUE}]
3600
7
0
0
1
0
0
0
0
1
0
0
A description of the type and instance of the storage described by this entry.
0
Disk partitions
Total disk space on $1
15
0
hrStorageSizeInBytes[{#SNMPVALUE}]
3600
7
365
0
3
B
0
0
0
0
1
last("hrStorageSize[{#SNMPVALUE}]") * last("hrStorageAllocationUnits[{#SNMPVALUE}]")
0
0
This is a calculated item, we need it to get total disk space in bytes.
0
Disk partitions
Total disk space on $1 in units
4
{$SNMP_COMMUNITY}
0
HOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}
hrStorageSize[{#SNMPVALUE}]
3600
7
365
0
3
units
0
0
0
0
1
0
0
The size of the storage represented by this entry, in units of hrStorageAllocationUnits. This object is writable to allow remote configuration of the size of the storage area in those cases where such an operation makes sense and is possible on the underlying system. For example, the amount of main memory allocated to a buffer pool might be modified or the amount of disk space allocated to virtual memory might be modified.
0
Disk partitions
Used disk space on $1
15
0
hrStorageUsedInBytes[{#SNMPVALUE}]
60
7
365
0
3
B
0
0
0
0
1
last("hrStorageUsed[{#SNMPVALUE}]") * last("hrStorageAllocationUnits[{#SNMPVALUE}]")
0
0
This is a calculated item, we need it to get used disk space in bytes.
0
Disk partitions
Used disk space on $1 in units
4
{$SNMP_COMMUNITY}
0
HOST-RESOURCES-MIB::hrStorageUsed.{#SNMPINDEX}
hrStorageUsed[{#SNMPVALUE}]
60
7
365
0
3
units
0
0
0
0
1
0
0
The amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.
0
Disk partitions
{debug SNMP Disks:hrStorageUsed[{#SNMPVALUE}].last(0)} / {debug SNMP Disks:hrStorageSize[{#SNMPVALUE}].last(0)} > 0.8
Free disk space is less than 20% on volume {#SNMPVALUE}
0
2
0
Disk space usage {#SNMPVALUE}
600
340
0.0000
100.0000
0
0
2
1
1
0.0000
0.0000
0
0
0
0
0
0
00C800
0
2
2
-
debug SNMP Disks
hrStorageSizeInBytes[{#SNMPVALUE}]
1
0
C80000
0
2
0
-
debug SNMP Disks
hrStorageUsedInBytes[{#SNMPVALUE}]