Files
templates-default/Linux_by_Zabbix_agent_active.yaml
T

2209 lines
92 KiB
YAML

zabbix_export:
version: '7.0'
template_groups:
- uuid: 846977d1dfed4968bc5f8bdb363285bc
name: 'Templates/Operating systems'
templates:
- uuid: e2307c94f1744af7a8f1f458a67af424
template: 'Linux by Zabbix agent active'
name: 'Linux by Zabbix agent active'
description: |
This is an official Linux template. It requires Zabbix agent 7.0 or newer.
Notes on filesystem (FS) discovery:
- The ext4/3/2 FS reserves space for privileged usage, typically set at 5% by default.
- BTRFS allocates a default of 10% of the volume for its own needs.
- To mitigate potential disasters, FS usage triggers are based on the maximum available space.
- Utilization formula: 'pused = 100 - 100 * (available / total - free + available)'
- The FS utilization chart, derived from graph prototypes, reflects FS reserved space as the difference between used and available space from the total volume.
You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux
Generated by official Zabbix template tool "Templator"
vendor:
name: Zabbix
version: 7.0-4
groups:
- name: 'Templates/Operating systems'
items:
- uuid: a31cfdf92de04535adb957e0c72f54bd
name: 'Host name of Zabbix agent running'
type: ZABBIX_ACTIVE
key: agent.hostname
delay: 1h
value_type: CHAR
trends: '0'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
- uuid: 7c266646bfa843dabfe4ba5a3fd9026e
name: 'Zabbix agent ping'
type: ZABBIX_ACTIVE
key: agent.ping
description: 'The agent always returns "1" for this item. May be used in combination with `nodata()` for the availability check.'
valuemap:
name: 'Zabbix agent ping status'
tags:
- tag: component
value: system
triggers:
- uuid: c1b9fdbe6a584d2cb25ff7077c667af1
expression: 'nodata(/Linux by Zabbix agent active/agent.ping,{$AGENT.NODATA_TIMEOUT})=1'
name: 'Linux: Zabbix agent is not available'
event_name: 'Linux: Zabbix agent is not available (or nodata for {$AGENT.NODATA_TIMEOUT})'
priority: AVERAGE
description: 'For active agents, `nodata()` with `agent.ping` is used with `{$AGENT.NODATA_TIMEOUT}` as a time threshold.'
manual_close: 'YES'
tags:
- tag: scope
value: availability
- uuid: 91dbe302bd8e4954b91e9ce3a795b4eb
name: 'Version of Zabbix agent running'
type: ZABBIX_ACTIVE
key: agent.version
delay: 1h
value_type: CHAR
trends: '0'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: application
- uuid: 66ed2ffc888c40c6b80dcc259c087d08
name: 'Maximum number of open file descriptors'
type: ZABBIX_ACTIVE
key: kernel.maxfiles
delay: 1h
description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: a7716b62422243b991a2697752d7cb1f
expression: 'last(/Linux by Zabbix agent active/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN}'
name: 'Linux: Configured max number of open filedescriptors is too low'
event_name: 'Linux: Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})'
priority: INFO
tags:
- tag: scope
value: performance
- uuid: d60cc4367893424d9671b1f05ba83599
name: 'Maximum number of processes'
type: ZABBIX_ACTIVE
key: kernel.maxproc
delay: 1h
description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
triggers:
- uuid: 740ed348fb1d41dca7c410123b668a48
expression: 'last(/Linux by Zabbix agent active/kernel.maxproc)<{$KERNEL.MAXPROC.MIN}'
name: 'Linux: Configured max number of processes is too low'
event_name: 'Linux: Configured max number of processes is too low (< {$KERNEL.MAXPROC.MIN})'
priority: INFO
dependencies:
- name: 'Linux: Getting closer to process limit'
expression: 'last(/Linux by Zabbix agent active/proc.num)/last(/Linux by Zabbix agent active/kernel.maxproc)*100>80'
tags:
- tag: scope
value: performance
- uuid: ccb6fdbe1267475780e978c0c5de986c
name: 'Number of processes'
type: ZABBIX_ACTIVE
key: proc.num
tags:
- tag: component
value: system
- uuid: 436bf5615731425a97fdcdbaac5f4000
name: 'Number of running processes'
type: ZABBIX_ACTIVE
key: 'proc.num[,,run]'
tags:
- tag: component
value: system
- uuid: 42bb6cbed08a4884a99328b38e4c1654
name: 'System boot time'
type: ZABBIX_ACTIVE
key: system.boottime
delay: 15m
units: unixtime
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: system
- uuid: 0a2218b9d9124c7284962f84bdefaab8
name: 'Interrupts per second'
type: ZABBIX_ACTIVE
key: system.cpu.intr
value_type: FLOAT
description: 'Number of interrupts processed.'
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: cpu
- uuid: c692df07acc44b4ea1f4f88cd4ee64eb
name: 'Load average (1m avg)'
type: ZABBIX_ACTIVE
key: 'system.cpu.load[all,avg1]'
value_type: FLOAT
description: 'Calculated as the system CPU load divided by the number of CPU cores.'
tags:
- tag: component
value: cpu
- uuid: 18862acd219e4259a9b9665c32550fa5
name: 'Load average (5m avg)'
type: ZABBIX_ACTIVE
key: 'system.cpu.load[all,avg5]'
value_type: FLOAT
description: 'Calculated as the system CPU load divided by the number of CPU cores.'
tags:
- tag: component
value: cpu
- uuid: 61040b6d85df4a2087e562f0216e723d
name: 'Load average (15m avg)'
type: ZABBIX_ACTIVE
key: 'system.cpu.load[all,avg15]'
value_type: FLOAT
description: 'Calculated as the system CPU load divided by the number of CPU cores.'
tags:
- tag: component
value: cpu
- uuid: 6e98a6a53c1a44c09b5e3c19971b834c
name: 'Number of CPUs'
type: ZABBIX_ACTIVE
key: system.cpu.num
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: cpu
- uuid: 47e3a1d3955d4bccb07a0e32f768273d
name: 'Context switches per second'
type: ZABBIX_ACTIVE
key: system.cpu.switches
value_type: FLOAT
description: 'The combined rate at which all processors on the computer are switched from one thread to another.'
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: cpu
- uuid: 9cb786aec7de4f749f33c6e5adfbaf75
name: 'CPU utilization'
type: DEPENDENT
key: system.cpu.util
delay: '0'
value_type: FLOAT
units: '%'
description: 'CPU utilization expressed in %.'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return (100 - value)'
master_item:
key: 'system.cpu.util[,idle]'
tags:
- tag: component
value: cpu
triggers:
- uuid: e299778a6fcc4805bd5806f3b2ffe1c2
expression: 'min(/Linux by Zabbix agent active/system.cpu.util,5m)>{$CPU.UTIL.CRIT}'
name: 'Linux: High CPU utilization'
event_name: 'Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)'
opdata: 'Current utilization: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'CPU utilization is too high. The system might be slow to respond.'
dependencies:
- name: 'Linux: Load average is too high'
expression: |
min(/Linux by Zabbix agent active/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent active/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}
and last(/Linux by Zabbix agent active/system.cpu.load[all,avg5])>0
and last(/Linux by Zabbix agent active/system.cpu.load[all,avg15])>0
tags:
- tag: scope
value: performance
- uuid: 4ef463cc12da45e6b5a97cee93fd5ba0
name: 'CPU guest time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,guest]'
value_type: FLOAT
units: '%'
description: 'Time spent on running a virtual CPU for a guest operating system.'
tags:
- tag: component
value: cpu
- uuid: 0cb7f1c9774241968208724ab56f4d86
name: 'CPU guest nice time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,guest_nice]'
value_type: FLOAT
units: '%'
description: 'Time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).'
tags:
- tag: component
value: cpu
- uuid: 8a20c7edef6d449e8771ff57cebb87d8
name: 'CPU idle time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,idle]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent doing nothing.'
tags:
- tag: component
value: cpu
- uuid: 9329b55874bb4de7a52f941f382ba9ce
name: 'CPU interrupt time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,interrupt]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent servicing hardware interrupts.'
tags:
- tag: component
value: cpu
- uuid: 4859bb1b6e21469a917aa56fbfbe1698
name: 'CPU iowait time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,iowait]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has been waiting for I/O to complete.'
tags:
- tag: component
value: cpu
- uuid: d965fa68eea3454e83179116c5483322
name: 'CPU nice time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,nice]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent running users'' processes that have been niced.'
tags:
- tag: component
value: cpu
- uuid: 2ff77e25f0fe45238c64a6532735cdd5
name: 'CPU softirq time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,softirq]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has been servicing software interrupts.'
tags:
- tag: component
value: cpu
- uuid: 434c154ba392476f9ad8a94968840e19
name: 'CPU steal time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,steal]'
value_type: FLOAT
units: '%'
description: 'The amount of "stolen" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.'
tags:
- tag: component
value: cpu
- uuid: 75622323ae4447e8a21a04ef191fdc2d
name: 'CPU system time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,system]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent running the kernel and its processes.'
tags:
- tag: component
value: cpu
- uuid: c74b64926aae4a8e8c2299d8bfe2e188
name: 'CPU user time'
type: ZABBIX_ACTIVE
key: 'system.cpu.util[,user]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent running users'' processes that are not niced.'
tags:
- tag: component
value: cpu
- uuid: fdf4eb1b98d04b229a1c9a3c0b5837ba
name: 'System name'
type: ZABBIX_ACTIVE
key: system.hostname
delay: 1h
value_type: CHAR
trends: '0'
description: 'The host name of the system.'
inventory_link: NAME
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
triggers:
- uuid: c2fc80044fa94f0d97c72bd1d749b731
expression: 'change(/Linux by Zabbix agent active/system.hostname) and length(last(/Linux by Zabbix agent active/system.hostname))>0'
name: 'Linux: System name has changed'
event_name: 'Linux: System name has changed (new name: {ITEM.VALUE})'
priority: INFO
description: 'The name of the system has changed. Acknowledge to close the problem manually.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- tag: scope
value: security
- uuid: c8fa467600ab48ce8cec353bab6c3a54
name: 'System local time'
type: ZABBIX_ACTIVE
key: system.localtime
units: unixtime
description: 'The local system time of the host.'
tags:
- tag: component
value: system
- uuid: 627cbcb2432a4aeda6e90363d9b0c1db
name: 'Operating system architecture'
type: ZABBIX_ACTIVE
key: system.sw.arch
delay: 1h
value_type: CHAR
trends: '0'
description: 'The architecture of the operating system.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: os
- uuid: d8c633f2fd1947028079a5939835dcd8
name: 'Operating system'
type: ZABBIX_ACTIVE
key: system.sw.os
delay: 1h
value_type: CHAR
trends: '0'
inventory_link: OS
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: os
triggers:
- uuid: e27cb7063ca841a2b78aa547ec0d001c
expression: 'change(/Linux by Zabbix agent active/system.sw.os) and length(last(/Linux by Zabbix agent active/system.sw.os))>0'
name: 'Linux: Operating system description has changed'
priority: INFO
description: 'The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.'
manual_close: 'YES'
dependencies:
- name: 'Linux: System name has changed'
expression: 'change(/Linux by Zabbix agent active/system.hostname) and length(last(/Linux by Zabbix agent active/system.hostname))>0'
tags:
- tag: scope
value: notice
- uuid: 16b1e5ab950040ef8c29139e0649d622
name: 'Number of installed packages'
type: ZABBIX_ACTIVE
key: system.sw.packages.get
delay: 1h
preprocessing:
- type: JSONPATH
parameters:
- $.length()
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: os
triggers:
- uuid: bd57d37531ac48f5b96a9f45453f3c35
expression: 'change(/Linux by Zabbix agent active/system.sw.packages.get)<>0'
name: 'Linux: Number of installed packages has been changed'
priority: WARNING
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: f08e1de57cbd4b08b9fd3294d0d95906
name: 'Free swap space'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,free]'
units: B
description: 'The free space of the swap volume/file expressed in bytes.'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: 56b8f84d22264b92b70a6ab0c3c70f19
name: 'Free swap space in %'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,pfree]'
value_type: FLOAT
units: '%'
description: 'The free space of the swap volume/file expressed in %.'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: 3a9fb924ab1d47168ffcab9d237d808a
name: 'Total swap space'
type: ZABBIX_ACTIVE
key: 'system.swap.size[,total]'
units: B
description: 'The total space of the swap volume/file expressed in bytes.'
tags:
- tag: component
value: memory
- tag: component
value: storage
- uuid: d3d73dcc92b34511971eddf956dc4c0f
name: 'System description'
type: ZABBIX_ACTIVE
key: system.uname
delay: 15m
value_type: CHAR
trends: '0'
description: 'The information as normally returned by `uname -a`.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
tags:
- tag: component
value: system
- uuid: 51bdea745e0547ad92a74fefaea54e39
name: 'System uptime'
type: ZABBIX_ACTIVE
key: system.uptime
delay: 30s
trends: '0'
units: uptime
description: 'The system uptime expressed in the following format: "N days, hh:mm:ss".'
tags:
- tag: component
value: system
triggers:
- uuid: 64dbab85caf749f59f3da0c374746bc2
expression: 'last(/Linux by Zabbix agent active/system.uptime)<10m'
name: 'Linux: {HOST.NAME} has been restarted'
event_name: 'Linux: {HOST.NAME} has been restarted (uptime < 10m)'
priority: WARNING
description: 'The host uptime is less than 10 minutes.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: 4ea1cfb5813a422b98caebcd870959ef
name: 'Number of logged in users'
type: ZABBIX_ACTIVE
key: system.users.num
description: 'The number of users who are currently logged in.'
tags:
- tag: component
value: environment
- uuid: 87f35de24ba74a8d8f70430c8da85261
name: 'Checksum of /etc/passwd'
type: ZABBIX_ACTIVE
key: 'vfs.file.cksum[/etc/passwd,sha256]'
delay: 15m
value_type: CHAR
trends: '0'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: security
triggers:
- uuid: c5a76894508c4f0e9dcc9f70e6f39f49
expression: 'last(/Linux by Zabbix agent active/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux by Zabbix agent active/vfs.file.cksum[/etc/passwd,sha256],#2)'
name: 'Linux: /etc/passwd has been changed'
priority: INFO
manual_close: 'YES'
dependencies:
- name: 'Linux: Operating system description has changed'
expression: 'change(/Linux by Zabbix agent active/system.sw.os) and length(last(/Linux by Zabbix agent active/system.sw.os))>0'
- name: 'Linux: System name has changed'
expression: 'change(/Linux by Zabbix agent active/system.hostname) and length(last(/Linux by Zabbix agent active/system.hostname))>0'
tags:
- tag: scope
value: security
- uuid: 6c1de983421846c9acef8f465ff2f196
name: 'Get filesystems'
type: ZABBIX_ACTIVE
key: vfs.fs.get
history: '0'
value_type: TEXT
trends: '0'
description: 'The `vfs.fs.get` key acquires raw information set about the filesystems. Later to be extracted by preprocessing in dependent items.'
tags:
- tag: component
value: raw
- uuid: 5bf94ec3debc459fa3e13449199052ee
name: 'Available memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[available]'
units: B
description: |
The available memory:
- in Linux = free + buffers + cache;
- on other platforms calculation may vary.
See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.
tags:
- tag: component
value: memory
- uuid: 99efd95a41b34457a2ec0d8c96324e7c
name: 'Available memory in %'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[pavailable]'
value_type: FLOAT
units: '%'
description: 'The available memory as percentage of the total. See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.'
tags:
- tag: component
value: memory
- uuid: 013fe8b15c86442eadc10763706ec594
name: 'Total memory'
type: ZABBIX_ACTIVE
key: 'vm.memory.size[total]'
units: B
description: 'Total memory expressed in bytes.'
tags:
- tag: component
value: memory
- uuid: 07e60e812d32443ba8e8b0eb27166b98
name: 'Memory utilization'
type: DEPENDENT
key: vm.memory.util
delay: '0'
value_type: FLOAT
units: '%'
description: 'The percentage of used memory is calculated as `100-pavailable`.'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return (100-value);'
master_item:
key: 'vm.memory.size[pavailable]'
tags:
- tag: component
value: memory
triggers:
- uuid: fb368aa704064a44b9a4ed8c129cf3e8
expression: 'min(/Linux by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}'
name: 'Linux: High memory utilization'
event_name: 'Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)'
priority: AVERAGE
description: 'The system is running out of free memory.'
dependencies:
- name: 'Linux: Lack of available memory'
expression: 'max(/Linux by Zabbix agent active/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent active/vm.memory.size[total])>0'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: 090fb1a5698e4e7080abf379b377b6f5
name: 'Active agent availability'
type: INTERNAL
key: 'zabbix[host,active_agent,available]'
description: |
Availability of active checks on the host. The value of this item corresponds to availability icons in the host list.
Possible values:
0 - unknown
1 - available
2 - not available
valuemap:
name: zabbix.host.active_agent.available
tags:
- tag: component
value: health
- tag: component
value: network
triggers:
- uuid: a022259fc3cf454f93bc82cca27391f1
expression: 'min(/Linux by Zabbix agent active/zabbix[host,active_agent,available],{$AGENT.TIMEOUT})=2'
name: 'Linux: Active checks are not available'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: HIGH
description: 'Active checks are considered unavailable. Agent has not sent a heartbeat for a prolonged time.'
tags:
- tag: scope
value: availability
discovery_rules:
- uuid: 0b47631fb1334f78a7fe5207194a5476
name: 'Network interface discovery'
type: ZABBIX_ACTIVE
key: net.if.discovery
delay: 1h
filter:
evaltype: AND
conditions:
- macro: '{#IFNAME}'
value: '{$NET.IF.IFNAME.MATCHES}'
formulaid: A
- macro: '{#IFNAME}'
value: '{$NET.IF.IFNAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
description: 'The discovery of network interfaces.'
item_prototypes:
- uuid: f1a4f18b78754e669d1ddc593765f2e4
name: 'Interface {#IFNAME}: Inbound packets discarded'
type: ZABBIX_ACTIVE
key: 'net.if.in["{#IFNAME}",dropped]'
delay: 3m
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: f0eb218780ce44128117d73d65d412a9
name: 'Interface {#IFNAME}: Inbound packets with errors'
type: ZABBIX_ACTIVE
key: 'net.if.in["{#IFNAME}",errors]'
delay: 3m
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: 37dd13afa2b84b0e906a80016b9b2bf5
name: 'Interface {#IFNAME}: Bits received'
type: ZABBIX_ACTIVE
key: 'net.if.in["{#IFNAME}"]'
delay: 3m
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: 12a56bb72eef43648293ce1d6c8f9c42
name: 'Interface {#IFNAME}: Outbound packets discarded'
type: ZABBIX_ACTIVE
key: 'net.if.out["{#IFNAME}",dropped]'
delay: 3m
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: 90362d020e82429d87b0b1688355831d
name: 'Interface {#IFNAME}: Outbound packets with errors'
type: ZABBIX_ACTIVE
key: 'net.if.out["{#IFNAME}",errors]'
delay: 3m
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: 63616a66fb5e4fd7a725c5186b47e516
name: 'Interface {#IFNAME}: Bits sent'
type: ZABBIX_ACTIVE
key: 'net.if.out["{#IFNAME}"]'
delay: 3m
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: 83b33479fd774915b100b69c527519c8
name: 'Interface {#IFNAME}: Operational status'
type: ZABBIX_ACTIVE
key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"]'
trends: '0'
description: 'Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt'
valuemap:
name: ifOperStatus
preprocessing:
- type: JAVASCRIPT
parameters:
- |
var newvalue;
switch(value) {
case "unknown":
newvalue = 0;
break;
case "notpresent":
newvalue = 1;
break;
case "down":
newvalue = 2;
break;
case "lowerlayerdown":
newvalue = 3;
break;
case "testing":
newvalue = 4;
break;
case "dormant":
newvalue = 5;
break;
case "up":
newvalue = 6;
break; default:
newvalue = "Problem parsing interface operstate in JS";
}
return newvalue;
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
trigger_prototypes:
- uuid: 1b8e42925e1b48969f35d91800fe5229
expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
name: 'Linux: Interface {#IFNAME}: Link down'
opdata: 'Current state: {ITEM.LASTVALUE1}'
priority: AVERAGE
description: |
This trigger expression works as follows:
1. It can be triggered if the operations status is down.
2. `{$IFCONTROL:"{#IFNAME}"}=1` - a user can redefine the context macro to "0", marking this interface as not important. No new trigger will be fired if this interface is down.
3. `last(/TEMPLATE_NAME/METRIC,#1)<>last(/TEMPLATE_NAME/METRIC,#2)` - the trigger fires only if the operational status was up to (1) sometime before (so, does not fire for "eternal off" interfaces.)
WARNING: if closed manually - it will not fire again on the next poll, because of .diff.
manual_close: 'YES'
tags:
- tag: scope
value: availability
- uuid: 86dd61015ecc43428803b309bdfa9691
name: 'Interface {#IFNAME}: Speed'
type: ZABBIX_ACTIVE
key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]'
delay: 5m
trends: '0'
units: bps
description: |
It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec.
This attribute is only valid for the interfaces that implement the ethtool `get_link_ksettings` method (mostly Ethernet).
Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net
preprocessing:
- type: MULTIPLIER
parameters:
- '1000000'
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
- uuid: e675114e23414b9dbc2d19d00f32bc70
name: 'Interface {#IFNAME}: Interface type'
type: ZABBIX_ACTIVE
key: 'vfs.file.contents["/sys/class/net/{#IFNAME}/type"]'
delay: 1h
trends: '0'
description: |
It indicates the interface protocol type as a decimal value.
See `include/uapi/linux/if_arp.h` for all possible values.
Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net
valuemap:
name: 'Linux::Interface protocol types'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: network
- tag: interface
value: '{#IFNAME}'
trigger_prototypes:
- uuid: c0fd4630351f424aa6c8b7f2e85f0f9e
expression: |
change(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])<0 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0
and
(last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=6 or last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=1)
and
(last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2)
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
(change(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"],#2)>0) or
(last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2)
name: 'Linux: Interface {#IFNAME}: Ethernet has changed to lower speed than it was before'
opdata: 'Current reported speed: {ITEM.LASTVALUE1}'
priority: INFO
description: 'This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.'
manual_close: 'YES'
dependencies:
- name: 'Linux: Interface {#IFNAME}: Link down'
expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))'
recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
tags:
- tag: scope
value: performance
- uuid: 5370cb085c454077a2dd6c39890f706a
expression: |
(avg(/Linux by Zabbix agent active/net.if.in["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) or
avg(/Linux by Zabbix agent active/net.if.out["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])) and
last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
avg(/Linux by Zabbix agent active/net.if.in["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) and
avg(/Linux by Zabbix agent active/net.if.out["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])
name: 'Linux: Interface {#IFNAME}: High bandwidth usage'
event_name: 'Linux: Interface {#IFNAME}: High bandwidth usage (>{$IF.UTIL.MAX:"{#IFNAME}"}%)'
opdata: 'In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}'
priority: WARNING
description: 'The utilization of the network interface is close to its estimated maximum bandwidth.'
manual_close: 'YES'
dependencies:
- name: 'Linux: Interface {#IFNAME}: Link down'
expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))'
recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
tags:
- tag: scope
value: performance
- uuid: 58f4ba4b2795407896752da57462629d
expression: |
min(/Linux by Zabbix agent active/net.if.in["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
or min(/Linux by Zabbix agent active/net.if.out["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: |
max(/Linux by Zabbix agent active/net.if.in["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
and max(/Linux by Zabbix agent active/net.if.out["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
name: 'Linux: Interface {#IFNAME}: High error rate'
event_name: 'Linux: Interface {#IFNAME}: High error rate (>{$IF.ERRORS.WARN:"{#IFNAME}"} for 5m)'
opdata: 'errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}'
priority: WARNING
description: 'It recovers when it is below 80% of the `{$IF.ERRORS.WARN:"{#IFNAME}"}` threshold.'
manual_close: 'YES'
dependencies:
- name: 'Linux: Interface {#IFNAME}: Link down'
expression: '{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))'
recovery_expression: 'last(/Linux by Zabbix agent active/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
graph_prototypes:
- uuid: 6e2814a0ef824df7b418bbd86b260181
name: 'Interface {#IFNAME}: Network traffic'
graph_items:
- drawtype: GRADIENT_LINE
color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'net.if.in["{#IFNAME}"]'
- sortorder: '1'
drawtype: BOLD_LINE
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'net.if.out["{#IFNAME}"]'
- sortorder: '2'
color: 00611C
yaxisside: RIGHT
item:
host: 'Linux by Zabbix agent active'
key: 'net.if.out["{#IFNAME}",errors]'
- sortorder: '3'
color: F7941D
yaxisside: RIGHT
item:
host: 'Linux by Zabbix agent active'
key: 'net.if.in["{#IFNAME}",errors]'
- sortorder: '4'
color: FC6EA3
yaxisside: RIGHT
item:
host: 'Linux by Zabbix agent active'
key: 'net.if.out["{#IFNAME}",dropped]'
- sortorder: '5'
color: 6C59DC
yaxisside: RIGHT
item:
host: 'Linux by Zabbix agent active'
key: 'net.if.in["{#IFNAME}",dropped]'
- uuid: ff825e7028c24138a7ea6625353a1790
name: 'Block devices discovery'
type: ZABBIX_ACTIVE
key: vfs.dev.discovery
delay: 1h
filter:
evaltype: AND
conditions:
- macro: '{#DEVNAME}'
value: '{$VFS.DEV.DEVNAME.MATCHES}'
formulaid: A
- macro: '{#DEVNAME}'
value: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
- macro: '{#DEVTYPE}'
value: disk
formulaid: C
item_prototypes:
- uuid: 9a0448cf8a184d52a7872df410f25d6b
name: '{#DEVNAME}: Disk average queue size (avgqu-sz)'
type: DEPENDENT
key: 'vfs.dev.queue_size[{#DEVNAME}]'
delay: '0'
value_type: FLOAT
description: 'The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.'
preprocessing:
- type: JSONPATH
parameters:
- '$[10]'
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 1b3559f0d90948f0a72c2fdfdc80930b
name: '{#DEVNAME}: Disk read request avg waiting time (r_await)'
type: CALCULATED
key: 'vfs.dev.read.await[{#DEVNAME}]'
value_type: FLOAT
units: '!ms'
params: '(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)'
description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 3bb5f84b2e954c28843fa1fb3898c034
name: '{#DEVNAME}: Disk read rate'
type: DEPENDENT
key: 'vfs.dev.read.rate[{#DEVNAME}]'
delay: '0'
value_type: FLOAT
units: '!r/s'
description: 'r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.'
preprocessing:
- type: JSONPATH
parameters:
- '$[0]'
- type: CHANGE_PER_SECOND
parameters:
- ''
master_item:
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: df02934521b54864b2538b764c5d549b
name: '{#DEVNAME}: Disk read time (rate)'
type: DEPENDENT
key: 'vfs.dev.read.time.rate[{#DEVNAME}]'
delay: '0'
value_type: FLOAT
description: 'The rate of total read time counter; used in `r_await` calculation.'
preprocessing:
- type: JSONPATH
parameters:
- '$[3]'
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 72546bd5eefb4ac7a0b2992a25e5f0c5
name: '{#DEVNAME}: Disk utilization'
type: DEPENDENT
key: 'vfs.dev.util[{#DEVNAME}]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'The percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.'
preprocessing:
- type: JSONPATH
parameters:
- '$[9]'
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '0.1'
master_item:
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 8422c37735774134996be62580e7bf0f
name: '{#DEVNAME}: Disk write request avg waiting time (w_await)'
type: CALCULATED
key: 'vfs.dev.write.await[{#DEVNAME}]'
value_type: FLOAT
units: '!ms'
params: '(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)'
description: 'This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 4ba78909402d4bb8ab32f12c679ea3db
name: '{#DEVNAME}: Disk write rate'
type: DEPENDENT
key: 'vfs.dev.write.rate[{#DEVNAME}]'
delay: '0'
value_type: FLOAT
units: '!w/s'
description: 'w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.'
preprocessing:
- type: JSONPATH
parameters:
- '$[4]'
- type: CHANGE_PER_SECOND
parameters:
- ''
master_item:
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 7717dd9841004fa08b35b0e9f42bffaf
name: '{#DEVNAME}: Disk write time (rate)'
type: DEPENDENT
key: 'vfs.dev.write.time.rate[{#DEVNAME}]'
delay: '0'
value_type: FLOAT
description: 'The rate of total write time counter; used in `w_await` calculation.'
preprocessing:
- type: JSONPATH
parameters:
- '$[7]'
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '0.001'
master_item:
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
tags:
- tag: component
value: storage
- tag: disk
value: '{#DEVNAME}'
- uuid: 39877664726f4886aa88f3d1592bbcb1
name: '{#DEVNAME}: Get stats'
type: ZABBIX_ACTIVE
key: 'vfs.file.contents[/sys/block/{#DEVNAME}/stat]'
history: '0'
value_type: TEXT
trends: '0'
description: 'The contents of get `/sys/block/{#DEVNAME}/stat` to get the disk statistics.'
preprocessing:
- type: JAVASCRIPT
parameters:
- 'return JSON.stringify(value.trim().split(/ +/));'
tags:
- tag: component
value: raw
trigger_prototypes:
- uuid: fd5732c3cf5249f9a05e3b6cedc2d2fd
expression: 'min(/Linux by Zabbix agent active/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} or min(/Linux by Zabbix agent active/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"}'
name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high'
event_name: 'Linux: {#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"} ms for 15m)'
priority: WARNING
description: 'This trigger might indicate the disk `{#DEVNAME}` saturation.'
manual_close: 'YES'
tags:
- tag: scope
value: performance
graph_prototypes:
- uuid: feca6a365b8d49d2a66ff4bfac089fc8
name: '{#DEVNAME}: Disk average waiting time'
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.dev.read.await[{#DEVNAME}]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.dev.write.await[{#DEVNAME}]'
- uuid: b136583f822a4d48a52a17f4bb0d07d9
name: '{#DEVNAME}: Disk read/write rates'
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.dev.read.rate[{#DEVNAME}]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.dev.write.rate[{#DEVNAME}]'
- uuid: 8863772fb82b49a891ea50cbec5cdd05
name: '{#DEVNAME}: Disk utilization and queue'
graph_items:
- color: 199C0D
yaxisside: RIGHT
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.dev.queue_size[{#DEVNAME}]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.dev.util[{#DEVNAME}]'
- uuid: 5c9b5dbed44c4af0957ff9316f8fb761
name: 'Mounted filesystem discovery'
type: DEPENDENT
key: vfs.fs.dependent.discovery
delay: '0'
filter:
evaltype: AND
conditions:
- macro: '{#FSNAME}'
value: '{$VFS.FS.FSNAME.MATCHES}'
formulaid: A
- macro: '{#FSNAME}'
value: '{$VFS.FS.FSNAME.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
- macro: '{#FSTYPE}'
value: '{$VFS.FS.FSTYPE.MATCHES}'
formulaid: C
- macro: '{#FSTYPE}'
value: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: D
description: 'The discovery of mounted filesystems with different types.'
item_prototypes:
- uuid: 5cc9099851ee4f4498fd74ec2c377eb4
name: 'FS [{#FSNAME}]: Inodes: Free, in %'
type: DEPENDENT
key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Free metadata space expressed in %.'
preprocessing:
- type: JSONPATH
parameters:
- $.inodes.pfree
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
trigger_prototypes:
- uuid: 98e196ffb6f0422baf007fcff5f45b60
expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
name: 'Linux: FS [{#FSNAME}]: Running out of free inodes'
event_name: 'Linux: {#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}%)'
opdata: 'Free inodes: {ITEM.LASTVALUE1}'
priority: AVERAGE
description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: a17e14a65c53447a9ce607799a62e7dd
expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}'
name: 'Linux: FS [{#FSNAME}]: Running out of free inodes'
event_name: 'Linux: FS [{#FSNAME}]: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}%)'
opdata: 'Free inodes: {ITEM.LASTVALUE1}'
priority: WARNING
description: 'Disk writing may fail if index nodes are exhausted, leading to error messages like "No space left on device" or "Disk is full", despite available free space.'
dependencies:
- name: 'Linux: FS [{#FSNAME}]: Running out of free inodes'
expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: 4c658024f34c49d7bd5f6ca9b33c13d7
name: 'FS [{#FSNAME}]: Space: Available'
type: DEPENDENT
key: 'vfs.fs.dependent.size[{#FSNAME},free]'
delay: '0'
units: B
description: 'Available storage space expressed in bytes.'
preprocessing:
- type: JSONPATH
parameters:
- $.bytes.free
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
- uuid: b33989051217493cb9124302297e409f
name: 'FS [{#FSNAME}]: Space: Used, in %'
type: DEPENDENT
key: 'vfs.fs.dependent.size[{#FSNAME},pused]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Calculated as the percentage of currently used space compared to the maximum available space.'
preprocessing:
- type: JSONPATH
parameters:
- $.bytes.pused
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
trigger_prototypes:
- uuid: cf4079132a9d4124aa5e29d6839ae35b
expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
name: 'Linux: FS [{#FSNAME}]: Space is critically low'
event_name: 'Linux: FS [{#FSNAME}]: Space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)'
opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%'
priority: AVERAGE
description: |
The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}%` limit.
The trigger expression is based on the current used and maximum available spaces.
Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type.
manual_close: 'YES'
tags:
- tag: scope
value: availability
- tag: scope
value: capacity
- uuid: b56b8cad3bb34fab8132e07a32c432d9
expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}'
name: 'Linux: FS [{#FSNAME}]: Space is low'
event_name: 'Linux: FS [{#FSNAME}]: Space is low (used > {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%, total {{?last(//vfs.fs.dependent.size[{#FSNAME},total])/1024/1024/1024}.fmtnum(1)}GB)'
opdata: 'Space used: {{ITEM.LASTVALUE1}.fmtnum(1)}%'
priority: WARNING
description: |
The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}%` limit.
The trigger expression is based on the current used and maximum available spaces.
Event name represents the total volume space, which can differ from the maximum available space, depending on the filesystem type.
manual_close: 'YES'
dependencies:
- name: 'Linux: FS [{#FSNAME}]: Space is critically low'
expression: 'min(/Linux by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
tags:
- tag: scope
value: availability
- tag: scope
value: capacity
- uuid: 5cee504041e347719b35ee2c5a6056b8
name: 'FS [{#FSNAME}]: Space: Total'
type: DEPENDENT
key: 'vfs.fs.dependent.size[{#FSNAME},total]'
delay: '0'
units: B
description: 'Total space expressed in bytes.'
preprocessing:
- type: JSONPATH
parameters:
- $.bytes.total
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
- uuid: f23970d301be4085ab9038d3078b3871
name: 'FS [{#FSNAME}]: Space: Used'
type: DEPENDENT
key: 'vfs.fs.dependent.size[{#FSNAME},used]'
delay: '0'
units: B
description: 'Used storage expressed in bytes.'
preprocessing:
- type: JSONPATH
parameters:
- $.bytes.used
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
- uuid: 7eb5cb610b1e4c438af380383c75047f
name: 'FS [{#FSNAME}]: Get data'
type: DEPENDENT
key: 'vfs.fs.dependent[{#FSNAME},data]'
delay: '0'
history: 1h
value_type: TEXT
trends: '0'
description: 'Intermediate data of `{#FSNAME}` filesystem.'
preprocessing:
- type: JSONPATH
parameters:
- '$.[?(@.fsname==''{#FSNAME}'')].first()'
master_item:
key: vfs.fs.get
tags:
- tag: component
value: raw
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
- uuid: e335d40e5d0e4e41b29f1b355018dd91
name: 'FS [{#FSNAME}]: Option: Read-only'
type: DEPENDENT
key: 'vfs.fs.dependent[{#FSNAME},readonly]'
delay: '0'
description: 'The filesystem is mounted as read-only. It is available only for Zabbix agents 6.4 and higher.'
preprocessing:
- type: JSONPATH
parameters:
- $.options
error_handler: DISCARD_VALUE
- type: REGEX
parameters:
- '(?:^|,)ro\b'
- '1'
error_handler: CUSTOM_VALUE
error_handler_params: '0'
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
trigger_prototypes:
- uuid: 001c20d581824f0380244745ce0fae9e
expression: 'last(/Linux by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/Linux by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly])=1'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'last(/Linux by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly])=0'
name: 'Linux: FS [{#FSNAME}]: Filesystem has become read-only'
priority: AVERAGE
description: 'The filesystem has become read-only, possibly due to an I/O error. Available only for Zabbix agents 6.4 and higher.'
manual_close: 'YES'
tags:
- tag: scope
value: availability
- tag: scope
value: performance
graph_prototypes:
- uuid: 7af98afdf5ad43c9b77dddbe4e68b84f
name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)'
width: '600'
height: '340'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- drawtype: FILLED_REGION
color: F63100
calc_fnc: ALL
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.fs.dependent.size[{#FSNAME},pused]'
- uuid: 1c4fcab8d16440529fb3f2347cd04f51
name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
width: '600'
height: '340'
type: PIE
show_3d: 'YES'
graph_items:
- color: '787878'
calc_fnc: LAST
type: GRAPH_SUM
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.fs.dependent.size[{#FSNAME},total]'
- sortorder: '1'
color: F63100
calc_fnc: LAST
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.fs.dependent.size[{#FSNAME},used]'
- sortorder: '2'
color: 199C09
calc_fnc: LAST
item:
host: 'Linux by Zabbix agent active'
key: 'vfs.fs.dependent.size[{#FSNAME},free]'
master_item:
key: vfs.fs.get
lld_macro_paths:
- lld_macro: '{#FSNAME}'
path: $.fsname
- lld_macro: '{#FSTYPE}'
path: $.fstype
preprocessing:
- type: JAVASCRIPT
parameters:
- |
var filesystems = JSON.parse(value);
result = filesystems.map(function (filesystem) {
return {
'fsname': filesystem.fsname,
'fstype': filesystem.fstype
};
});
return JSON.stringify(result);
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
overrides:
- name: 'Skip metadata collection for dynamic FS'
step: '1'
filter:
conditions:
- macro: '{#FSTYPE}'
value: ^(btrfs|zfs)$
formulaid: A
operations:
- operationobject: ITEM_PROTOTYPE
operator: LIKE
value: Inodes
discover: NO_DISCOVER
tags:
- tag: class
value: os
- tag: target
value: linux
macros:
- macro: '{$AGENT.NODATA_TIMEOUT}'
value: 30m
description: 'No data timeout for active agents. Consider to keep it relatively high.'
- macro: '{$AGENT.TIMEOUT}'
value: 5m
description: 'Timeout after which agent is considered unavailable.'
- macro: '{$CPU.UTIL.CRIT}'
value: '90'
description: 'Critical threshold of CPU utilization expressed in %.'
- macro: '{$IF.ERRORS.WARN}'
value: '2'
description: 'Warning threshold of error packet rate. Can be used with interface name as context.'
- macro: '{$IF.UTIL.MAX}'
value: '90'
description: 'Used as a threshold in the interface utilization trigger.'
- macro: '{$IFCONTROL}'
value: '1'
description: 'Link status trigger will be fired only for interfaces where the context macro equals "1".'
- macro: '{$KERNEL.MAXFILES.MIN}'
value: '256'
- macro: '{$KERNEL.MAXPROC.MIN}'
value: '1024'
- macro: '{$LOAD_AVG_PER_CPU.MAX.WARN}'
value: '1.5'
description: 'The CPU load per core is considered sustainable. If necessary, it can be tuned.'
- macro: '{$MEMORY.AVAILABLE.MIN}'
value: 20M
description: 'Used as a thresholdin the memory available trigger.'
- macro: '{$MEMORY.UTIL.MAX}'
value: '90'
description: 'Used as a thresholdin the memory utilization trigger.'
- macro: '{$NET.IF.IFNAME.MATCHES}'
value: '^.*$'
description: 'Used for network interface discovery. Can be overridden on the host or linked template level.'
- macro: '{$NET.IF.IFNAME.NOT_MATCHES}'
value: '(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})'
description: 'Filters out `loopbacks`, `nulls`, docker `veth` links and `docker0` bridge by default.'
- macro: '{$SWAP.PFREE.MIN.WARN}'
value: '50'
description: 'The warning threshold of the minimum free swap.'
- macro: '{$VFS.DEV.DEVNAME.MATCHES}'
value: .+
description: 'Used for block device discovery. Can be overridden on the host or linked template level.'
- macro: '{$VFS.DEV.DEVNAME.NOT_MATCHES}'
value: '^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)'
description: 'Used for block device discovery. Can be overridden on the host or linked template level.'
- macro: '{$VFS.DEV.READ.AWAIT.WARN}'
value: '20'
description: 'The average response time (in ms) of disk read before the trigger fires.'
- macro: '{$VFS.DEV.WRITE.AWAIT.WARN}'
value: '20'
description: 'The average response time (in ms) of disk write before the trigger fires.'
- macro: '{$VFS.FS.FSNAME.MATCHES}'
value: .+
description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.'
- macro: '{$VFS.FS.FSNAME.NOT_MATCHES}'
value: ^(/dev|/sys|/run|/proc|.+/shm$)
description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.'
- macro: '{$VFS.FS.FSTYPE.MATCHES}'
value: ^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$
description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.'
- macro: '{$VFS.FS.FSTYPE.NOT_MATCHES}'
value: ^\s$
description: 'Used for filesystem discovery. Can be overridden on the host or linked template level.'
- macro: '{$VFS.FS.INODE.PFREE.MIN.CRIT}'
value: '10'
description: 'The critical threshold of the filesystem metadata utilization.'
- macro: '{$VFS.FS.INODE.PFREE.MIN.WARN}'
value: '20'
description: 'The warning threshold of the filesystem metadata utilization.'
- macro: '{$VFS.FS.PUSED.MAX.CRIT}'
value: '90'
description: 'The critical threshold of the filesystem utilization.'
- macro: '{$VFS.FS.PUSED.MAX.WARN}'
value: '80'
description: 'The warning threshold of the filesystem utilization.'
dashboards:
- uuid: 9dca5f83cd664db1ba41b8751ce3d055
name: Filesystems
pages:
- name: Overview
widgets:
- type: graphprototype
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '3'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
- type: STRING
name: reference
value: AAAEB
- type: graphprototype
'y': '5'
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)'
- type: STRING
name: reference
value: AAAEC
- uuid: 6d179c1f45c2438e9e6a3aa567d46b0c
name: 'Network interfaces'
pages:
- name: Overview
widgets:
- type: graphprototype
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'Interface {#IFNAME}: Network traffic'
- type: STRING
name: reference
value: AAAAJ
- uuid: 3e6ceed431734cc29836019e93b5f89e
name: 'System performance'
pages:
- widgets:
- type: graph
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'Linux: System load'
- type: STRING
name: reference
value: AAAAA
- type: graph
'y': '5'
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'Linux: Memory usage'
- type: STRING
name: reference
value: AAAAC
- type: graphprototype
'y': '10'
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '3'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
- type: STRING
name: reference
value: AAAEA
- type: graphprototype
'y': '15'
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: '{#DEVNAME}: Disk read/write rates'
- type: STRING
name: reference
value: AAAAF
- type: graphprototype
'y': '20'
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: '{#DEVNAME}: Disk average waiting time'
- type: STRING
name: reference
value: AAAAG
- type: graphprototype
'y': '25'
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: '{#DEVNAME}: Disk utilization and queue'
- type: STRING
name: reference
value: AAAAH
- type: graphprototype
'y': '30'
width: '72'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'Interface {#IFNAME}: Network traffic'
- type: STRING
name: reference
value: AAAAI
- type: graph
x: '36'
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'Linux: CPU usage'
- type: STRING
name: reference
value: AAAAB
- type: graph
x: '36'
'y': '5'
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'Linux by Zabbix agent active'
name: 'Linux: Swap usage'
- type: STRING
name: reference
value: AAAAD
valuemaps:
- uuid: 276914b5aee2435da609d3112ecd359d
name: ifOperStatus
mappings:
- value: '0'
newvalue: unknown
- value: '1'
newvalue: notpresent
- value: '2'
newvalue: down
- value: '3'
newvalue: lowerlayerdown
- value: '4'
newvalue: testing
- value: '5'
newvalue: dormant
- value: '6'
newvalue: up
- uuid: 79afe98a54a648bb981c29e70ba6652c
name: 'Linux::Interface protocol types'
mappings:
- value: '0'
newvalue: 'from KA9Q: NET/ROM pseudo'
- value: '1'
newvalue: Ethernet
- value: '2'
newvalue: 'Experimental Ethernet'
- value: '3'
newvalue: 'AX.25 Level 2'
- value: '4'
newvalue: 'PROnet token ring'
- value: '5'
newvalue: Chaosnet
- value: '6'
newvalue: 'IEEE 802.2 Ethernet/TR/TB'
- value: '7'
newvalue: ARCnet
- value: '8'
newvalue: APPLEtalk
- value: '15'
newvalue: 'Frame Relay DLCI'
- value: '19'
newvalue: ATM
- value: '23'
newvalue: 'Metricom STRIP (new IANA id)'
- value: '24'
newvalue: 'IEEE 1394 IPv4 - RFC 2734'
- value: '27'
newvalue: EUI-64
- value: '32'
newvalue: InfiniBand
- value: '256'
newvalue: ARPHRD_SLIP
- value: '257'
newvalue: ARPHRD_CSLIP
- value: '258'
newvalue: ARPHRD_SLIP6
- value: '259'
newvalue: ARPHRD_CSLIP6
- value: '260'
newvalue: 'Notional KISS type'
- value: '264'
newvalue: ARPHRD_ADAPT
- value: '270'
newvalue: ARPHRD_ROSE
- value: '271'
newvalue: 'CCITT X.25'
- value: '272'
newvalue: 'Boards with X.25 in firmware'
- value: '280'
newvalue: 'Controller Area Network'
- value: '512'
newvalue: ARPHRD_PPP
- value: '513'
newvalue: 'Cisco HDLC'
- value: '516'
newvalue: LAPB
- value: '517'
newvalue: 'Digital''s DDCMP protocol'
- value: '518'
newvalue: 'Raw HDLC'
- value: '519'
newvalue: 'Raw IP'
- value: '768'
newvalue: 'IPIP tunnel'
- value: '769'
newvalue: 'IP6IP6 tunnel'
- value: '770'
newvalue: 'Frame Relay Access Device'
- value: '771'
newvalue: 'SKIP vif'
- value: '772'
newvalue: 'Loopback device'
- value: '773'
newvalue: 'Localtalk device'
- value: '774'
newvalue: 'Fiber Distributed Data Interface'
- value: '775'
newvalue: 'AP1000 BIF'
- value: '776'
newvalue: 'sit0 device - IPv6-in-IPv4'
- value: '777'
newvalue: 'IP over DDP tunneller'
- value: '778'
newvalue: 'GRE over IP'
- value: '779'
newvalue: 'PIMSM register interface'
- value: '780'
newvalue: 'High Performance Parallel Interface'
- value: '781'
newvalue: 'Nexus 64Mbps Ash'
- value: '782'
newvalue: 'Acorn Econet'
- value: '783'
newvalue: Linux-IrDA
- value: '784'
newvalue: 'Point to point fibrechannel'
- value: '785'
newvalue: 'Fibrechannel arbitrated loop'
- value: '786'
newvalue: 'Fibrechannel public loop'
- value: '787'
newvalue: 'Fibrechannel fabric'
- value: '800'
newvalue: 'Magic type ident for TR'
- value: '801'
newvalue: 'IEEE 802.11'
- value: '802'
newvalue: 'IEEE 802.11 + Prism2 header'
- value: '803'
newvalue: 'IEEE 802.11 + radiotap header'
- value: '804'
newvalue: ARPHRD_IEEE802154
- value: '805'
newvalue: 'IEEE 802.15.4 network monitor'
- value: '820'
newvalue: 'PhoNet media type'
- value: '821'
newvalue: 'PhoNet pipe header'
- value: '822'
newvalue: 'CAIF media type'
- value: '823'
newvalue: 'GRE over IPv6'
- value: '824'
newvalue: 'Netlink header'
- value: '825'
newvalue: 'IPv6 over LoWPAN'
- value: '826'
newvalue: 'Vsock monitor header'
- uuid: d4a5821461a243c9bf320ea58be1af23
name: zabbix.host.active_agent.available
mappings:
- value: '0'
newvalue: unknown
- value: '1'
newvalue: available
- value: '2'
newvalue: 'not available'
- uuid: e815d397c5e44f1791622fd598bc1131
name: 'Zabbix agent ping status'
mappings:
- value: '1'
newvalue: Up
triggers:
- uuid: fa21b02aebe143b192a20cd9403a68d0
expression: 'last(/Linux by Zabbix agent active/proc.num)/last(/Linux by Zabbix agent active/kernel.maxproc)*100>80'
name: 'Linux: Getting closer to process limit'
event_name: 'Linux: Getting closer to process limit (over 80% used)'
opdata: '{ITEM.LASTVALUE1} active, {ITEM.LASTVALUE2} limit.'
priority: WARNING
tags:
- tag: scope
value: performance
- uuid: 722692e0703e4609852439a9b751826d
expression: 'max(/Linux by Zabbix agent active/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Zabbix agent active/system.swap.size[,total])>0'
name: 'Linux: High swap space usage'
event_name: 'Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)'
opdata: 'Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}'
priority: WARNING
description: 'If there is no swap configured, this trigger is ignored.'
dependencies:
- name: 'Linux: High memory utilization'
expression: 'min(/Linux by Zabbix agent active/vm.memory.util,5m)>{$MEMORY.UTIL.MAX}'
- name: 'Linux: Lack of available memory'
expression: 'max(/Linux by Zabbix agent active/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent active/vm.memory.size[total])>0'
tags:
- tag: scope
value: capacity
- uuid: b3f51f3c63024d209fd01e17293127a6
expression: 'max(/Linux by Zabbix agent active/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent active/vm.memory.size[total])>0'
name: 'Linux: Lack of available memory'
event_name: 'Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})'
opdata: 'Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}'
priority: AVERAGE
description: 'The system is running out of memory.'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: 72825a0c706043429ed1ff6656763052
expression: |
min(/Linux by Zabbix agent active/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent active/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}
and last(/Linux by Zabbix agent active/system.cpu.load[all,avg5])>0
and last(/Linux by Zabbix agent active/system.cpu.load[all,avg15])>0
name: 'Linux: Load average is too high'
event_name: 'Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)'
opdata: 'Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}'
priority: AVERAGE
description: 'The load average per CPU is too high. The system may be slow to respond.'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
graphs:
- uuid: 2e4890b0db694721b1e903ecf01c612c
name: 'Linux: CPU jumps'
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: system.cpu.switches
- sortorder: '1'
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: system.cpu.intr
- uuid: 27b4612871004ca282f7d91057150800
name: 'Linux: CPU usage'
type: STACKED
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,system]'
- sortorder: '1'
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,user]'
- sortorder: '2'
color: 00611C
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,nice]'
- sortorder: '3'
color: F7941D
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,iowait]'
- sortorder: '4'
color: FC6EA3
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,steal]'
- sortorder: '5'
color: 6C59DC
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,interrupt]'
- sortorder: '6'
color: C7A72D
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,softirq]'
- sortorder: '7'
color: BA2A5D
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,guest]'
- sortorder: '8'
color: F230E0
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.util[,guest_nice]'
- uuid: 3bebe4d0071441f4b95170fd0278a4dd
name: 'Linux: CPU utilization'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: system.cpu.util
- uuid: a4d67a1cd253431faaedf888dad90e72
name: 'Linux: Memory usage'
ymin_type_1: FIXED
graph_items:
- drawtype: BOLD_LINE
color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'vm.memory.size[total]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'vm.memory.size[available]'
- uuid: 4aaf22daf96b4b29ad3a2e935f4e2d4c
name: 'Linux: Memory utilization'
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: vm.memory.util
- uuid: 60078a7b24494a41a3595650b113ee1d
name: 'Linux: Processes'
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: proc.num
- sortorder: '1'
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'proc.num[,,run]'
- uuid: a70c0c13381a4fb68eaeb66226ffe2bb
name: 'Linux: Swap usage'
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'system.swap.size[,free]'
- sortorder: '1'
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'system.swap.size[,total]'
- uuid: d47109e977ec4362a3f3bb5e7708b48a
name: 'Linux: System load'
ymin_type_1: FIXED
graph_items:
- color: 199C0D
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.load[all,avg1]'
- sortorder: '1'
color: F63100
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.load[all,avg5]'
- sortorder: '2'
color: 00611C
item:
host: 'Linux by Zabbix agent active'
key: 'system.cpu.load[all,avg15]'
- sortorder: '3'
color: F7941D
yaxisside: RIGHT
item:
host: 'Linux by Zabbix agent active'
key: system.cpu.num