Description

Monitors Solaris ZFS Storage Pool health status and usage capacity in percentage. [NET-SNMP-EXTEND-MIB::nsExtendOutLine-1.3.6.1.4.1.8072.1.3.2.4.1.2]

Prerequisites

Need to add following Zpool command to snmpd.conf in end device:

extend zpool_name /bin/bash -c “zpool list -H -o name”
extend zpool_capacity /bin/bash -c “zpool list -H -o capacity”
extend zpool_health /bin/bash -c “zpool list -H -o health”

Then do SNMPWALK query on OID: 1.3.6.1.4.1.8072.1.3.2.4.1.2 on end device,
it must give above Zpool commands output in SNMP output.
Means it should give Zpool names, Zpool health status and Zpool capacity in percentage.

Sample SNMP query output:
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“zpool_name”.1 = STRING: zpool_test1
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“zpool_name”.2 = STRING: zpool_test2
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“zpool_health”.1 = STRING: ONLINE
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“zpool_health”.2 = STRING: ONLINE
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“zpool_capacity”.1 = STRING: 44%
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“zpool_capacity”.2 = STRING: 51%

Metric Parameters

Metric Parameters
ParameterDescription
Frequency
  • Frequency is the interval in which you want to probe and collect metric data from the target device/resource
  • Frequency is defined in minutes (min).
  • Warning ThresholdIf the metric value satisfies the condition defined along with Warning Threshold value, then a notification is sent to the user.
    Critical ThresholdIf the metric value satisfies the condition defined along with Critical Threshold value, then a notification is sent to the user.
    AlertThe alert value can be set to either Yes or No. If it is Yes, then an alert message is sent to the user.

    Metrics

    solaris.zfs.storage.pool.health.status

    Metric Details

    Metric Details
    Applicable forDevice
    SNMP OIDNULL
    ExpressionNULL
    DescriptionIt represents the Solaris ZFS Storage pool health status. A pool's health status is described by one of following states: DEGRADED: A pool with one or more failed devices, but the data is still available due to a redundant configuration. ONLINE: A pool that has all devices operating normally. SUSPENDED: A pool that is waiting for device connectivity to be restored. A suspended pool remains in the wait state until the device issue is resolved. UNAVAIL: A pool with corrupted metadata, or one or more unavailable devices and insufficient replicas to continue functioning. UNKNOWN: A pool is not imported and its actual status has not been verified. This health status is used by zpool label command. CLEARED: A pool has at least one device with ZFS metadata cleared by using zpool label -C command. A cleared pool cannot be imported. [NET-SNMP-EXTEND-MIB::nsExtendOutLine-1.3.6.1.4.1.8072.1.3.2.4.1.2]
    CategorySNMP Extended
    Collector TypeGateway
    Monitor NameSolaris ZFS Storage Pool Health and Capacity
    Unit

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning OperatorINSEnds with, ==, !=, >=, <=, >, <, In Range, Out of range, Equals, Not equals, Equals Ignore Case, Not Equals Ignore Case, Contains, Not contains, Regex match, Regex no match, In string list, Not in string list, In List, Not in list, Starts with
    Warning ThresholdUNKNOWN, CLEARED
    Warning Repeat Count11-12
    Critical OperatorINSEnds with, ==, !=, >=, <=, >, <, In Range, Out of range, Equals, Not equals, Equals Ignore Case, Not Equals Ignore Case, Contains, Not contains, Regex match, Regex no match, In string list, Not in string list, In List, Not in list, Starts with
    Critical ThresholdDEGRADED, SUSPENDED, UNAVAIL
    Critical Repeat Count11-12
    AlertYesYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph

    solaris.zfs.storage.pool.capacity

    Metric Details

    Metric Details
    Applicable forDevice
    SNMP OIDNULL
    ExpressionNULL
    DescriptionIt represents the amount of disk space used, expressed as a percentage of the total disk space. [NET-SNMP-EXTEND-MIB::nsExtendOutLine-1.3.6.1.4.1.8072.1.3.2.4.1.2]
    CategorySNMP Extended
    Collector TypeGateway
    Monitor NameSolaris ZFS Storage Pool Health and Capacity
    Unit%

    Possible Inputs

    Possible Inputs
    MetricInput ValueRange of Values
    Frequency51 – 1440 (mins)
    Filter
    Warning OperatorGREATER_THAN_EQUALEnds with, ==, !=, >=, <=, >, <, In Range, Out of range, Equals, Not equals, Equals Ignore Case, Not Equals Ignore Case, Contains, Not contains, Regex match, Regex no match, In string list, Not in string list, In List, Not in list, Starts with
    Warning Threshold700-100
    Warning Repeat Count21-12
    Critical OperatorGREATER_THAN_EQUALEnds with, ==, !=, >=, <=, >, <, In Range, Out of range, Equals, Not equals, Equals Ignore Case, Not Equals Ignore Case, Contains, Not contains, Regex match, Regex no match, In string list, Not in string list, In List, Not in list, Starts with
    Critical Threshold80
    0-100
    Critical Repeat Count21-12
    AlertYesYes/No
    Graph (Yes/No)YesYes/No

    Sample Output

    No graph