Files
templates-default/OpenBSD_by_Zabbix_agent.yaml

1093 lines
43 KiB
YAML

zabbix_export:
version: '7.0'
template_groups:
- uuid: 846977d1dfed4968bc5f8bdb363285bc
name: 'Templates/Operating systems'
templates:
- uuid: 760be6e1c2194a5bb7c0df47cc5f71ca
template: 'OpenBSD by Zabbix agent'
name: 'OpenBSD by Zabbix agent'
description: |
This is an Official OpenBSD 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/
Generated by official Zabbix template tool "Templator"
vendor:
name: Zabbix
version: 7.0-2
groups:
- name: 'Templates/Operating systems'
items:
- uuid: 390a1b2080e842f3985b0076509cc550
name: 'Host name of Zabbix agent running'
key: agent.hostname
delay: 1h
value_type: CHAR
trends: '0'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: system
- uuid: 99dbf8825c0d4e1f9ae433bcb786d7c7
name: 'Zabbix agent ping'
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
- uuid: c65db5a2b42c46dc90cf4891ad1ecc83
name: 'Version of Zabbix agent running'
key: agent.version
delay: 1h
value_type: CHAR
trends: '0'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: application
- uuid: 56a83dc0e14e47339e13a451adcefef7
name: 'Maximum number of opened files'
key: kernel.maxfiles
delay: 1h
description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.'
tags:
- tag: component
value: os
triggers:
- uuid: aab96e16dd194d72b9b049ffa8b41b02
expression: 'last(/OpenBSD by Zabbix agent/kernel.maxfiles)<1024'
name: 'OpenBSD: Configured max number of opened files is too low on {HOST.NAME}'
priority: INFO
tags:
- tag: scope
value: notice
- tag: scope
value: performance
- uuid: e55f8256dd2d48fd9e7fd786f872b4bc
name: 'Maximum number of processes'
key: kernel.maxproc
delay: 1h
description: 'May be increased by using the `sysctl` utility or modifying the file `/etc/sysctl.conf`.'
tags:
- tag: component
value: processes
triggers:
- uuid: 149b9b77d17543fba253666ccbd6a607
expression: 'last(/OpenBSD by Zabbix agent/kernel.maxproc)<256'
name: 'OpenBSD: Configured max number of processes is too low on {HOST.NAME}'
priority: INFO
tags:
- tag: scope
value: notice
- tag: scope
value: performance
- uuid: 7f8fdbc74cf14fa2afda3b57c548c751
name: 'Number of running processes'
key: 'proc.num[,,run]'
description: 'The number of processes in a running state.'
tags:
- tag: component
value: processes
triggers:
- uuid: d67740bc103348ab8ab11df2bdb0ad8f
expression: 'avg(/OpenBSD by Zabbix agent/proc.num[,,run],5m)>30'
name: 'OpenBSD: Too many processes running on {HOST.NAME}'
priority: WARNING
tags:
- tag: scope
value: performance
- uuid: 966acafb928b43f8a63ee673b1716d28
name: 'Number of processes'
key: 'proc.num[]'
description: 'The total number of processes in any state.'
tags:
- tag: component
value: processes
triggers:
- uuid: dd1b0c14e6dd439ea8f7323cdcc607de
expression: 'avg(/OpenBSD by Zabbix agent/proc.num[],5m)>300'
name: 'OpenBSD: Too many processes on {HOST.NAME}'
priority: WARNING
tags:
- tag: scope
value: performance
- uuid: 4e06c5b504c04c169ea1a0d6a7951eeb
name: 'Host boot time'
key: system.boottime
delay: 10m
units: unixtime
tags:
- tag: component
value: os
- uuid: f6ed0de8cbb545298b174b19938a527e
name: 'Interrupts per second'
key: system.cpu.intr
units: ips
description: 'Number of interrupts processed.'
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
tags:
- tag: component
value: cpu
- uuid: 7e4eab397cfd43d2a4aef7e2aa8c3a37
name: 'Processor load (1 min average per core)'
key: 'system.cpu.load[percpu,avg1]'
value_type: FLOAT
description: 'Calculated as the system CPU load divided by the number of CPU cores.'
tags:
- tag: component
value: cpu
triggers:
- uuid: 1128bfb41f5f420c81feffb1d395cf9f
expression: 'avg(/OpenBSD by Zabbix agent/system.cpu.load[percpu,avg1],5m)>5'
name: 'OpenBSD: Processor load is too high on {HOST.NAME}'
priority: WARNING
tags:
- tag: scope
value: performance
- uuid: 55ad1da5b20c465f8db86701dcf3e974
name: 'Processor load (5 min average per core)'
key: 'system.cpu.load[percpu,avg5]'
value_type: FLOAT
description: 'Calculated as the system CPU load divided by the number of CPU cores.'
tags:
- tag: component
value: cpu
- uuid: 0403d3b318a649d4aa0da97e18546bcb
name: 'Processor load (15 min average per core)'
key: 'system.cpu.load[percpu,avg15]'
value_type: FLOAT
description: 'Calculated as the system CPU load divided by the number of CPU cores.'
tags:
- tag: component
value: cpu
- uuid: 2226fac821fe4928a9d727770e0af4d0
name: 'Context switches per second'
key: system.cpu.switches
units: sps
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: 4689c51946c845e5b31cb7ca5b58fbe3
name: 'CPU idle time'
key: 'system.cpu.util[,idle]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent doing nothing.'
tags:
- tag: component
value: cpu
- uuid: ad032417f6de4e03a4f956bea65d8ce0
name: 'CPU interrupt time'
key: 'system.cpu.util[,interrupt]'
value_type: FLOAT
units: '%'
description: 'Time the CPU has spent servicing hardware interrupts.'
tags:
- tag: component
value: cpu
- uuid: 84030949a4d545b59db4aa3b38402174
name: 'CPU nice time'
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: 63121eb34bc94eeabd7352992b67befb
name: 'CPU system time'
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: c9adb1a7c2fd4db9b176f9008483f2d7
name: 'CPU user time'
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: a80cd7ca70954cd1b6b89a686f642b9d
name: 'Host name'
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:
- 1d
tags:
- tag: component
value: os
triggers:
- uuid: d6927a9b74eb4cb8b15400baf784fc36
expression: 'last(/OpenBSD by Zabbix agent/system.hostname,#1)<>last(/OpenBSD by Zabbix agent/system.hostname,#2)'
name: 'OpenBSD: Hostname was changed on {HOST.NAME}'
priority: INFO
tags:
- tag: scope
value: notice
- uuid: cfff34f2374c410492b89cce1c6b5198
name: 'Host local time'
key: system.localtime
units: unixtime
description: 'The local system time of the host.'
tags:
- tag: component
value: os
- uuid: e758448d5ec242e6a7a17f67c8f62874
name: 'Free swap space'
key: 'system.swap.size[,free]'
units: B
description: 'The free space of the swap volume/file expressed in bytes.'
tags:
- tag: component
value: memory
- uuid: 43648a7f2c79443781a0ad500e7a9e6c
name: 'Free swap space in %'
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
triggers:
- uuid: 0efa45d2c8884bc6b4090afc6408198b
expression: 'last(/OpenBSD by Zabbix agent/system.swap.size[,pfree])<50'
name: 'OpenBSD: Lack of free swap space on {HOST.NAME}'
priority: WARNING
description: 'It probably means that the systems requires more physical memory.'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: 61f33f0c3e35499b999626058048ec66
name: 'Total swap space'
key: 'system.swap.size[,total]'
delay: 1h
units: B
description: 'Total space of the swap volume/file expressed in bytes.'
tags:
- tag: component
value: memory
- uuid: b19974c64b4141c2aca0e997b03c2f0a
name: 'System information'
key: system.uname
delay: 1h
value_type: CHAR
trends: '0'
description: 'Information as normally returned by `uname -a`.'
inventory_link: OS
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1d
tags:
- tag: component
value: os
triggers:
- uuid: 3d3bcd54f24448c1a11746a4e75ea736
expression: 'last(/OpenBSD by Zabbix agent/system.uname,#1)<>last(/OpenBSD by Zabbix agent/system.uname,#2)'
name: 'OpenBSD: Host information was changed on {HOST.NAME}'
priority: INFO
tags:
- tag: scope
value: notice
- uuid: d14bcdc15cc24f90baea06a13077a54f
name: 'System uptime'
key: system.uptime
delay: 10m
units: uptime
tags:
- tag: component
value: os
triggers:
- uuid: de874b9d875a4298ab39888c9e9cb747
expression: 'change(/OpenBSD by Zabbix agent/system.uptime)<0'
name: 'OpenBSD: {HOST.NAME} has just been restarted'
priority: INFO
tags:
- tag: scope
value: notice
- uuid: 165a44bf3b9d49378e500acb90aa7957
name: 'Number of logged in users'
key: system.users.num
description: 'The number of users who are currently logged in.'
tags:
- tag: component
value: os
- tag: component
value: security
- uuid: f11f6e3539a244409f1c72dbd6f16b76
name: 'Checksum of /etc/passwd'
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: 9db4055df94d414d86938066ed05dbc5
expression: 'last(/OpenBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/OpenBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)'
name: 'OpenBSD: /etc/passwd has been changed on {HOST.NAME}'
priority: WARNING
tags:
- tag: scope
value: security
- uuid: b5de01cf628b48cb899a8ad2a02a3b62
name: 'Get filesystems'
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: 5b6c92c92e434dff8ce19e28b3ba785e
name: 'Available memory'
key: 'vm.memory.size[available]'
units: B
description: 'Defined as free + cached + buffers.'
tags:
- tag: component
value: memory
triggers:
- uuid: bdf3c729b8bc4a9481c9041e4c1ea624
expression: 'last(/OpenBSD by Zabbix agent/vm.memory.size[available])<20M'
name: 'OpenBSD: Lack of available memory on server {HOST.NAME}'
priority: AVERAGE
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: b32320608732421fac18437006bc1874
name: 'Total memory'
key: 'vm.memory.size[total]'
delay: 1h
units: B
description: 'Total memory expressed in bytes.'
tags:
- tag: component
value: memory
- uuid: 7ab36f1fcf0244229effa26f16889a36
name: 'Zabbix agent availability'
type: INTERNAL
key: 'zabbix[host,agent,available]'
description: 'Used for monitoring the availability status of the agent.'
valuemap:
name: zabbix.host.available
tags:
- tag: component
value: system
triggers:
- uuid: d046f431e11d4bd7be42e66e14a21663
expression: 'max(/OpenBSD by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0'
name: 'OpenBSD: Zabbix agent is not available'
event_name: 'OpenBSD: Zabbix agent is not available (for {$AGENT.TIMEOUT})'
priority: AVERAGE
description: 'For passive checks only; the availability of the agent(s) and a host is used with `{$AGENT.TIMEOUT}` as the time threshold.'
manual_close: 'YES'
tags:
- tag: scope
value: availability
discovery_rules:
- uuid: d02d41ad698942bfab1fe29fad31010a
name: 'Network interface discovery'
key: net.if.discovery
delay: 1h
filter:
conditions:
- macro: '{#IFNAME}'
value: '@Network interfaces for discovery'
formulaid: A
description: 'Used for the discovery of network interfaces.'
item_prototypes:
- uuid: 81dec4b8de8c4ab68aef26d9f00aee87
name: 'Interface {#IFNAME}: Incoming network traffic'
key: 'net.if.in[{#IFNAME}]'
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: component
value: interfaces
- tag: interfaces
value: '{#IFNAME}'
- uuid: 16bced1c77eb46799ecedcde5049dbdb
name: 'Interface {#IFNAME}: Outgoing network traffic'
key: 'net.if.out[{#IFNAME}]'
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
tags:
- tag: component
value: interfaces
- tag: interfaces
value: '{#IFNAME}'
graph_prototypes:
- uuid: c79845ab3101451c8f0fe033b5b2166e
name: 'Interface {#IFNAME}: Network traffic'
ymin_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 00AA00
item:
host: 'OpenBSD by Zabbix agent'
key: 'net.if.in[{#IFNAME}]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: 3333FF
item:
host: 'OpenBSD by Zabbix agent'
key: 'net.if.out[{#IFNAME}]'
- uuid: feb02c707aa64b91a3b340aa5ef23de9
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: c29bc3c6bd844242b9165251dd3266bb
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: 25a43340efc94c8b982204a920441ff3
expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
name: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes'
event_name: 'OpenBSD: {#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: 7802203fd5ba471db2be4f35eda44a0b
expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}'
name: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes'
event_name: 'OpenBSD: 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: 'OpenBSD: FS [{#FSNAME}]: Running out of free inodes'
expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}'
tags:
- tag: scope
value: capacity
- tag: scope
value: performance
- uuid: d53bf828e684464a88157fd3dfd1b8d4
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: bcae23e8404349af87c570c353bfe0fe
name: 'FS [{#FSNAME}]: Space: Available, in %'
type: DEPENDENT
key: 'vfs.fs.dependent.size[{#FSNAME},pfree]'
delay: '0'
value_type: FLOAT
units: '%'
description: |
Deprecated metric.
Space availability expressed as a percentage, calculated using the current and maximum available spaces.
preprocessing:
- type: JSONPATH
parameters:
- $.bytes.pfree
master_item:
key: 'vfs.fs.dependent[{#FSNAME},data]'
tags:
- tag: component
value: storage
- tag: deprecated
- tag: filesystem
value: '{#FSNAME}'
- tag: fstype
value: '{#FSTYPE}'
- uuid: bb0110994e1243d6b6763c41b34cfee1
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: dfe8922f9bf94933a940133997df9997
expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
name: 'OpenBSD: FS [{#FSNAME}]: Space is critically low'
event_name: 'OpenBSD: 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: 9741c9425c984804ac8fb9a52ef22221
expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}'
name: 'OpenBSD: FS [{#FSNAME}]: Space is low'
event_name: 'OpenBSD: 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: 'OpenBSD: FS [{#FSNAME}]: Space is critically low'
expression: 'min(/OpenBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}'
tags:
- tag: scope
value: availability
- tag: scope
value: capacity
- uuid: 5c27bfca98fc4e709b5fe66e8c181fbd
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: 840eed51cf264b5698fe4f38fd03ea16
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: 03ed5a98a0a444f08bfc602877b1cc18
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: f37d99368b3d463a9474422fccd703f9
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: 7d1eaacab7ac4af7969c7fc22c67cfb8
expression: 'last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1'
recovery_mode: RECOVERY_EXPRESSION
recovery_expression: 'last(/OpenBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0'
name: 'OpenBSD: 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: 5ea3f4e5af7a468fa4b7ba5dc6a9144d
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: 'OpenBSD by Zabbix agent'
key: 'vfs.fs.dependent.size[{#FSNAME},pused]'
- uuid: 8b5ab39870b248b28e7099a2801b9c2d
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: 'OpenBSD by Zabbix agent'
key: 'vfs.fs.dependent.size[{#FSNAME},total]'
- sortorder: '1'
color: F63100
calc_fnc: LAST
item:
host: 'OpenBSD by Zabbix agent'
key: 'vfs.fs.dependent.size[{#FSNAME},used]'
- sortorder: '2'
color: 199C09
calc_fnc: LAST
item:
host: 'OpenBSD by Zabbix agent'
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: openbsd
macros:
- macro: '{$AGENT.TIMEOUT}'
value: 3m
description: 'Timeout after which the agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (in passive mode).'
- 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: c51fe9986e174a96a37187d09f175548
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: 'OpenBSD by Zabbix agent'
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: 'OpenBSD by Zabbix agent'
name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)'
- type: STRING
name: reference
value: AAAEC
- uuid: b4606920366049bd98e2e6d31c602d67
name: 'System performance'
pages:
- widgets:
- type: graph
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'OpenBSD by Zabbix agent'
name: 'OpenBSD: CPU load'
- type: STRING
name: reference
value: AAAAA
- type: graph
'y': '5'
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'OpenBSD by Zabbix agent'
name: 'OpenBSD: 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: 'OpenBSD by Zabbix agent'
name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)'
- type: STRING
name: reference
value: AAAEA
- type: graph
x: '36'
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'OpenBSD by Zabbix agent'
name: 'OpenBSD: CPU utilization'
- type: STRING
name: reference
value: AAAAB
- type: graph
x: '36'
'y': '5'
width: '36'
height: '5'
fields:
- type: GRAPH
name: graphid.0
value:
host: 'OpenBSD by Zabbix agent'
name: 'OpenBSD: Swap usage'
- type: STRING
name: reference
value: AAAAD
valuemaps:
- uuid: 693c226692c548869e77d3313934ca28
name: zabbix.host.available
mappings:
- value: '0'
newvalue: 'not available'
- value: '1'
newvalue: available
- value: '2'
newvalue: unknown
- uuid: 8dad41742edf49178119c70abea0a0dc
name: 'Zabbix agent ping status'
mappings:
- value: '1'
newvalue: Up
graphs:
- uuid: 947de3b0729948b0ae2f03342a7e3f9f
name: 'OpenBSD: CPU jumps'
graph_items:
- color: '009900'
item:
host: 'OpenBSD by Zabbix agent'
key: system.cpu.switches
- sortorder: '1'
color: '000099'
item:
host: 'OpenBSD by Zabbix agent'
key: system.cpu.intr
- uuid: 765b83f3f7a246aa893eff4f19600326
name: 'OpenBSD: CPU load'
ymin_type_1: FIXED
graph_items:
- color: '009900'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.load[percpu,avg1]'
- sortorder: '1'
color: '000099'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.load[percpu,avg5]'
- sortorder: '2'
color: '990000'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.load[percpu,avg15]'
- uuid: 512ed29b170642d285b14a7e9b2d43de
name: 'OpenBSD: CPU utilization'
show_triggers: 'NO'
type: STACKED
ymin_type_1: FIXED
ymax_type_1: FIXED
graph_items:
- color: '009999'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.util[,interrupt]'
- sortorder: '1'
color: '990099'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.util[,nice]'
- sortorder: '2'
color: '990000'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.util[,system]'
- sortorder: '3'
color: '000099'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.util[,user]'
- sortorder: '4'
color: '009900'
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.cpu.util[,idle]'
- uuid: 18bbcc8bba0840fc8353b90caa3e657f
name: 'OpenBSD: Memory usage'
graph_items:
- color: 00C800
item:
host: 'OpenBSD by Zabbix agent'
key: 'vm.memory.size[available]'
- uuid: 8a422a49defb413ca16b1e8515b59e00
name: 'OpenBSD: Swap usage'
width: '600'
height: '340'
show_work_period: 'NO'
show_triggers: 'NO'
type: PIE
show_3d: 'YES'
graph_items:
- color: AA0000
type: GRAPH_SUM
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.swap.size[,total]'
- sortorder: '1'
color: 00AA00
item:
host: 'OpenBSD by Zabbix agent'
key: 'system.swap.size[,free]'