Raspbian

Raspberry Pi OS is a Debian-based operating system for Raspberry Pi. Since 2015, it has been officially provided by the Raspberry Pi Foundation as the primary operating system for the Raspberry Pi family of compact single-board computers.

Available solutions




This template is for Zabbix version: 6.2
Also available for: 6.0 5.4 5.0

Source: https://git.zabbix.com/projects/ZBX/repos/zabbix/browse/templates/os/linux?at=release/6.2

Linux by Zabbix agent

Overview

For Zabbix version: 6.2 and higher
New official Linux template. Requires agent of Zabbix 3.0.14, 3.4.5 and 4.0.0 or newer.

Setup

Install Zabbix agent on Linux OS according to Zabbix documentation.

Zabbix configuration

No specific Zabbix configuration is required.

Macros used

Name Description Default
{$AGENT.TIMEOUT}

Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode).

3m
{$CPU.UTIL.CRIT}

-

90
{$IF.ERRORS.WARN}

-

2
{$IF.UTIL.MAX}

This macro is used as a threshold in interface utilization trigger.

90
{$IFCONTROL}

-

1
{$KERNEL.MAXFILES.MIN}

-

256
{$KERNEL.MAXPROC.MIN}

-

1024
{$LOAD_AVG_PER_CPU.MAX.WARN}

Load per CPU considered sustainable. Tune if needed.

1.5
{$MEMORY.AVAILABLE.MIN}

This macro is used as a threshold in memory available trigger.

20M
{$MEMORY.UTIL.MAX}

This macro is used as a threshold in memory utilization trigger.

90
{$NET.IF.IFNAME.MATCHES}

-

^.*$
{$NET.IF.IFNAME.NOT_MATCHES}

Filter out loopbacks, nulls, docker veth links and docker0 bridge by default

(^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})
{$SWAP.PFREE.MIN.WARN}

-

50
{$SYSTEM.FUZZYTIME.MAX}

-

60
{$VFS.DEV.DEVNAME.MATCHES}

This macro is used in block devices discovery. Can be overridden on the host or linked template level

.+
{$VFS.DEV.DEVNAME.NOT_MATCHES}

This macro is used in block devices discovery. Can be overridden on the host or linked template level

^(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]*)
{$VFS.DEV.READ.AWAIT.WARN}

Disk read average response time (in ms) before the trigger would fire

20
{$VFS.DEV.WRITE.AWAIT.WARN}

Disk write average response time (in ms) before the trigger would fire

20
{$VFS.FS.FREE.MIN.CRIT}

The critical threshold of the filesystem utilization.

5G
{$VFS.FS.FREE.MIN.WARN}

The warning threshold of the filesystem utilization.

10G
{$VFS.FS.FSNAME.MATCHES}

This macro is used in filesystems discovery. Can be overridden on the host or linked template level

.+
{$VFS.FS.FSNAME.NOT_MATCHES}

This macro is used in filesystems discovery. Can be overridden on the host or linked template level

^(/dev|/sys|/run|/proc|.+/shm$)
{$VFS.FS.FSTYPE.MATCHES}

This macro is used in filesystems discovery. Can be overridden on the host or linked template level

^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$
{$VFS.FS.FSTYPE.NOT_MATCHES}

This macro is used in filesystems discovery. Can be overridden on the host or linked template level

^\s$
{$VFS.FS.INODE.PFREE.MIN.CRIT}

-

10
{$VFS.FS.INODE.PFREE.MIN.WARN}

-

20
{$VFS.FS.PUSED.MAX.CRIT}

-

90
{$VFS.FS.PUSED.MAX.WARN}

-

80

Template links

There are no template links in this template.

Discovery rules

Name Description Type Key and additional info
Block devices discovery

-

ZABBIX_PASSIVE vfs.dev.discovery

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1h

Filter:

AND

- {#DEVTYPE} MATCHES_REGEX disk

- {#DEVNAME} MATCHES_REGEX {$VFS.DEV.DEVNAME.MATCHES}

- {#DEVNAME} NOT_MATCHES_REGEX {$VFS.DEV.DEVNAME.NOT_MATCHES}

Mounted filesystem discovery

Discovery of file systems of different types.

ZABBIX_PASSIVE vfs.fs.discovery

Filter:

AND

- {#FSTYPE} MATCHES_REGEX {$VFS.FS.FSTYPE.MATCHES}

- {#FSTYPE} NOT_MATCHES_REGEX {$VFS.FS.FSTYPE.NOT_MATCHES}

- {#FSNAME} MATCHES_REGEX {$VFS.FS.FSNAME.MATCHES}

- {#FSNAME} NOT_MATCHES_REGEX {$VFS.FS.FSNAME.NOT_MATCHES}

Network interface discovery

Discovery of network interfaces.

ZABBIX_PASSIVE net.if.discovery

Filter:

AND

- {#IFNAME} MATCHES_REGEX {$NET.IF.IFNAME.MATCHES}

- {#IFNAME} NOT_MATCHES_REGEX {$NET.IF.IFNAME.NOT_MATCHES}

Items collected

Group Name Description Type Key and additional info
CPU Number of CPUs

-

ZABBIX_PASSIVE system.cpu.num

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

CPU Load average (1m avg)

-

ZABBIX_PASSIVE system.cpu.load[all,avg1]
CPU Load average (5m avg)

-

ZABBIX_PASSIVE system.cpu.load[all,avg5]
CPU Load average (15m avg)

-

ZABBIX_PASSIVE system.cpu.load[all,avg15]
CPU CPU utilization

CPU utilization in %.

DEPENDENT system.cpu.util

Preprocessing:

- JAVASCRIPT: //Calculate utilization return (100 - value)

CPU CPU idle time

The time the CPU has spent doing nothing.

ZABBIX_PASSIVE system.cpu.util[,idle]
CPU CPU system time

The time the CPU has spent running the kernel and its processes.

ZABBIX_PASSIVE system.cpu.util[,system]
CPU CPU user time

The time the CPU has spent running users' processes that are not niced.

ZABBIX_PASSIVE system.cpu.util[,user]
CPU CPU nice time

The time the CPU has spent running users' processes that have been niced.

ZABBIX_PASSIVE system.cpu.util[,nice]
CPU CPU iowait time

Amount of time the CPU has been waiting for I/O to complete.

ZABBIX_PASSIVE system.cpu.util[,iowait]
CPU CPU steal time

The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).

ZABBIX_PASSIVE system.cpu.util[,steal]
CPU CPU interrupt time

The amount of time the CPU has been servicing hardware interrupts.

ZABBIX_PASSIVE system.cpu.util[,interrupt]
CPU CPU softirq time

The amount of time the CPU has been servicing software interrupts.

ZABBIX_PASSIVE system.cpu.util[,softirq]
CPU CPU guest time

Guest time (time spent running a virtual CPU for a guest operating system).

ZABBIX_PASSIVE system.cpu.util[,guest]
CPU CPU guest nice time

Time spent running a niced guest (virtual CPU for guest operating systems under the control of the Linux kernel).

ZABBIX_PASSIVE system.cpu.util[,guest_nice]
CPU Context switches per second

-

ZABBIX_PASSIVE system.cpu.switches

Preprocessing:

- CHANGE_PER_SECOND

CPU Interrupts per second

-

ZABBIX_PASSIVE system.cpu.intr

Preprocessing:

- CHANGE_PER_SECOND

Filesystems {#FSNAME}: Used space

Used storage in Bytes

ZABBIX_PASSIVE vfs.fs.size[{#FSNAME},used]
Filesystems {#FSNAME}: Total space

Total space in Bytes

ZABBIX_PASSIVE vfs.fs.size[{#FSNAME},total]
Filesystems {#FSNAME}: Space utilization

Space utilization in % for {#FSNAME}

ZABBIX_PASSIVE vfs.fs.size[{#FSNAME},pused]
Filesystems {#FSNAME}: Free inodes in %

-

ZABBIX_PASSIVE vfs.fs.inode[{#FSNAME},pfree]
General System boot time

-

ZABBIX_PASSIVE system.boottime

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1h

General System local time

System local time of the host.

ZABBIX_PASSIVE system.localtime
General System name

System host name.

ZABBIX_PASSIVE system.hostname

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

General System description

The information as normally returned by 'uname -a'.

ZABBIX_PASSIVE system.uname

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 12h

General Number of logged in users

Number of users who are currently logged in.

ZABBIX_PASSIVE system.users.num
General Maximum number of open file descriptors

It could be increased by using sysctl utility or modifying file /etc/sysctl.conf.

ZABBIX_PASSIVE kernel.maxfiles

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

General Maximum number of processes

It could be increased by using sysctl utility or modifying file /etc/sysctl.conf.

ZABBIX_PASSIVE kernel.maxproc

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

General Number of processes

-

ZABBIX_PASSIVE proc.num
General Number of running processes

-

ZABBIX_PASSIVE proc.num[,,run]
Inventory Operating system

-

ZABBIX_PASSIVE system.sw.os

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

Inventory Operating system architecture

Operating system architecture of the host.

ZABBIX_PASSIVE system.sw.arch

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

Inventory Software installed

-

ZABBIX_PASSIVE system.sw.packages

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

Memory Memory utilization

Memory used percentage is calculated as (100-pavailable)

DEPENDENT vm.memory.utilization

Preprocessing:

- JAVASCRIPT: return (100-value);

Memory Available memory in %

Available memory as percentage of total. See also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.

ZABBIX_PASSIVE vm.memory.size[pavailable]
Memory Total memory

Total memory in Bytes.

ZABBIX_PASSIVE vm.memory.size[total]
Memory Available memory

Available memory, in Linux, available = free + buffers + cache. On other platforms calculation may vary. See also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.

ZABBIX_PASSIVE vm.memory.size[available]
Memory Total swap space

The total space of swap volume/file in bytes.

ZABBIX_PASSIVE system.swap.size[,total]
Memory Free swap space

The free space of swap volume/file in bytes.

ZABBIX_PASSIVE system.swap.size[,free]
Memory Free swap space in %

The free space of swap volume/file in percent.

ZABBIX_PASSIVE system.swap.size[,pfree]
Monitoring agent Version of Zabbix agent running

-

ZABBIX_PASSIVE agent.version

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

Monitoring agent Host name of Zabbix agent running

-

ZABBIX_PASSIVE agent.hostname

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

Monitoring agent Zabbix agent ping

The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.

ZABBIX_PASSIVE agent.ping
Network interfaces Interface {#IFNAME}: Bits received

-

ZABBIX_PASSIVE net.if.in["{#IFNAME}"]

Preprocessing:

- CHANGE_PER_SECOND

- MULTIPLIER: 8

Network interfaces Interface {#IFNAME}: Bits sent

-

ZABBIX_PASSIVE net.if.out["{#IFNAME}"]

Preprocessing:

- CHANGE_PER_SECOND

- MULTIPLIER: 8

Network interfaces Interface {#IFNAME}: Outbound packets with errors

-

ZABBIX_PASSIVE net.if.out["{#IFNAME}",errors]

Preprocessing:

- CHANGE_PER_SECOND

Network interfaces Interface {#IFNAME}: Inbound packets with errors

-

ZABBIX_PASSIVE net.if.in["{#IFNAME}",errors]

Preprocessing:

- CHANGE_PER_SECOND

Network interfaces Interface {#IFNAME}: Outbound packets discarded

-

ZABBIX_PASSIVE net.if.out["{#IFNAME}",dropped]

Preprocessing:

- CHANGE_PER_SECOND

Network interfaces Interface {#IFNAME}: Inbound packets discarded

-

ZABBIX_PASSIVE net.if.in["{#IFNAME}",dropped]

Preprocessing:

- CHANGE_PER_SECOND

Network interfaces Interface {#IFNAME}: Operational status

Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt

ZABBIX_PASSIVE vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"]

Preprocessing:

- JAVASCRIPT: The text is too long. Please see the template.

Network interfaces Interface {#IFNAME}: Interface type

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

ZABBIX_PASSIVE vfs.file.contents["/sys/class/net/{#IFNAME}/type"]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1d

Network interfaces Interface {#IFNAME}: Speed

Indicates the interface latest or current speed value. Value is an integer representing the link speed in bits/sec.

This attribute is only valid for interfaces that implement the ethtool get_link_ksettings method (mostly Ethernet).

Reference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net

ZABBIX_PASSIVE vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]

Preprocessing:

- MULTIPLIER: 1000000

- DISCARD_UNCHANGED_HEARTBEAT: 1h

Security Checksum of /etc/passwd

-

ZABBIX_PASSIVE vfs.file.cksum[/etc/passwd,sha256]

Preprocessing:

- DISCARD_UNCHANGED_HEARTBEAT: 1h

Status System uptime

System uptime in 'N days, hh:mm:ss' format.

ZABBIX_PASSIVE system.uptime
Status Zabbix agent availability

Monitoring agent availability status

INTERNAL zabbix[host,agent,available]
Storage {#DEVNAME}: Disk read rate

r/s. The number (after merges) of read requests completed per second for the device.

DEPENDENT vfs.dev.read.rate[{#DEVNAME}]

Preprocessing:

- JSONPATH: $[0]

- CHANGE_PER_SECOND

Storage {#DEVNAME}: Disk write rate

w/s. The number (after merges) of write requests completed per second for the device.

DEPENDENT vfs.dev.write.rate[{#DEVNAME}]

Preprocessing:

- JSONPATH: $[4]

- CHANGE_PER_SECOND

Storage {#DEVNAME}: Disk read request avg waiting time (r_await)

This formula contains two boolean expressions that evaluates to 1 or 0 in order to set calculated metric to zero and to avoid division by zero exception.

CALCULATED vfs.dev.read.await[{#DEVNAME}]

Expression:

(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)
Storage {#DEVNAME}: Disk write request avg waiting time (w_await)

This formula contains two boolean expressions that evaluates to 1 or 0 in order to set calculated metric to zero and to avoid division by zero exception.

CALCULATED vfs.dev.write.await[{#DEVNAME}]

Expression:

(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)
Storage {#DEVNAME}: Disk average queue size (avgqu-sz)

Current average disk queue, the number of requests outstanding on the disk at the time the performance data is collected.

DEPENDENT vfs.dev.queue_size[{#DEVNAME}]

Preprocessing:

- JSONPATH: $[10]

- CHANGE_PER_SECOND

- MULTIPLIER: 0.001

Storage {#DEVNAME}: Disk utilization

This item is the percentage of elapsed time that the selected disk drive was busy servicing read or writes requests.

DEPENDENT vfs.dev.util[{#DEVNAME}]

Preprocessing:

- JSONPATH: $[9]

- CHANGE_PER_SECOND

- MULTIPLIER: 0.1

Zabbix raw items {#DEVNAME}: Get stats

Get contents of /sys/block/{#DEVNAME}/stat for disk stats.

ZABBIX_PASSIVE vfs.file.contents[/sys/block/{#DEVNAME}/stat]

Preprocessing:

- JAVASCRIPT: return JSON.stringify(value.trim().split(/ +/));

Zabbix raw items {#DEVNAME}: Disk read time (rate)

Rate of total read time counter. Used in r_await calculation

DEPENDENT vfs.dev.read.time.rate[{#DEVNAME}]

Preprocessing:

- JSONPATH: $[3]

- CHANGE_PER_SECOND

- MULTIPLIER: 0.001

Zabbix raw items {#DEVNAME}: Disk write time (rate)

Rate of total write time counter. Used in w_await calculation

DEPENDENT vfs.dev.write.time.rate[{#DEVNAME}]

Preprocessing:

- JSONPATH: $[7]

- CHANGE_PER_SECOND

- MULTIPLIER: 0.001

Triggers

Name Description Expression Severity Dependencies and additional info
Load average is too high

Per CPU load average is too high. Your system may be slow to respond.

min(/Linux by Zabbix agent/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN} and last(/Linux by Zabbix agent/system.cpu.load[all,avg5])>0 and last(/Linux by Zabbix agent/system.cpu.load[all,avg15])>0 AVERAGE
High CPU utilization

CPU utilization is too high. The system might be slow to respond.

min(/Linux by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT} WARNING

Depends on:

- Load average is too high

{#FSNAME}: Disk space is critically low

Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}.

Second condition should be one of the following:

- The disk free space is less than {$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"}.

- The disk will be full in less than 24 hours.

last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"} and ((last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},total])-last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.CRIT:"{#FSNAME}"} or timeleft(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused],1h,100)<1d) AVERAGE

Manual close: YES

{#FSNAME}: Disk space is low

Two conditions should match: First, space utilization should be above {$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}.

Second condition should be one of the following:

- The disk free space is less than {$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"}.

- The disk will be full in less than 24 hours.

last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"} and ((last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},total])-last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.WARN:"{#FSNAME}"} or timeleft(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused],1h,100)<1d) WARNING

Manual close: YES

Depends on:

- {#FSNAME}: Disk space is critically low

{#FSNAME}: Running out of free inodes

It may become impossible to write to disk if there are no index nodes left.

As symptoms, 'No space left on device' or 'Disk is full' errors may be seen even though free space is available.

min(/Linux by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"} AVERAGE
{#FSNAME}: Running out of free inodes

It may become impossible to write to disk if there are no index nodes left.

As symptoms, 'No space left on device' or 'Disk is full' errors may be seen even though free space is available.

min(/Linux by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"} WARNING

Depends on:

- {#FSNAME}: Running out of free inodes

System time is out of sync

The host system time is different from the Zabbix server time.

fuzzytime(/Linux by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MAX})=0 WARNING

Manual close: YES

System name has changed

System name has changed. Ack to close.

last(/Linux by Zabbix agent/system.hostname,#1)<>last(/Linux by Zabbix agent/system.hostname,#2) and length(last(/Linux by Zabbix agent/system.hostname))>0 INFO

Manual close: YES

Configured max number of open filedescriptors is too low

-

last(/Linux by Zabbix agent/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN} INFO
Configured max number of processes is too low

-

last(/Linux by Zabbix agent/kernel.maxproc)<{$KERNEL.MAXPROC.MIN} INFO

Depends on:

- Getting closer to process limit

Getting closer to process limit

-

last(/Linux by Zabbix agent/proc.num)/last(/Linux by Zabbix agent/kernel.maxproc)*100>80 WARNING
Operating system description has changed

Operating system description has changed. Possible reasons that system has been updated or replaced. Ack to close.

last(/Linux by Zabbix agent/system.sw.os,#1)<>last(/Linux by Zabbix agent/system.sw.os,#2) and length(last(/Linux by Zabbix agent/system.sw.os))>0 INFO

Manual close: YES

Depends on:

- System name has changed

High memory utilization

The system is running out of free memory.

min(/Linux by Zabbix agent/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX} AVERAGE

Depends on:

- Lack of available memory

Lack of available memory

-

max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0 AVERAGE
High swap space usage

This trigger is ignored, if there is no swap configured.

max(/Linux by Zabbix agent/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Zabbix agent/system.swap.size[,total])>0 WARNING

Depends on:

- High memory utilization

- Lack of available memory

Interface {#IFNAME}: High bandwidth usage

The network interface utilization is close to its estimated maximum bandwidth.

(avg(/Linux by Zabbix agent/net.if.in["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) or avg(/Linux by Zabbix agent/net.if.out["{#IFNAME}"],15m)>({$IF.UTIL.MAX:"{#IFNAME}"}/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])) and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0

Recovery expression:

avg(/Linux by Zabbix agent/net.if.in["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"]) and avg(/Linux by Zabbix agent/net.if.out["{#IFNAME}"],15m)<(({$IF.UTIL.MAX:"{#IFNAME}"}-3)/100)*last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])
WARNING

Manual close: YES

Depends on:

- Interface {#IFNAME}: Link down

Interface {#IFNAME}: High error rate

Recovers when below 80% of {$IF.ERRORS.WARN:"{#IFNAME}"} threshold

min(/Linux by Zabbix agent/net.if.in["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"} or min(/Linux by Zabbix agent/net.if.out["{#IFNAME}",errors],5m)>{$IF.ERRORS.WARN:"{#IFNAME}"}

Recovery expression:

max(/Linux by Zabbix agent/net.if.in["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8 and max(/Linux by Zabbix agent/net.if.out["{#IFNAME}",errors],5m)<{$IF.ERRORS.WARN:"{#IFNAME}"}*0.8
WARNING

Manual close: YES

Depends on:

- Interface {#IFNAME}: Link down

Interface {#IFNAME}: Link down

This trigger expression works as follows:

1. Can be triggered if operations status is down.

2. {$IFCONTROL:"{#IFNAME}"}=1 - user can redefine Context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down.

3. {TEMPLATE_NAME:METRIC.diff()}=1) - trigger fires only if operational status was up(1) sometime before. (So, do not fire 'ethernal off' interfaces.)

WARNING: if closed manually - won't fire again on next poll, because of .diff.

{$IFCONTROL:"{#IFNAME}"}=1 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"],#2))

Recovery expression:

last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2 or {$IFCONTROL:"{#IFNAME}"}=0
AVERAGE

Manual close: YES

Interface {#IFNAME}: Ethernet has changed to lower speed than it was before

This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Ack to close.

change(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])<0 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=6 or last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/type"])=1) and (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])<>2)

Recovery expression:

(change(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"])>0 and last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/speed"],#2)>0) or (last(/Linux by Zabbix agent/vfs.file.contents["/sys/class/net/{#IFNAME}/operstate"])=2)
INFO

Manual close: YES

Depends on:

- Interface {#IFNAME}: Link down

/etc/passwd has been changed

-

last(/Linux by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2) INFO

Manual close: YES

Depends on:

- Operating system description has changed

- System name has changed

has been restarted

The host uptime is less than 10 minutes

last(/Linux by Zabbix agent/system.uptime)<10m WARNING

Manual close: YES

Zabbix agent is not available

For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold.

max(/Linux by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0 AVERAGE

Manual close: YES

{#DEVNAME}: Disk read/write request responses are too high

This trigger might indicate disk {#DEVNAME} saturation.

min(/Linux by Zabbix agent/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:"{#DEVNAME}"} or min(/Linux by Zabbix agent/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:"{#DEVNAME}"} WARNING

Manual close: YES

Feedback

Please report any issues with the template at https://support.zabbix.com

You can also provide feedback, discuss the template or ask for help with it at ZABBIX forums.

Known Issues

  • Description: Network discovery. Zabbix agent as of 4.2 doesn't support items such as net.if.status, net.if.speed.

No se encuentra la integración que necesitas?