You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
902 lines
32 KiB
902 lines
32 KiB
1 year ago
|
zabbix_export:
|
||
|
version: '7.0'
|
||
|
template_groups:
|
||
|
- uuid: 846977d1dfed4968bc5f8bdb363285bc
|
||
|
name: 'Templates/Operating systems'
|
||
|
templates:
|
||
|
- uuid: a3dc630729e443139f4e608954fa6e19
|
||
|
template: 'FreeBSD by Zabbix agent'
|
||
|
name: 'FreeBSD by Zabbix agent'
|
||
|
description: |
|
||
|
It is an official FreeBSD template. It requires Zabbix agent 7.0 or newer.
|
||
|
|
||
|
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" 2.0.0
|
||
|
vendor:
|
||
|
name: Zabbix
|
||
|
version: 7.0-0
|
||
|
groups:
|
||
|
- name: 'Templates/Operating systems'
|
||
|
items:
|
||
|
- uuid: 74bc1a15ef314d5f9b26332531885c0d
|
||
|
name: 'FreeBSD: Host name of Zabbix agent running'
|
||
|
key: agent.hostname
|
||
|
delay: 1h
|
||
|
history: 7d
|
||
|
trends: '0'
|
||
|
value_type: CHAR
|
||
|
preprocessing:
|
||
|
- type: DISCARD_UNCHANGED_HEARTBEAT
|
||
|
parameters:
|
||
|
- 1d
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: system
|
||
|
- uuid: da59d099f7614653b37b8eaaa518ebd2
|
||
|
name: 'FreeBSD: Zabbix agent ping'
|
||
|
key: agent.ping
|
||
|
history: 7d
|
||
|
description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for the availability check.'
|
||
|
valuemap:
|
||
|
name: 'Zabbix agent ping status'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: system
|
||
|
- uuid: e2b84269401e41acb973bc29666b9e7a
|
||
|
name: 'FreeBSD: Version of Zabbix agent running'
|
||
|
key: agent.version
|
||
|
delay: 1h
|
||
|
history: 7d
|
||
|
trends: '0'
|
||
|
value_type: CHAR
|
||
|
preprocessing:
|
||
|
- type: DISCARD_UNCHANGED_HEARTBEAT
|
||
|
parameters:
|
||
|
- 1d
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: application
|
||
|
- uuid: d1b2d3cc2b7e44af8f9bfee11e04bf21
|
||
|
name: 'FreeBSD: Maximum number of opened files'
|
||
|
key: kernel.maxfiles
|
||
|
delay: 1h
|
||
|
history: 1w
|
||
|
description: 'It could be increased by using the sysctl utility or modifying the file /etc/sysctl.conf.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
triggers:
|
||
|
- uuid: 00f035b7890d4227a84a942ba5730df3
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/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: 58244a8e72694ffcbba5a78a910ae818
|
||
|
name: 'FreeBSD: Maximum number of processes'
|
||
|
key: kernel.maxproc
|
||
|
delay: 1h
|
||
|
history: 1w
|
||
|
description: 'It could 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: 0d2417112c1e4ef38a4b763872cbb18b
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/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: 448c6de07b244281a4b1defe2e811773
|
||
|
name: 'FreeBSD: Number of running processes'
|
||
|
key: 'proc.num[,,run]'
|
||
|
history: 1w
|
||
|
description: 'The number of processes in a running state.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
- tag: component
|
||
|
value: processes
|
||
|
triggers:
|
||
|
- uuid: 837fdc71174246d987a6f7f277d65f6c
|
||
|
expression: 'avg(/FreeBSD by Zabbix agent/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: 5fd5b351d8214eac8f4f4649594c27eb
|
||
|
name: 'FreeBSD: Number of processes'
|
||
|
key: 'proc.num[]'
|
||
|
history: 1w
|
||
|
description: 'The total number of processes in any state.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
- tag: component
|
||
|
value: processes
|
||
|
triggers:
|
||
|
- uuid: 0d5ac85120734fa98d3eef01b6f4033b
|
||
|
expression: 'avg(/FreeBSD by Zabbix agent/proc.num[],5m)>300'
|
||
|
name: 'FreeBSD: Too many processes on {HOST.NAME}'
|
||
|
priority: WARNING
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: notice
|
||
|
- tag: scope
|
||
|
value: performance
|
||
|
- uuid: 4a533b30c43e42fb8c9eabada0817186
|
||
|
name: 'FreeBSD: Host boot time'
|
||
|
key: system.boottime
|
||
|
delay: 10m
|
||
|
history: 1w
|
||
|
units: unixtime
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
- uuid: db555e8318cf4e7aa7beb85aa0250697
|
||
|
name: 'FreeBSD: Interrupts per second'
|
||
|
key: system.cpu.intr
|
||
|
history: 1w
|
||
|
units: ips
|
||
|
preprocessing:
|
||
|
- type: CHANGE_PER_SECOND
|
||
|
parameters:
|
||
|
- ''
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: 2336b2ec03a846f3bed1e64384b2532e
|
||
|
name: 'FreeBSD: Processor load (1 min average per core)'
|
||
|
key: 'system.cpu.load[percpu,avg1]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
description: 'The processor load is calculated as the system CPU load divided by the number of CPU cores.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
triggers:
|
||
|
- uuid: 8c339065ecc54b7d8c2e4405f2149f27
|
||
|
expression: 'avg(/FreeBSD by Zabbix agent/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: de68f40fc96648c0925c1f6a4ca6776e
|
||
|
name: 'FreeBSD: Processor load (5 min average per core)'
|
||
|
key: 'system.cpu.load[percpu,avg5]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
description: 'The processor load is calculated as the system CPU load divided by the number of CPU cores.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: ad9ebf859f7346ca885c1edcb7333d78
|
||
|
name: 'FreeBSD: Processor load (15 min average per core)'
|
||
|
key: 'system.cpu.load[percpu,avg15]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
description: 'The processor load is calculated as the system CPU load divided by the number of CPU cores.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: 0a140185a5114dd29451bfac68abdde5
|
||
|
name: 'FreeBSD: Context switches per second'
|
||
|
key: system.cpu.switches
|
||
|
history: 1w
|
||
|
units: sps
|
||
|
preprocessing:
|
||
|
- type: CHANGE_PER_SECOND
|
||
|
parameters:
|
||
|
- ''
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: 7612803821c845889bda84b7f1ac9ae5
|
||
|
name: 'FreeBSD: CPU idle time'
|
||
|
key: 'system.cpu.util[,idle]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
description: 'The time the CPU has spent doing nothing.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: f2acc3cd432546e5a223095a0ea2f096
|
||
|
name: 'FreeBSD: CPU interrupt time'
|
||
|
key: 'system.cpu.util[,interrupt]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
description: 'The amount of time the CPU has been servicing hardware interrupts.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: efa92492bec0437ba74f47d694500cab
|
||
|
name: 'FreeBSD: CPU nice time'
|
||
|
key: 'system.cpu.util[,nice]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
description: 'The time the CPU has spent running users'' processes that have been niced.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: c9479b02b04141128b1ce7c8f3726c09
|
||
|
name: 'FreeBSD: CPU system time'
|
||
|
key: 'system.cpu.util[,system]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
description: 'The time the CPU has spent running the kernel and its processes.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: 1f3bc82009e04b59845a0e15004637ad
|
||
|
name: 'FreeBSD: CPU user time'
|
||
|
key: 'system.cpu.util[,user]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
description: 'The time the CPU has spent running users'' processes that are not niced.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: cpu
|
||
|
- uuid: c17d001bd20a4732b8ef487366c6aa42
|
||
|
name: 'FreeBSD: Host name'
|
||
|
key: system.hostname
|
||
|
delay: 1h
|
||
|
history: 1w
|
||
|
trends: '0'
|
||
|
value_type: CHAR
|
||
|
description: 'A host name of the system.'
|
||
|
inventory_link: NAME
|
||
|
preprocessing:
|
||
|
- type: DISCARD_UNCHANGED_HEARTBEAT
|
||
|
parameters:
|
||
|
- 1d
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
triggers:
|
||
|
- uuid: f48fb8ce1229492dae62de362c8c9539
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/system.hostname,#1)<>last(/FreeBSD by Zabbix agent/system.hostname,#2)'
|
||
|
name: 'FreeBSD: Hostname was changed on {HOST.NAME}'
|
||
|
priority: INFO
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: notice
|
||
|
- uuid: 4095ed7d606a47439294097a98af2c4f
|
||
|
name: 'FreeBSD: Host local time'
|
||
|
key: system.localtime
|
||
|
history: 1w
|
||
|
units: unixtime
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
- uuid: 63fc1259011f4250901889979cdf472c
|
||
|
name: 'FreeBSD: Free swap space'
|
||
|
key: 'system.swap.size[,free]'
|
||
|
history: 1w
|
||
|
units: B
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: memory
|
||
|
- uuid: 187d11e610b94b468d18b88ca38f2c32
|
||
|
name: 'FreeBSD: Free swap space in %'
|
||
|
key: 'system.swap.size[,pfree]'
|
||
|
history: 1w
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: memory
|
||
|
triggers:
|
||
|
- uuid: a125b6786d55426eb19afe284cee1f76
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/system.swap.size[,pfree])<50'
|
||
|
name: 'FreeBSD: 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: 9647b0b857074c4b9c14f15bb04af096
|
||
|
name: 'FreeBSD: Total swap space'
|
||
|
key: 'system.swap.size[,total]'
|
||
|
delay: 1h
|
||
|
history: 1w
|
||
|
units: B
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: memory
|
||
|
- uuid: 4523ae069e0b4e16bcb5182c6dbf63f2
|
||
|
name: 'FreeBSD: System information'
|
||
|
key: system.uname
|
||
|
delay: 1h
|
||
|
history: 1w
|
||
|
trends: '0'
|
||
|
value_type: CHAR
|
||
|
description: 'The information as normally returned by the ''uname -a''.'
|
||
|
inventory_link: OS
|
||
|
preprocessing:
|
||
|
- type: DISCARD_UNCHANGED_HEARTBEAT
|
||
|
parameters:
|
||
|
- 1d
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
triggers:
|
||
|
- uuid: ea2f9c186798420da781bd835fa0eaed
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/system.uname,#1)<>last(/FreeBSD by Zabbix agent/system.uname,#2)'
|
||
|
name: 'FreeBSD: Host information was changed on {HOST.NAME}'
|
||
|
priority: INFO
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: notice
|
||
|
- uuid: a49b956d592c4e2ba41caac3671e009f
|
||
|
name: 'FreeBSD: System uptime'
|
||
|
key: system.uptime
|
||
|
delay: 10m
|
||
|
history: 1w
|
||
|
units: uptime
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
triggers:
|
||
|
- uuid: 809e57eb897b43fb8538e76ec7dd6602
|
||
|
expression: 'change(/FreeBSD by Zabbix agent/system.uptime)<0'
|
||
|
name: 'FreeBSD: {HOST.NAME} has just been restarted'
|
||
|
priority: INFO
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: notice
|
||
|
- uuid: fec3e877764e4bfd98e77da9d8c73606
|
||
|
name: 'FreeBSD: Number of logged in users'
|
||
|
key: system.users.num
|
||
|
history: 1w
|
||
|
description: 'The number of users who are currently logged in.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: os
|
||
|
- uuid: 2bb327cd5f8c49d9b680142825b9c030
|
||
|
name: 'FreeBSD: Checksum of /etc/passwd'
|
||
|
key: 'vfs.file.cksum[/etc/passwd,sha256]'
|
||
|
delay: 15m
|
||
|
history: 1w
|
||
|
trends: '0'
|
||
|
value_type: CHAR
|
||
|
preprocessing:
|
||
|
- type: DISCARD_UNCHANGED_HEARTBEAT
|
||
|
parameters:
|
||
|
- 1h
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: security
|
||
|
triggers:
|
||
|
- uuid: 27b4e5de411949a4befa7171a2af6441
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/FreeBSD by Zabbix agent/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: 9695b40b38f74bb3bb5d127af1ba13ce
|
||
|
name: 'FreeBSD: Get filesystems'
|
||
|
key: vfs.fs.get
|
||
|
history: '0'
|
||
|
trends: '0'
|
||
|
value_type: TEXT
|
||
|
description: 'The `vfs.fs.get` key acquires raw information set about the file systems. Later to be extracted by preprocessing in dependent items.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: raw
|
||
|
- uuid: 561c7a383b944bca9ec5f7c44e322fed
|
||
|
name: 'FreeBSD: Available memory'
|
||
|
key: 'vm.memory.size[available]'
|
||
|
history: 1w
|
||
|
units: B
|
||
|
description: 'The available memory is defined as free+cached+buffers memory.'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: memory
|
||
|
triggers:
|
||
|
- uuid: f8fcce1904ab46088fa80433b85f2e83
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/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: ffa54e82b7914672a3f7134134ac2638
|
||
|
name: 'FreeBSD: Total memory'
|
||
|
key: 'vm.memory.size[total]'
|
||
|
delay: 1h
|
||
|
history: 1w
|
||
|
units: B
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: memory
|
||
|
- uuid: cbfaa94dc7bc4606a792aaf357054075
|
||
|
name: 'FreeBSD: Zabbix agent availability'
|
||
|
type: INTERNAL
|
||
|
key: 'zabbix[host,agent,available]'
|
||
|
history: 7d
|
||
|
description: 'Monitoring the availability status of the agent.'
|
||
|
valuemap:
|
||
|
name: zabbix.host.available
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: system
|
||
|
triggers:
|
||
|
- uuid: fd9d36aaedff45f59017b1e714a5db69
|
||
|
expression: 'max(/FreeBSD by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0'
|
||
|
name: 'FreeBSD: Zabbix agent is not available'
|
||
|
event_name: 'FreeBSD: Zabbix agent is not available (for {$AGENT.TIMEOUT})'
|
||
|
priority: AVERAGE
|
||
|
description: 'For passive checks only the availability of the agents and a host is used with {$AGENT.TIMEOUT} as the time threshold.'
|
||
|
manual_close: 'YES'
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: availability
|
||
|
discovery_rules:
|
||
|
- uuid: cac3466488a544198f766d1152878456
|
||
|
name: 'Network interface discovery'
|
||
|
key: net.if.discovery
|
||
|
delay: 1h
|
||
|
filter:
|
||
|
conditions:
|
||
|
- macro: '{#IFNAME}'
|
||
|
value: '@Network interfaces for discovery'
|
||
|
formulaid: A
|
||
|
description: 'The discovery of network interfaces as defined in the global regular expression "Network interfaces for discovery".'
|
||
|
item_prototypes:
|
||
|
- uuid: b1f9e472c6ed467d8cb0cc1739c39b59
|
||
|
name: 'Interface {#IFNAME}: Incoming network traffic'
|
||
|
key: 'net.if.in[{#IFNAME}]'
|
||
|
history: 1w
|
||
|
units: bps
|
||
|
preprocessing:
|
||
|
- type: CHANGE_PER_SECOND
|
||
|
parameters:
|
||
|
- ''
|
||
|
- type: MULTIPLIER
|
||
|
parameters:
|
||
|
- '8'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: interface
|
||
|
- tag: interface
|
||
|
value: '{#IFNAME}'
|
||
|
- uuid: ac93068d05084aa0a32a1bee78df3bd8
|
||
|
name: 'Interface {#IFNAME}: Outgoing network traffic'
|
||
|
key: 'net.if.out[{#IFNAME}]'
|
||
|
history: 1w
|
||
|
units: bps
|
||
|
preprocessing:
|
||
|
- type: CHANGE_PER_SECOND
|
||
|
parameters:
|
||
|
- ''
|
||
|
- type: MULTIPLIER
|
||
|
parameters:
|
||
|
- '8'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: interface
|
||
|
- tag: interface
|
||
|
value: '{#IFNAME}'
|
||
|
graph_prototypes:
|
||
|
- uuid: 1f52d0c9ee934eb3a5198ab53fdf4679
|
||
|
name: 'Interface {#IFNAME}: Network traffic'
|
||
|
ymin_type_1: FIXED
|
||
|
graph_items:
|
||
|
- drawtype: GRADIENT_LINE
|
||
|
color: 00AA00
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'net.if.in[{#IFNAME}]'
|
||
|
- sortorder: '1'
|
||
|
drawtype: GRADIENT_LINE
|
||
|
color: 3333FF
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'net.if.out[{#IFNAME}]'
|
||
|
- uuid: 4fd60a606c6343e9a7d7808d1d1f6008
|
||
|
name: 'Mounted filesystem discovery'
|
||
|
type: DEPENDENT
|
||
|
key: vfs.fs.dependent.discovery
|
||
|
delay: '0'
|
||
|
filter:
|
||
|
conditions:
|
||
|
- macro: '{#FSTYPE}'
|
||
|
value: '@File systems for discovery'
|
||
|
formulaid: A
|
||
|
description: 'The discovery of different types of file systems as defined in the global regular expression "File systems for discovery".'
|
||
|
item_prototypes:
|
||
|
- uuid: a5cdfe771122483fa1a88b2ea5c26b36
|
||
|
name: '{#FSNAME}: Free inodes, %'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent.inode[{#FSNAME},pfree]'
|
||
|
delay: '0'
|
||
|
history: 7d
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
preprocessing:
|
||
|
- type: JSONPATH
|
||
|
parameters:
|
||
|
- $.inodes.pfree
|
||
|
master_item:
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},data]'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: filesystem
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
trigger_prototypes:
|
||
|
- uuid: 2b87c38f49b146f1b801319d03a19dc3
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/vfs.fs.dependent.inode[{#FSNAME},pfree])<20'
|
||
|
name: '{#FSNAME}: Free inodes is less than 20%'
|
||
|
priority: WARNING
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: capacity
|
||
|
- tag: scope
|
||
|
value: performance
|
||
|
- uuid: 2ed6230d292a4037b67fe549c719e7ee
|
||
|
name: '{#FSNAME}: Free disk space'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent.size[{#FSNAME},free]'
|
||
|
delay: '0'
|
||
|
history: 7d
|
||
|
units: B
|
||
|
preprocessing:
|
||
|
- type: JSONPATH
|
||
|
parameters:
|
||
|
- $.bytes.free
|
||
|
master_item:
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},data]'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: filesystem
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
- uuid: aa0dd0eb957a4485b1a62f715381019a
|
||
|
name: '{#FSNAME}: Free disk space, %'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent.size[{#FSNAME},pfree]'
|
||
|
delay: '0'
|
||
|
history: 7d
|
||
|
value_type: FLOAT
|
||
|
units: '%'
|
||
|
preprocessing:
|
||
|
- type: JSONPATH
|
||
|
parameters:
|
||
|
- $.bytes.pfree
|
||
|
master_item:
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},data]'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: filesystem
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
trigger_prototypes:
|
||
|
- uuid: 01ea8e7f30564586af3b48adb3c930c1
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/vfs.fs.dependent.size[{#FSNAME},pfree])<20'
|
||
|
name: '{#FSNAME}: Free disk space is less than 20%'
|
||
|
priority: WARNING
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: capacity
|
||
|
- tag: scope
|
||
|
value: performance
|
||
|
- uuid: 6daede58ae8f4e42a4aa2539a552ab08
|
||
|
name: '{#FSNAME}: Total disk space'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent.size[{#FSNAME},total]'
|
||
|
delay: '0'
|
||
|
history: 7d
|
||
|
units: B
|
||
|
preprocessing:
|
||
|
- type: JSONPATH
|
||
|
parameters:
|
||
|
- $.bytes.total
|
||
|
master_item:
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},data]'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: filesystem
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
- uuid: 6efb08c26e1b439181a17d462ec1dab8
|
||
|
name: '{#FSNAME}: Used disk space'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent.size[{#FSNAME},used]'
|
||
|
delay: '0'
|
||
|
history: 7d
|
||
|
units: B
|
||
|
preprocessing:
|
||
|
- type: JSONPATH
|
||
|
parameters:
|
||
|
- $.bytes.used
|
||
|
master_item:
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},data]'
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: filesystem
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
- uuid: 94deedece667494398cbc537314911dd
|
||
|
name: '{#FSNAME}: Get filesystem data'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},data]'
|
||
|
delay: '0'
|
||
|
history: 1h
|
||
|
trends: '0'
|
||
|
value_type: TEXT
|
||
|
preprocessing:
|
||
|
- type: JSONPATH
|
||
|
parameters:
|
||
|
- '$.[?(@.fsname==''{#FSNAME}'')].first()'
|
||
|
master_item:
|
||
|
key: vfs.fs.get
|
||
|
tags:
|
||
|
- tag: component
|
||
|
value: filesystem
|
||
|
- tag: component
|
||
|
value: raw
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
- uuid: 5e2e9d6a08e34a37832bced869a75b1e
|
||
|
name: '{#FSNAME}: Filesystem is read-only'
|
||
|
type: DEPENDENT
|
||
|
key: 'vfs.fs.dependent[{#FSNAME},readonly]'
|
||
|
delay: '0'
|
||
|
history: 7d
|
||
|
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: filesystem
|
||
|
- tag: filesystem
|
||
|
value: '{#FSNAME}'
|
||
|
trigger_prototypes:
|
||
|
- uuid: f5a2fc8328d647d48eb3c2ebda361dc3
|
||
|
expression: 'last(/FreeBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly],#2)=0 and last(/FreeBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=1'
|
||
|
recovery_mode: RECOVERY_EXPRESSION
|
||
|
recovery_expression: 'last(/FreeBSD by Zabbix agent/vfs.fs.dependent[{#FSNAME},readonly])=0'
|
||
|
name: '{#FSNAME}: Filesystem has become read-only'
|
||
|
priority: AVERAGE
|
||
|
description: 'The filesystem has become read-only. A possible reason is an I/O error. It is available only for Zabbix agents 6.4 and higher.'
|
||
|
manual_close: 'YES'
|
||
|
tags:
|
||
|
- tag: scope
|
||
|
value: availability
|
||
|
- tag: scope
|
||
|
value: performance
|
||
|
graph_prototypes:
|
||
|
- uuid: 5f8ff96d3ea744bba849c9dc1464632f
|
||
|
name: '{#FSNAME}: Disk space usage'
|
||
|
graph_items:
|
||
|
- color: 199C0D
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'vfs.fs.dependent.size[{#FSNAME},total]'
|
||
|
- sortorder: '1'
|
||
|
color: F63100
|
||
|
item:
|
||
|
host: 'FreeBSD 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
|
||
|
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: inode
|
||
|
discover: NO_DISCOVER
|
||
|
tags:
|
||
|
- tag: class
|
||
|
value: os
|
||
|
- tag: target
|
||
|
value: freebsd
|
||
|
macros:
|
||
|
- macro: '{$AGENT.TIMEOUT}'
|
||
|
value: 3m
|
||
|
description: 'The timeout after which the agent is considered unavailable. It works only for the agents reachable from Zabbix server/proxy (in passive mode).'
|
||
|
dashboards:
|
||
|
- uuid: 618c8fc9d4b640999b3389960f5bead4
|
||
|
name: 'System performance'
|
||
|
pages:
|
||
|
- widgets:
|
||
|
- type: graph
|
||
|
width: '12'
|
||
|
height: '5'
|
||
|
fields:
|
||
|
- type: GRAPH
|
||
|
name: graphid
|
||
|
value:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
name: 'FreeBSD: CPU load'
|
||
|
- type: graph
|
||
|
x: '12'
|
||
|
width: '12'
|
||
|
height: '5'
|
||
|
fields:
|
||
|
- type: GRAPH
|
||
|
name: graphid
|
||
|
value:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
name: 'FreeBSD: CPU utilization'
|
||
|
- type: graph
|
||
|
'y': '5'
|
||
|
width: '12'
|
||
|
height: '5'
|
||
|
fields:
|
||
|
- type: GRAPH
|
||
|
name: graphid
|
||
|
value:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
name: 'FreeBSD: Memory usage'
|
||
|
- type: graph
|
||
|
x: '12'
|
||
|
'y': '5'
|
||
|
width: '12'
|
||
|
height: '5'
|
||
|
fields:
|
||
|
- type: GRAPH
|
||
|
name: graphid
|
||
|
value:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
name: 'FreeBSD: Swap usage'
|
||
|
valuemaps:
|
||
|
- uuid: 9c02af203e354ac6ac87a742e85f683b
|
||
|
name: zabbix.host.available
|
||
|
mappings:
|
||
|
- value: '0'
|
||
|
newvalue: 'not available'
|
||
|
- value: '1'
|
||
|
newvalue: available
|
||
|
- value: '2'
|
||
|
newvalue: unknown
|
||
|
- uuid: b82f35541efe4fc1a432c049eba5d082
|
||
|
name: 'Zabbix agent ping status'
|
||
|
mappings:
|
||
|
- value: '1'
|
||
|
newvalue: Up
|
||
|
graphs:
|
||
|
- uuid: 3ed928729f2d41139a42ca3ee0204551
|
||
|
name: 'FreeBSD: CPU jumps'
|
||
|
graph_items:
|
||
|
- color: '009900'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: system.cpu.switches
|
||
|
- sortorder: '1'
|
||
|
color: '000099'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: system.cpu.intr
|
||
|
- uuid: ac8b187522904c0880ea16a2b8727dfc
|
||
|
name: 'FreeBSD: CPU load'
|
||
|
ymin_type_1: FIXED
|
||
|
graph_items:
|
||
|
- color: '009900'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.load[percpu,avg1]'
|
||
|
- sortorder: '1'
|
||
|
color: '000099'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.load[percpu,avg5]'
|
||
|
- sortorder: '2'
|
||
|
color: '990000'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.load[percpu,avg15]'
|
||
|
- uuid: ecdccd78d75d4255948995b510acfefb
|
||
|
name: 'FreeBSD: CPU utilization'
|
||
|
show_triggers: 'NO'
|
||
|
type: STACKED
|
||
|
ymin_type_1: FIXED
|
||
|
ymax_type_1: FIXED
|
||
|
graph_items:
|
||
|
- drawtype: FILLED_REGION
|
||
|
color: '009999'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.util[,interrupt]'
|
||
|
- sortorder: '1'
|
||
|
drawtype: FILLED_REGION
|
||
|
color: '990099'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.util[,nice]'
|
||
|
- sortorder: '2'
|
||
|
drawtype: FILLED_REGION
|
||
|
color: '990000'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.util[,system]'
|
||
|
- sortorder: '3'
|
||
|
drawtype: FILLED_REGION
|
||
|
color: '000099'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.util[,user]'
|
||
|
- sortorder: '4'
|
||
|
drawtype: FILLED_REGION
|
||
|
color: '009900'
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.cpu.util[,idle]'
|
||
|
- uuid: 191f6c7b63204fd091d2e82c4f4b678a
|
||
|
name: 'FreeBSD: Memory usage'
|
||
|
graph_items:
|
||
|
- drawtype: GRADIENT_LINE
|
||
|
color: 00C800
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'vm.memory.size[available]'
|
||
|
- uuid: 23ade54acd87415080578379ab2cca6b
|
||
|
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'
|
||
|
key: 'system.swap.size[,total]'
|
||
|
- sortorder: '1'
|
||
|
color: 00AA00
|
||
|
item:
|
||
|
host: 'FreeBSD by Zabbix agent'
|
||
|
key: 'system.swap.size[,free]'
|