Monitors system load average entry parameters exposed by the
UCD-SNMP-MIB
(University of California, Davis MIB) via SNMPv2
This template is part of RaBe's Zabbix template and helpers collection.
- Download the
UCD-SNMP-MIB
(if not already available on your system) - Place the MIB file(s) into your default MIB directory on the Zabbix server
and/or proxy (usually
/usr/local/share/snmp/mibs
) and make sure that the Zabbix server and/or proxy loads them (see Using and loading MIBs). - Import the
Template_SNMPv2_UCD-SNMP-MIB_load_average.xml
into your Zabbix server (click on theRaw
button to download). - Add an SNMP interface configuration to your host
- Set the
{$SNMP_COMMUNITY}
macro to your desired community if you don't usepublic
- Add the template to your host (or stack template)
- Check if new data arrives
The following snmpwalk
command might be helpful for debugging:
snmpwalk -v 2c -c public <HOST> UCD-SNMP-MIB::laTable
SNMPv2 template for monitoring the load average of a host exposing the UCD-SNMP-MIB
(University of California, Davis MIB) laTable
table.
{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_THRESHOLD}
(default: 15){$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_TIME}
(default: 30m){$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_THRESHOLD}
(default: 15){$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_TIME}
(default: 15m)
Discovery of load average entries
Returns the following macro for each available load average entry (laEntry
)
{#LA_INDEX}
- Reference index/row number for each discovered load average entry (
UCD-SNMP-MIB::laIndex
)
- Reference index/row number for each discovered load average entry (
{#LA_NAME}
- The name of each discovered load average entry (
UCD-SNMP-MIB::laNames
).
- The name of each discovered load average entry (
- Load watch point of "{#LA_NAME}" (
rabe.snmp.ucd-snmp-mib.laConfig[{#SNMPINDEX}]
)
The watch point for load-average{#LA_NAME}
to signal an error.
If the load averages rises above this value, the laErrorFlag is set.
- Load error message for "{#LA_NAME}" (
rabe.snmp.ucd-snmp-mib.laErrMessage[{#SNMPINDEX}]
)
An error message describing the load-average and its surpased watch-point value. - Error flag of "{#LA_NAME}" (
rabe.snmp.ucd-snmp-mib.laErrorFlag[{#SNMPINDEX}]
)
A Error flag to indicate the load-average has crossed its threshold value defined in the snmpd.conf file. It is set to 1 if the threshold is crossed, 0 otherwise. - Load "{#LA_NAME}" (
rabe.snmp.ucd-snmp-mib.laLoad[{#SNMPINDEX}]
)
The{#LA_NAME}
minute load average.
- Warning: Processor load is high (> $1 over {$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_TIME:"{#LA_NAME}"} on {HOST.NAME}
The average CPU load is over
{Template SNMPv2 UCD-SNMP-MIB load average:rabe.snmp.ucd-snmp-mib.laLoad[{#SNMPINDEX}].avg({$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_TIME:"{#LA_NAME}"})}>{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_THRESHOLD:"{#LA_NAME}"}
{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_TIME:"{#LA_NAME}"}
for the last{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_WARNING_TIME:"{#LA_NAME}}
. - High: Processor load is very high (> $1 over {$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_TIME:"{#LA_NAME}"} on {HOST.NAME}
The average CPU load is over
{Template SNMPv2 UCD-SNMP-MIB load average:rabe.snmp.ucd-snmp-mib.laLoad[{#SNMPINDEX}].avg({$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_TIME:"{#LA_NAME}"})}>{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_THRESHOLD:"{#LA_NAME}"}
{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_TIME:"{#LA_NAME}"}
for the last{$SNMPV2_UCD_SNMP_MIB_LOAD_AVERAGE_CPU_LOAD_HIGH_TIME:"{#LA_NAME}"}
. - Warning: Processor load {#LA_NAME} is higher than the system watch point ({ITEM.VALUE1} > {ITEM.VALUE2}) on {HOST.NAME})
The load average is higher than the system configured watch point (
{Template SNMPv2 UCD-SNMP-MIB load average:rabe.snmp.ucd-snmp-mib.laLoad[{#SNMPINDEX}].last()}>{Template SNMPv2 UCD-SNMP-MIB load average:rabe.snmp.ucd-snmp-mib.laConfig[{#SNMPINDEX}].last()}
UCD-SNMP-MIB::laConfig
).
This template is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, version 3 of the License.
Copyright (c) 2017 - 2019 Radio Bern RaBe