5.02021-11-25T12:43:36ZTemplatesSNMP DisksSNMP DisksTemplatesDisk partitionsDisk partitionsSNMP_AGENTdiscovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]hrStorageDescr3600{#SNMPVALUE}@Storage devices for SNMP discoveryAThe 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 $1SNMP_AGENTHOST-RESOURCES-MIB::hrStorageAllocationUnits.{#SNMPINDEX}hrStorageAllocationUnits[{#SNMPVALUE}]36007dBThe 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.Disk partitionsDescription of storage $1SNMP_AGENTHOST-RESOURCES-MIB::hrStorageDescr.{#SNMPINDEX}hrStorageDescr[{#SNMPVALUE}]36007d0CHARA description of the type and instance of the storage described by this entry.Disk partitionsTotal disk space on $1CALCULATEDhrStorageSizeInBytes[{#SNMPVALUE}]36007dBlast("hrStorageSize[{#SNMPVALUE}]") * last("hrStorageAllocationUnits[{#SNMPVALUE}]")This is a calculated item, we need it to get total disk space in bytes.Disk partitionsTotal disk space on $1 in unitsSNMP_AGENTHOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}hrStorageSize[{#SNMPVALUE}]36007dunitsThe 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.Disk partitionsUsed disk space on $1CALCULATEDhrStorageUsedInBytes[{#SNMPVALUE}]607dBlast("hrStorageUsed[{#SNMPVALUE}]") * last("hrStorageAllocationUnits[{#SNMPVALUE}]")This is a calculated item, we need it to get used disk space in bytes.Disk partitionsUsed disk space on $1 in unitsSNMP_AGENTHOST-RESOURCES-MIB::hrStorageUsed.{#SNMPINDEX}hrStorageUsed[{#SNMPVALUE}]607dunitsThe amount of the storage represented by this entry that is allocated, in units of hrStorageAllocationUnits.Disk partitions{SNMP Disks:hrStorageUsed[{#SNMPVALUE}].last(0)} / {SNMP Disks:hrStorageSize[{#SNMPVALUE}].last(0)} > 0.8Free disk space is less than 20% on volume {#SNMPVALUE}WARNINGDisk space usage {#SNMPVALUE}600340NONOPIEYES00C800GRAPH_SUM- SNMP DiskshrStorageSizeInBytes[{#SNMPVALUE}]
1C80000- SNMP DiskshrStorageUsedInBytes[{#SNMPVALUE}]
SNMP FreeNASSNMP FreeNASSNMP DisksSNMP GenericSNMP InterfacesSNMP ProcessorsTemplatesMemoryZFS statistics- Arc CSNMP_AGENTFREENAS-MIB::zfsArcC.0zfs.ArcC60Arc C ?ZFS statistics
- Arc dataSNMP_AGENTFREENAS-MIB::zfsArcData.0zfs.ArcData60Arc dataZFS statistics
- Arc Cache hit ratioSNMP_AGENTFREENAS-MIB::zfsArcCacheHitRatio.0zfs.ArcHitratio60FLOAT%Arc hit ratioZFS statistics
- Arc hitsSNMP_AGENTFREENAS-MIB::zfsArcHits.0zfs.Archits60Arc hitsZFS statistics
- Arc metaSNMP_AGENTFREENAS-MIB::zfsArcMeta.0zfs.Arcmeta60Arc meta ?ZFS statistics
- Arc missesSNMP_AGENTFREENAS-MIB::zfsArcMisses.0zfs.ArcMisses60Arc missesZFS statistics
- Arc Cache miss percentSNMP_AGENTFREENAS-MIB::zfsArcMissPercent.0zfs.ArcMissPercent60FLOAT%Arc cach miss percentageZFS statistics
- Arc Cache miss ratioSNMP_AGENTFREENAS-MIB::zfsArcCacheMissRatio.0zfs.ArcMissratio60FLOAT%Arc cach miss ratioZFS statistics
- Arc PSNMP_AGENTFREENAS-MIB::zfsArcP.0zfs.ArcP60Arc P ?ZFS statistics
- Arc sizeSNMP_AGENTFREENAS-MIB::zfsArcSize.0zfs.Arcsize60BArc size iin bytesZFS statisticsMULTIPLIER1024
- L2Arc hitsSNMP_AGENTFREENAS-MIB::zfsL2ArcHits.0zfs.L2Archits60L2Arc hitsZFS statistics
- L2Arc missesSNMP_AGENTFREENAS-MIB::zfsL2ArcMisses.0zfs.L2ArcMisses60L2Arc missesZFS statistics
- L2Arc sizeSNMP_AGENTFREENAS-MIB::zfsL2ArcSize.0zfs.L2Arcsize60BL2Arc size iin bytesZFS statisticsMULTIPLIER1024
- ZIL operations per secondSNMP_AGENTFREENAS-MIB::zfsZilstatOps1sec.0zfs.ZilstatOps1sec60ZIL operations per secondZFS statistics
Memory statisticsSNMP_AGENTdiscovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrStorageDescr]hrMemDescr3600{#SNMPVALUE}.*memory.*AThe rule will discover all memory matching the global regexp "Storage devices for SNMP discovery".
{$SNMP_COMMUNITY} is a global macro.{#SNMPVALUE} allocated unitsSNMP_AGENTHOST-RESOURCES-MIB::hrStorageSize.{#SNMPINDEX}memAllocated[{#SNMPVALUE}]601d0Memory{#SNMPVALUE} sizeCALCULATEDmemSize[{#SNMPVALUE}]60Blast("memUnits[{#SNMPVALUE}]") * last("memAllocated[{#SNMPVALUE}]")Memory{#SNMPVALUE} unitsSNMP_AGENTHOST-RESOURCES-MIB::hrStorageAllocationUnits.{#SNMPINDEX}memUnits[{#SNMPVALUE}]36001d0MemoryZFS PoolsSNMP_AGENTdiscovery[{#SNMPVALUE},FREENAS-MIB::zfsPoolName]zfsPoolName3600ZFS poolsRead bandwidth on pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolBwRead1sec.{#SNMPINDEX}vfs.fs.bandwidth[{#SNMPVALUE},read]60B/sthe bandwidth of all read operations (including metadata), expressed as units per secondZFS statisticsWrite bandwidth on pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolBwWrite1sec.{#SNMPINDEX}vfs.fs.bandwidth[{#SNMPVALUE},write]60B/sthe bandwidth of all write operations expressed as units per secondZFS statisticsIO Read Ops on pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolOpRead1sec.{#SNMPINDEX}vfs.fs.iops[{#SNMPVALUE},read]60IO/sThe number of read I/O operations sent to the pool or device.ZFS statisticsIO Write Ops on pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolOpWrite1sec.{#SNMPINDEX}vfs.fs.iops[{#SNMPVALUE},write]60IO/sThe number of write I/O operations sent to the pool or device.ZFS statisticsAvailable bytes on pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolAvailableMB.{#SNMPINDEX}vfs.fs.size[{#SNMPVALUE},free]60BThe number of available bytes (rounded to 1 MB blocks) on the volume.ZFS statisticsMULTIPLIER1048576Usage of pool {#SNMPVALUE}CALCULATEDvfs.fs.size[{#SNMPVALUE},pfree]60FLOAT%100*last("vfs.fs.size[{#SNMPVALUE},used]",0)/last("vfs.fs.size[{#SNMPVALUE},total]",0)Used percentage of the pools capacityZFS statistics{last(0)}>80Pool {#SNMPVALUE} usage is over 80%http://everycity.co.uk/alasdair/2010/07/zfs-runs-really-slowly-when-free-disk-usage-goes-above-80/AVERAGEYour pool {#SNMPVALUE} is more than 80% full! It is a known fact that performance will degrade significantly. Please free up some space.Size of pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolSizeMB.{#SNMPINDEX}vfs.fs.size[{#SNMPVALUE},total]60BThe number of bytes (rounded to 1 MB blocks) part of the volume.ZFS statisticsMULTIPLIER1048576Used bytes on pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolUsedMB.{#SNMPINDEX}vfs.fs.size[{#SNMPVALUE},used]60BThe number of bytes (rounded to 1 MB blocks) that are used.ZFS statisticsMULTIPLIER1048576Health of pool {#SNMPVALUE}SNMP_AGENTFREENAS-MIB::zfsPoolHealth.{#SNMPINDEX}zfsPoolHealth[{#SNMPVALUE}]60The current health of the containing pool, as reported by zpool status.
online(1), degraded(2), faulted(3), unknown(4)ZFS statistics{last()}=2Pool {#SNMPVALUE} is DEGRADED!http://docs.oracle.com/cd/E19253-01/819-5461/gbbzy/index.htmlHIGHYour pool {#SNMPVALUE} is in degraded state.
online(1), degraded(2), faulted(3), unknown(4){last()}=3Pool {#SNMPVALUE} is FAULTED!http://docs.oracle.com/cd/E19253-01/819-5461/gbbzy/index.htmlDISASTERYour pool {#SNMPVALUE} is in faulted state. You are in trouble{last()}=4Pool {#SNMPVALUE} is in UNKNOWN statehttps://forums.freenas.org/index.php?threads/help-warning-the-volume-zfs-status-is-unknown.22023/DISASTERYour pool {#SNMPVALUE} is in unknown state. You are in trouble, I really hope you have a backupName of pool #$1SNMP_AGENTFREENAS-MIB::zfsPoolName.{#SNMPINDEX}zfsPoolName[{#SNMPINDEX}]36000CHARThe name of the filesystem type VolumeZFS statisticsPool {#SNMPVALUE} IO statisticsGRADIENT_LINE00C800- SNMP FreeNASvfs.fs.bandwidth[{#SNMPVALUE},read]
1GRADIENT_LINEC80000- SNMP FreeNASvfs.fs.bandwidth[{#SNMPVALUE},write]
20000C8RIGHT- SNMP FreeNASvfs.fs.iops[{#SNMPVALUE},read]
3C800C8RIGHT- SNMP FreeNASvfs.fs.iops[{#SNMPVALUE},write]
Pool {#SNMPVALUE} UsageSTACKEDC80000- SNMP FreeNASvfs.fs.size[{#SNMPVALUE},used]
100C800- SNMP FreeNASvfs.fs.size[{#SNMPVALUE},free]
SNMP GenericSNMP GenericTemplatesGeneral- Device contact detailsSNMP_AGENTSNMPv2-MIB::sysContact.0sysContact36007d0CHARThe textual identification of the contact person for this managed node, together with information on how to contact this person. If no contact information is known, the value is the zero-length string.CONTACTGeneral
- Device descriptionSNMP_AGENTSNMPv2-MIB::sysDescr.0sysDescr36007d0CHARA textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software.HARDWAREGeneral
- Device locationSNMP_AGENTSNMPv2-MIB::sysLocation.0sysLocation36007d0CHARThe physical location of this node (e.g., `telephone closet, 3rd floor'). If the location is unknown, the value is the zero-length string.LOCATIONGeneral
- Device nameSNMP_AGENTSNMPv2-MIB::sysName.0sysName36007d0CHARAn administratively-assigned name for this managed node. By convention, this is the node's fully-qualified domain name. If the name is unknown, the value is the zero-length string.NAMEGeneral
- Device uptimeSNMP_AGENTSNMPv2-MIB::sysUpTime.0sysUpTime607duptimeThe time since the network management portion of the system was last re-initialized.GeneralMULTIPLIER0.01
SNMP InterfacesSNMP InterfacesTemplatesInterfaces- Number of network interfacesSNMP_AGENTIF-MIB::ifNumber.0ifNumber36007dThe number of network interfaces (regardless of their current state) present on this system.Interfaces
Network interfacesSNMP_AGENTdiscovery[{#SNMPVALUE},IF-MIB::ifDescr]ifDescr3600You may also consider using IF-MIB::ifType or IF-MIB::ifAlias for discovery depending on your filtering needs.
{$SNMP_COMMUNITY} is a global macro.Admin status of interface $1SNMP_AGENTIF-MIB::ifAdminStatus.{#SNMPINDEX}ifAdminStatus[{#SNMPVALUE}]607dThe desired state of the interface.InterfacesSNMP interface status (ifAdminStatus)Alias of interface $1SNMP_AGENTIF-MIB::ifAlias.{#SNMPINDEX}ifAlias[{#SNMPVALUE}]36007d0CHARInterfacesDescription of interface $1SNMP_AGENTIF-MIB::ifDescr.{#SNMPINDEX}ifDescr[{#SNMPVALUE}]36007d0CHARA textual string containing information about the interface. This string should include the name of the manufacturer, the product name and the version of the interface hardware/software.InterfacesInbound errors on interface $1SNMP_AGENTIF-MIB::ifInErrors.{#SNMPINDEX}ifInErrors[{#SNMPVALUE}]607dFor packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol.InterfacesCHANGE_PER_SECONDIncoming traffic on interface $1SNMP_AGENTIF-MIB::ifInOctets.{#SNMPINDEX}ifInOctets[{#SNMPVALUE}]607dbpsThe number of octets in valid MAC frames received on this interface, including the MAC header and FCS.InterfacesCHANGE_PER_SECONDMULTIPLIER8Operational status of interface $1SNMP_AGENTIF-MIB::ifOperStatus.{#SNMPINDEX}ifOperStatus[{#SNMPVALUE}]607dThe current operational state of the interface.InterfacesSNMP interface status (ifOperStatus){diff(0)}=1Operational status was changed on {HOST.NAME} interface {#SNMPVALUE}INFOOutbound errors on interface $1SNMP_AGENTIF-MIB::ifOutErrors.{#SNMPINDEX}ifOutErrors[{#SNMPVALUE}]607dFor packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors.InterfacesCHANGE_PER_SECONDOutgoing traffic on interface $1SNMP_AGENTIF-MIB::ifOutOctets.{#SNMPINDEX}ifOutOctets[{#SNMPVALUE}]607dbpsThe number of octets transmitted in MAC frames on this interface, including the MAC header and FCS.InterfacesCHANGE_PER_SECONDMULTIPLIER8Traffic on interface {#SNMPVALUE}GRADIENT_LINE00AA00- SNMP InterfacesifInOctets[{#SNMPVALUE}]
1GRADIENT_LINE3333FF- SNMP InterfacesifOutOctets[{#SNMPVALUE}]
SNMP ProcessorsSNMP ProcessorsTemplatesProcessorsProcessorsSNMP_AGENTdiscovery[{#SNMPVALUE},HOST-RESOURCES-MIB::hrProcessorLoad]hrProcessorLoad3600{$SNMP_COMMUNITY} is a global macro.Utilization of processor #$1SNMP_AGENTHOST-RESOURCES-MIB::hrProcessorLoad.{#SNMPINDEX}hrProcessorLoad[{#SNMPINDEX}]607d%The average, over the last minute, of the percentage of time that this processor was not idle. Implementations may approximate this one minute smoothing period if necessary.ProcessorsArc data00C800- SNMP FreeNASzfs.ArcC
1C80000- SNMP FreeNASzfs.ArcData
20000C8- SNMP FreeNASzfs.Arcmeta
3C800C8- SNMP FreeNASzfs.ArcP
Arc hit ratioNOSTACKED00C800- SNMP FreeNASzfs.ArcHitratio
1C80000- SNMP FreeNASzfs.ArcMissratio
SNMP interface status (ifAdminStatus)1up2down3testingSNMP interface status (ifOperStatus)1up2down3testing4unknown5dormant6notPresent7lowerLayerDown