zabbix_export: version: '7.4' template_groups: - uuid: 846977d1dfed4968bc5f8bdb363285bc name: 'Templates/Operating systems' templates: - uuid: d14a339b90b24ea1a29871d65f32dbbf template: 'FreeBSD by Zabbix agent active' name: 'FreeBSD by Zabbix agent active' description: | This is an official FreeBSD template. It requires Zabbix agent 7.4 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" groups: - name: 'Templates/Operating systems' items: - uuid: dc4cfb26eb994fbabd9d94d394b56f36 name: 'Host name of Zabbix agent running' type: ZABBIX_ACTIVE key: agent.hostname delay: 1h value_type: CHAR preprocessing: - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d tags: - tag: component value: system - uuid: 3ad928a6bd1444de8a506cbcb2315a73 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 - uuid: bf9a5c1aa641436b8aa464f29e81de47 name: 'Version of Zabbix agent running' type: ZABBIX_ACTIVE key: agent.version delay: 1h value_type: CHAR preprocessing: - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d tags: - tag: component value: application - uuid: 0a3b568ac9ba42d9b11ee1e0a2dd7282 name: 'Maximum number of opened files' type: ZABBIX_ACTIVE 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: 9205bcb9e7b64be78f4f6b585f041f89 expression: 'last(/FreeBSD by Zabbix agent active/kernel.maxfiles)<1024' name: 'FreeBSD: Configured max number of opened files is too low on {HOST.NAME}' priority: INFO tags: - tag: scope value: notice - tag: scope value: performance - uuid: edf2032176bb47be8360d41ec6d0b9bb 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`.' tags: - tag: component value: os - tag: component value: processes triggers: - uuid: 2d3190d96e4f4391ab5d7637b99e4f1d expression: 'last(/FreeBSD by Zabbix agent active/kernel.maxproc)<256' name: 'FreeBSD: Configured max number of processes is too low on {HOST.NAME}' priority: INFO tags: - tag: scope value: notice - tag: scope value: performance - uuid: 01f6201fa29f4f139e5fba53806ff451 name: 'Number of running processes' type: ZABBIX_ACTIVE key: 'proc.num[,,run]' description: 'Number of processes in a running state.' tags: - tag: component value: os - tag: component value: processes triggers: - uuid: 728e414112de4f14bc7b61f6d1f1d7de expression: 'avg(/FreeBSD by Zabbix agent active/proc.num[,,run],5m)>30' name: 'FreeBSD: Too many processes running on {HOST.NAME}' priority: WARNING tags: - tag: scope value: notice - tag: scope value: performance - uuid: 85b7bf1e8fb84a76bccfd58a49504fa5 name: 'Number of processes' type: ZABBIX_ACTIVE key: 'proc.num[]' description: 'Total number of processes in any state.' tags: - tag: component value: os - tag: component value: processes triggers: - uuid: 9bac25c621a143759beb9911e1703700 expression: 'avg(/FreeBSD by Zabbix agent active/proc.num[],5m)>300' name: 'FreeBSD: Too many processes on {HOST.NAME}' priority: WARNING tags: - tag: scope value: notice - tag: scope value: performance - uuid: 476e643e89d54868b9d32e43765f8d4b name: 'Host boot time' type: ZABBIX_ACTIVE key: system.boottime delay: 10m units: unixtime tags: - tag: component value: os - uuid: d65aa6b55a00496d94b4f1ec8c457fae name: 'Interrupts per second' type: ZABBIX_ACTIVE key: system.cpu.intr units: ips description: 'Number of interrupts processed.' preprocessing: - type: CHANGE_PER_SECOND tags: - tag: component value: cpu - uuid: 1659fc41c4db44c1bd3ed14089ec1131 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: a109443f78c04bb0be3fbd4ef5f0871f 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: 0d6f0afb8e3c44fc80bd4de34dc7ac78 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: 22ff00f5450a4c6cbb0151c68e21094b name: 'Processor load (1 min average per core)' type: ZABBIX_ACTIVE 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: efe5955525f44dd4b7fa9043af76af20 expression: 'avg(/FreeBSD by Zabbix agent active/system.cpu.load[percpu,avg1],5m)>5' name: 'FreeBSD: Processor load is too high on {HOST.NAME}' priority: WARNING tags: - tag: scope value: availability - tag: scope value: performance - uuid: b54d12bb0d5f442eb0b0e974dd7c3878 name: 'Processor load (5 min average per core)' type: ZABBIX_ACTIVE 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: 0d69d7425ed6421dab240f1a1a6de0cd name: 'Processor load (15 min average per core)' type: ZABBIX_ACTIVE 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: d3a4f307485943fab2e6f5036a3b1332 name: 'Context switches per second' type: ZABBIX_ACTIVE 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 tags: - tag: component value: cpu - uuid: 60b09a14d89a4b19b08e81275fef8dc0 name: 'CPU utilization' type: DEPENDENT key: system.cpu.util 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 - uuid: c087fb900bdb4df391e3104663ed82b5 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: 1ade51db6f43418db8032362e77e57fb 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: c6886c0bc6f04303ba598d3bdf34ceb3 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: ac7af383fc8a4068b50c96bd7186ef8a 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: 563e0000815b4ae4a65f307ee7995f25 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: 7a00bbe11d984e51b912fa6a0a98c354 name: 'Host name' type: ZABBIX_ACTIVE key: system.hostname delay: 1h value_type: CHAR description: 'The host name of the system.' inventory_link: NAME preprocessing: - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1d tags: - tag: component value: os triggers: - uuid: f9f3557f6d5446f09205eec75a821be5 expression: 'last(/FreeBSD by Zabbix agent active/system.hostname,#1)<>last(/FreeBSD by Zabbix agent active/system.hostname,#2)' name: 'FreeBSD: Hostname was changed on {HOST.NAME}' priority: INFO tags: - tag: scope value: notice - uuid: 235ae801183740e9ba43e41215fa36ac name: 'Host local time' type: ZABBIX_ACTIVE key: system.localtime units: unixtime description: 'The local system time of the host.' tags: - tag: component value: os - uuid: 4e6291b2fc45450abdb64e13ab4727a8 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 - uuid: 2bac791e46224da49cd896a9a4a00a4c 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 triggers: - uuid: ef054cf6d595490180252a54aca9a694 expression: 'last(/FreeBSD by Zabbix agent active/system.swap.size[,pfree])<50' name: 'FreeBSD: Lack of free swap space on {HOST.NAME}' priority: WARNING description: 'The system might need more physical memory.' tags: - tag: scope value: capacity - tag: scope value: performance - uuid: 2a90de320fdf46e197a0d080ad16915a name: 'Total swap space' type: ZABBIX_ACTIVE 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: 7c3a36bb3f8746c99741429bc122cc4a name: 'System information' type: ZABBIX_ACTIVE key: system.uname delay: 1h value_type: CHAR 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: 3b336607b87040bdb9c8fab2fad5410d expression: 'last(/FreeBSD by Zabbix agent active/system.uname,#1)<>last(/FreeBSD by Zabbix agent active/system.uname,#2)' name: 'FreeBSD: Host information was changed on {HOST.NAME}' priority: INFO tags: - tag: scope value: notice - uuid: 66ebd390b3554cb8b20a57217f07aa42 name: 'System uptime' type: ZABBIX_ACTIVE key: system.uptime delay: 10m units: uptime tags: - tag: component value: os triggers: - uuid: 27a157564ceb453e995cf7b525a040f4 expression: 'change(/FreeBSD by Zabbix agent active/system.uptime)<0' name: 'FreeBSD: {HOST.NAME} has just been restarted' priority: INFO tags: - tag: scope value: notice - uuid: e0fba2ff052d48f382472cfad203a14a 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: os - uuid: 37b6c70b58c84d4e812bd449c2bdc10e name: 'Checksum of /etc/passwd' type: ZABBIX_ACTIVE key: 'vfs.file.cksum[/etc/passwd,sha256]' delay: 15m value_type: CHAR preprocessing: - type: DISCARD_UNCHANGED_HEARTBEAT parameters: - 1h tags: - tag: component value: security triggers: - uuid: 2bd966b729d94d509dc29687f0c74b1c expression: 'last(/FreeBSD by Zabbix agent active/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/FreeBSD by Zabbix agent active/vfs.file.cksum[/etc/passwd,sha256],#2)' name: 'FreeBSD: /etc/passwd has been changed on {HOST.NAME}' priority: WARNING tags: - tag: scope value: security - uuid: 472ceed8858a497787e38a811e553a53 name: 'Get filesystems' type: ZABBIX_ACTIVE key: vfs.fs.get history: '0' value_type: TEXT 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: e5f45da371c44821a712ba3da43daf90 name: 'Available memory' type: ZABBIX_ACTIVE key: 'vm.memory.size[available]' units: B description: 'Defined as free + cached + buffers.' tags: - tag: component value: memory triggers: - uuid: 18b920e9b9d843b09c491b42442293c1 expression: 'last(/FreeBSD by Zabbix agent active/vm.memory.size[available])<20M' name: 'FreeBSD: Lack of available memory on server {HOST.NAME}' priority: AVERAGE tags: - tag: scope value: capacity - tag: scope value: performance - uuid: 028b2034923545ec87cfb6b644935c0c name: 'Total memory' type: ZABBIX_ACTIVE key: 'vm.memory.size[total]' delay: 1h units: B description: 'Total memory expressed in bytes.' tags: - tag: component value: memory discovery_rules: - uuid: 58e03cd2c7494ffaad4432ddec4e0330 name: 'Network interface discovery' type: ZABBIX_ACTIVE key: net.if.discovery delay: 1h filter: conditions: - macro: '{#IFNAME}' value: '@Network interfaces for discovery' description: 'Used for the discovery of network interfaces.' item_prototypes: - uuid: 18ad988c529b4dd0a33a8ee0a17783d9 name: 'Interface {#IFNAME}: Incoming network traffic' type: ZABBIX_ACTIVE key: 'net.if.in[{#IFNAME}]' units: bps preprocessing: - type: CHANGE_PER_SECOND - type: MULTIPLIER parameters: - '8' tags: - tag: component value: interface - tag: interface value: '{#IFNAME}' - uuid: 195d730c35a741b68a901166174fe499 name: 'Interface {#IFNAME}: Outgoing network traffic' type: ZABBIX_ACTIVE key: 'net.if.out[{#IFNAME}]' units: bps preprocessing: - type: CHANGE_PER_SECOND - type: MULTIPLIER parameters: - '8' tags: - tag: component value: interface - tag: interface value: '{#IFNAME}' graph_prototypes: - uuid: d43bf0b2d9374a4f938c2f7ecd3438c7 name: 'Interface {#IFNAME}: Network traffic' ymin_type_1: FIXED graph_items: - drawtype: GRADIENT_LINE color: 00AA00 item: host: 'FreeBSD by Zabbix agent active' key: 'net.if.in[{#IFNAME}]' - sortorder: '1' drawtype: GRADIENT_LINE color: 3333FF item: host: 'FreeBSD by Zabbix agent active' key: 'net.if.out[{#IFNAME}]' - uuid: 8ebccc457ffe4936abbe1fc73a21b928 name: 'Mounted filesystem discovery' type: DEPENDENT key: vfs.fs.dependent.discovery filter: evaltype: AND conditions: - macro: '{#FSNAME}' value: '{$VFS.FS.FSNAME.MATCHES}' - macro: '{#FSNAME}' value: '{$VFS.FS.FSNAME.NOT_MATCHES}' operator: NOT_MATCHES_REGEX - macro: '{#FSTYPE}' value: '{$VFS.FS.FSTYPE.MATCHES}' - macro: '{#FSTYPE}' value: '{$VFS.FS.FSTYPE.NOT_MATCHES}' operator: NOT_MATCHES_REGEX description: 'The discovery of mounted filesystems with different types.' item_prototypes: - uuid: cd31e85f3e07453da5008f183b80fff3 name: 'FS [{#FSNAME}]: Inodes: Free, in %' type: DEPENDENT key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]' 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: 1baead9955354ebeba9267cbe4f9f54d expression: 'min(/FreeBSD by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:"{#FSNAME}"}' name: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes' event_name: 'FreeBSD: {#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: b01ea6eeb4654976b724f2e8b1bd2bb7 expression: 'min(/FreeBSD by Zabbix agent active/vfs.fs.dependent.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:"{#FSNAME}"}' name: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes' event_name: 'FreeBSD: 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: 'FreeBSD: FS [{#FSNAME}]: Running out of free inodes' expression: 'min(/FreeBSD 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: 6fc734e7bdf34b14a9044f43ef7e6ab2 name: 'FS [{#FSNAME}]: Space: Available' type: DEPENDENT key: 'vfs.fs.dependent.size[{#FSNAME},free]' 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: b751c38d0dc049b6bd01dc6bd3e3d4e2 name: 'FS [{#FSNAME}]: Space: Available, in %' type: DEPENDENT key: 'vfs.fs.dependent.size[{#FSNAME},pfree]' 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: dc07896309bf466fab7edffcf11d2883 name: 'FS [{#FSNAME}]: Space: Used, in %' type: DEPENDENT key: 'vfs.fs.dependent.size[{#FSNAME},pused]' 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: 98665883635a4b4785a4ba3f6be5a02b expression: 'min(/FreeBSD by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.CRIT:"{#FSNAME}"}' name: 'FreeBSD: FS [{#FSNAME}]: Space is critically low' event_name: 'FreeBSD: 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: 6d56c933f02647758538c3e620f71d39 expression: 'min(/FreeBSD by Zabbix agent active/vfs.fs.dependent.size[{#FSNAME},pused],5m)>{$VFS.FS.PUSED.MAX.WARN:"{#FSNAME}"}' name: 'FreeBSD: FS [{#FSNAME}]: Space is low' event_name: 'FreeBSD: 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: 'FreeBSD: FS [{#FSNAME}]: Space is critically low' expression: 'min(/FreeBSD 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: bd59a26a8b474b6ba4978882760e0eab name: 'FS [{#FSNAME}]: Space: Total' type: DEPENDENT key: 'vfs.fs.dependent.size[{#FSNAME},total]' 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: a119696db08d4013b146085b92b28dff name: 'FS [{#FSNAME}]: Space: Used' type: DEPENDENT key: 'vfs.fs.dependent.size[{#FSNAME},used]' 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: 49b58000cf344d14bf58326b0c5fb6f8 name: 'FS [{#FSNAME}]: Get data' type: DEPENDENT key: 'vfs.fs.dependent[{#FSNAME},data]' history: 1h value_type: TEXT 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: 8e12abc8a00647fbad61e55cb0888316 name: 'FS [{#FSNAME}]: Option: Read-only' type: DEPENDENT key: 'vfs.fs.dependent[{#FSNAME},readonly]' 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: - '(?:^|,)read-only\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: 988fcabcc5ee4ff782e2011c85fdf77a expression: 'last(/FreeBSD by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/FreeBSD by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly])=1' recovery_mode: RECOVERY_EXPRESSION recovery_expression: 'last(/FreeBSD by Zabbix agent active/vfs.fs.dependent[{#FSNAME},readonly])=0' name: 'FreeBSD: 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: 22a9eb56b7f8413b9bd908da4b755671 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: 'FreeBSD by Zabbix agent active' key: 'vfs.fs.dependent.size[{#FSNAME},pused]' - uuid: e7a725036f7441568f7319206d232812 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: 'FreeBSD by Zabbix agent active' key: 'vfs.fs.dependent.size[{#FSNAME},total]' - sortorder: '1' color: F63100 calc_fnc: LAST item: host: 'FreeBSD by Zabbix agent active' key: 'vfs.fs.dependent.size[{#FSNAME},used]' - sortorder: '2' color: 199C09 calc_fnc: LAST item: host: 'FreeBSD 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)$ operations: - operator: LIKE value: Inodes discover: NO_DISCOVER tags: - tag: class value: os - tag: target value: freebsd 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: fbe685ee92054814968f5d51f7a09e44 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: 'FreeBSD 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: 'FreeBSD by Zabbix agent active' name: 'FS [{#FSTYPE}({#FSNAME})]: Space usage graph, in % (relative to max available)' - type: STRING name: reference value: AAAEC - uuid: 615f0cb2e51742e3829a6c21583c2ecd name: 'System performance' pages: - widgets: - type: graph width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'FreeBSD by Zabbix agent active' name: 'FreeBSD: CPU load' - type: STRING name: reference value: AAAAA - type: graph 'y': '5' width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'FreeBSD by Zabbix agent active' name: 'FreeBSD: 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: 'FreeBSD by Zabbix agent active' name: 'FS [{#FSTYPE}({#FSNAME})]: Space utilization chart (relative to total)' - type: STRING name: reference value: AAAAE - type: graph x: '36' width: '36' height: '5' fields: - type: GRAPH name: graphid.0 value: host: 'FreeBSD by Zabbix agent active' name: 'FreeBSD: 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: 'FreeBSD by Zabbix agent active' name: 'FreeBSD: Swap usage' - type: STRING name: reference value: AAAAD valuemaps: - uuid: b64f630851144cd1933b8132281c52f9 name: zabbix.host.available mappings: - value: '0' newvalue: 'not available' - value: '1' newvalue: available - value: '2' newvalue: unknown - uuid: b04088409544401f83153ca4fccd8175 name: 'Zabbix agent ping status' mappings: - value: '1' newvalue: Up graphs: - uuid: fed8cc971f7f4c13bc5fb87e3600293b name: 'FreeBSD: CPU jumps' graph_items: - color: '009900' item: host: 'FreeBSD by Zabbix agent active' key: system.cpu.switches - sortorder: '1' color: '000099' item: host: 'FreeBSD by Zabbix agent active' key: system.cpu.intr - uuid: 957ed085efc34070a6c022ff54cc86e2 name: 'FreeBSD: CPU load' ymin_type_1: FIXED graph_items: - color: '009900' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.load[percpu,avg1]' - sortorder: '1' color: '000099' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.load[percpu,avg5]' - sortorder: '2' color: '990000' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.load[percpu,avg15]' - uuid: 9547a80793384ba69f63de0604de09db name: 'FreeBSD: CPU utilization' show_triggers: 'NO' type: STACKED ymin_type_1: FIXED ymax_type_1: FIXED graph_items: - color: '009999' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.util[,interrupt]' - sortorder: '1' color: '990099' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.util[,nice]' - sortorder: '2' color: '990000' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.util[,system]' - sortorder: '3' color: '000099' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.util[,user]' - sortorder: '4' color: '009900' item: host: 'FreeBSD by Zabbix agent active' key: 'system.cpu.util[,idle]' - uuid: 35c1d627cb754c52bc46da66cfda7ac0 name: 'FreeBSD: Memory usage' graph_items: - drawtype: GRADIENT_LINE color: 00C800 item: host: 'FreeBSD by Zabbix agent active' key: 'vm.memory.size[available]' - uuid: 0b000121b6e3408188e4a455ff10a3a4 name: 'FreeBSD: 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: 'FreeBSD by Zabbix agent active' key: 'system.swap.size[,total]' - sortorder: '1' color: 00AA00 item: host: 'FreeBSD by Zabbix agent active' key: 'system.swap.size[,free]'