zabbix_templates/Template Containers.yaml

531 lines
18 KiB
YAML

zabbix_export:
version: '6.4'
template_groups:
- uuid: 7df96b18c230490a9a0a9e2307226338
name: Templates
templates:
- uuid: 2a0bf3ed9dcb4ea3b2d1bb1c3c67d08c
template: 'Template Containers'
name: 'Template Containers'
templates:
- name: 'Template App Zabbix Agent'
groups:
- name: Templates
items:
- uuid: bd4a837bc9d04eb1b14cd747e7fe9936
name: 'Check OS version'
key: ct.issue
trends: '0'
value_type: TEXT
tags:
- tag: Application
value: OS
- uuid: 2c2a0494d2be490fb87958809c1e64a5
name: 'Host local time'
key: ct.localtime
history: 1w
value_type: FLOAT
units: unixtime
request_method: POST
tags:
- tag: Application
value: General
- tag: Application
value: OS
- uuid: 9015e63c80664d10aa2fcb07803c35f0
name: 'Number of processes'
key: ct.processes
history: 1w
value_type: FLOAT
description: 'Total number of processes in any state.'
request_method: POST
tags:
- tag: Application
value: Processes
triggers:
- uuid: 7b050ef8ba224bb287500f9c0c432e51
expression: 'avg(/Template Containers/ct.processes,5m)>360'
name: 'Too many processes on {HOST.NAME}'
priority: WARNING
- uuid: 21206e98dac54fa2abfadd24cb19f3ef
name: 'Available memory'
key: ct.ramfree
history: 1w
value_type: FLOAT
units: B
description: 'Available memory is defined as free+cached+buffers memory.'
request_method: POST
tags:
- tag: Application
value: Memory
triggers:
- uuid: 9385b95fab7c4c5ab488391db49c605c
expression: 'last(/Template Containers/ct.ramfree)<20M'
name: 'Lack of available memory on server {HOST.NAME}'
priority: AVERAGE
- uuid: 1693208d45ca45ecbfcb8bee72358702
name: 'Free memory %'
key: ct.ramfree_proc
delay: 30s
value_type: FLOAT
units: '%'
request_method: POST
tags:
- tag: Application
value: Memory
- uuid: 259596fd666a4daa98c70c64727f106b
name: 'Total memory'
key: ct.ramtotal
delay: 1h
history: 1w
value_type: FLOAT
units: B
request_method: POST
tags:
- tag: Application
value: Memory
- uuid: dcf2518ae91546a297c333af00ecbff8
name: 'Used memory'
key: ct.ramused
history: 1w
value_type: FLOAT
units: B
tags:
- tag: Application
value: Memory
- uuid: f6cbea88973b4c26a506b9f2815850e4
name: 'Free swap space'
key: ct.swapfree
history: 1w
value_type: FLOAT
units: B
request_method: POST
tags:
- tag: Application
value: Memory
- uuid: f257ad585bd04e3e8ae11f6eb52ab906
name: 'Free swap space in %'
key: ct.swapfree_proc
delay: 2m
history: 1w
value_type: FLOAT
units: '%'
request_method: POST
tags:
- tag: Application
value: Memory
triggers:
- uuid: e2d6356947d849619533c047e4b9b2f7
expression: 'last(/Template Containers/ct.swapfree_proc)<50'
name: 'Lack of free swap space on {HOST.NAME}'
status: DISABLED
priority: WARNING
description: 'It probably means that the systems requires more physical memory.'
- uuid: 79fd627f5bb149a29928b916df583773
name: 'Total swap space'
key: ct.swaptotal
delay: 5s
history: 1w
value_type: FLOAT
units: B
request_method: POST
tags:
- tag: Application
value: Memory
- uuid: 75ca486de2674db99a86a107bf6d2e1c
name: 'System uptime'
key: ct.uptime
delay: 10m
history: 1w
value_type: FLOAT
units: uptime
request_method: POST
tags:
- tag: Application
value: General
- tag: Application
value: OS
triggers:
- uuid: f0a28dbe802245dfae81fb99463c69e8
expression: 'change(/Template Containers/ct.uptime)<0'
name: '{HOST.NAME} has just been restarted'
status: DISABLED
priority: INFO
- uuid: 5c7f36dad687457082c19ba8d0ee8465
name: 'Maximum number of opened files'
key: kernel.maxfiles
delay: 1h
history: 1w
value_type: FLOAT
description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.'
preprocessing:
- type: RTRIM
parameters:
- '3'
request_method: POST
tags:
- tag: Application
value: OS
triggers:
- uuid: 502e41028ba542469b87d7825071ec50
expression: 'last(/Template Containers/kernel.maxfiles)<1024'
name: 'Configured max number of opened files is too low on {HOST.NAME}'
priority: INFO
- uuid: 56196557228142f4b4b1b621c52c471a
name: 'Maximum number of processes'
key: kernel.maxproc
delay: 1h
history: 1w
value_type: FLOAT
description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.'
request_method: POST
tags:
- tag: Application
value: OS
triggers:
- uuid: 63102e632a3e46c283de5e47e5555ab2
expression: 'last(/Template Containers/kernel.maxproc)<256'
name: 'Configured max number of processes is too low on {HOST.NAME}'
priority: INFO
- uuid: e41ad00080c44b67b17b23eeb636d797
name: 'Host boot time'
key: system.boottime
delay: 10m
history: 1w
value_type: FLOAT
units: unixtime
request_method: POST
tags:
- tag: Application
value: General
- tag: Application
value: OS
- uuid: 95c8bde2b7de414d95393cd83cfe4524
name: 'Host name'
key: system.hostname
delay: 1h
history: 1w
trends: '0'
value_type: CHAR
description: 'System host name.'
inventory_link: NAME
request_method: POST
tags:
- tag: Application
value: General
- tag: Application
value: OS
triggers:
- uuid: 1399a6aca6134bf58120c1b2cc2f32e5
expression: '(last(/Template Containers/system.hostname,#1)<>last(/Template Containers/system.hostname,#2))>0'
name: 'Hostname was changed on {HOST.NAME}'
priority: INFO
- uuid: d3aefc22659244cba82aab6e6fb2ee15
name: 'System information'
key: system.uname
delay: 1h
history: 1w
trends: '0'
value_type: CHAR
description: 'The information as normally returned by ''uname -a''.'
inventory_link: OS
request_method: POST
tags:
- tag: Application
value: General
- tag: Application
value: OS
triggers:
- uuid: 0dcd0f691c0b4a7d9c6b2834e1909fe3
expression: '(last(/Template Containers/system.uname,#1)<>last(/Template Containers/system.uname,#2))>0'
name: 'Host information was changed on {HOST.NAME}'
priority: INFO
- uuid: 1bbf2e280d684da9967edd614eef117e
name: 'Number of logged in users'
key: system.users.num
history: 1w
value_type: FLOAT
description: 'Number of users who are currently logged in.'
request_method: POST
tags:
- tag: Application
value: OS
- tag: Application
value: Security
- uuid: fc384b1da607499cb9beaf6d1400b756
name: 'Checksum of $1'
key: 'vfs.file.cksum[/etc/passwd]'
delay: 1h
history: 1w
request_method: POST
tags:
- tag: Application
value: Security
triggers:
- uuid: cf943a0ff206434f952cf4afccf7d56a
expression: '(last(/Template Containers/vfs.file.cksum[/etc/passwd],#1)<>last(/Template Containers/vfs.file.cksum[/etc/passwd],#2))>0'
name: '/etc/passwd has been changed on {HOST.NAME}'
priority: WARNING
manual_close: 'YES'
- uuid: 7e0bfdb626d54991ad3bec1e7a475454
name: 'Checksum of $1'
key: 'vfs.file.cksum[/etc/ssh/authorized_keys/root]'
delay: 30s
tags:
- tag: Application
value: Security
triggers:
- uuid: 01471f5580da4f508978209d800bb93a
expression: '(last(/Template Containers/vfs.file.cksum[/etc/ssh/authorized_keys/root],#1)<>last(/Template Containers/vfs.file.cksum[/etc/ssh/authorized_keys/root],#2))>0'
name: 'SSH Authorized keys has been changed on {HOST.NAME}'
priority: DISASTER
discovery_rules:
- uuid: e73a591b26e54034a3882898035c842c
name: 'Network interface discovery'
key: net.if.discovery
delay: 1h
filter:
conditions:
- macro: '{#IFNAME}'
value: '@Network interfaces for discovery'
formulaid: A
description: 'Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery".'
item_prototypes:
- uuid: 5424543ac5094381b3780ab87c7662df
name: 'Incoming network traffic on $1'
key: 'net.if.in[{#IFNAME}]'
history: 1w
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
request_method: POST
tags:
- tag: Application
value: 'Network interfaces'
- uuid: 4a0a9d9e65064bf7a10f3c4e86e3421e
name: 'Outgoing network traffic on $1'
key: 'net.if.out[{#IFNAME}]'
history: 1w
units: bps
preprocessing:
- type: CHANGE_PER_SECOND
parameters:
- ''
- type: MULTIPLIER
parameters:
- '8'
request_method: POST
tags:
- tag: Application
value: 'Network interfaces'
graph_prototypes:
- uuid: 5c3afcd1707147aabdff69c4a51a3943
name: 'Network traffic on {#IFNAME}'
ymin_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: 00AA00
item:
host: 'Template Containers'
key: 'net.if.in[{#IFNAME}]'
- sortorder: '1'
drawtype: GRADIENT_LINE
color: 3333FF
item:
host: 'Template Containers'
key: 'net.if.out[{#IFNAME}]'
request_method: POST
- uuid: 4741e4182b31472989a12b66cd213613
name: 'Mounted filesystem discovery'
key: vfs.fs.discovery
delay: 1h
filter:
conditions:
- macro: '{#FSTYPE}'
value: '@File systems for discovery'
formulaid: A
description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".'
item_prototypes:
- uuid: aae745998c7a4567b6b93ddcba76e8e6
name: 'Free inodes on $1 (percentage)'
key: 'vfs.fs.inode[{#FSNAME},pfree]'
history: 1w
value_type: FLOAT
units: '%'
request_method: POST
tags:
- tag: Application
value: Filesystems
trigger_prototypes:
- uuid: d1b24d36174f412fb91304bbcf5ae312
expression: 'last(/Template Containers/vfs.fs.inode[{#FSNAME},pfree])<20'
name: 'Free inodes is less than 20% on volume {#FSNAME}'
priority: WARNING
- uuid: 6d614e33c0b943eb8cc430d2fb470310
name: 'Free disk space on $1'
key: 'vfs.fs.size[{#FSNAME},free]'
history: 1w
units: B
request_method: POST
tags:
- tag: Application
value: Filesystems
- uuid: ff75d66fa0444440978ecb0e6baa3aee
name: 'Free disk space on $1 (percentage)'
key: 'vfs.fs.size[{#FSNAME},pfree]'
history: 1w
value_type: FLOAT
units: '%'
request_method: POST
tags:
- tag: Application
value: Filesystems
trigger_prototypes:
- uuid: 6a0bea5a05cb4eccbe5094c9c2b8a529
expression: 'last(/Template Containers/vfs.fs.size[{#FSNAME},pfree])<5'
name: 'Free disk space is less than 5% on volume {#FSNAME}'
priority: DISASTER
- uuid: 61be12520bfd435fbc6ce85ec478b5d8
expression: 'last(/Template Containers/vfs.fs.size[{#FSNAME},pfree])<15'
name: 'Free disk space is less than 20% on volume {#FSNAME}'
priority: WARNING
- uuid: 5f44a96642ff49a8bdd1e23ef4395965
name: 'Total disk space on $1'
key: 'vfs.fs.size[{#FSNAME},total]'
delay: 1h
history: 1w
units: B
request_method: POST
tags:
- tag: Application
value: Filesystems
- uuid: 6ed1b4e043ee4d4ab7ddc3f5cbbb0111
name: 'Used disk space on $1'
key: 'vfs.fs.size[{#FSNAME},used]'
history: 1w
units: B
request_method: POST
tags:
- tag: Application
value: Filesystems
graph_prototypes:
- uuid: 98516d05dcea4891a0cb9cf47f8562d8
name: 'Disk space usage {#FSNAME}'
width: '600'
height: '340'
show_work_period: 'NO'
show_triggers: 'NO'
type: STACKED
graph_items:
- color: C80000
type: GRAPH_SUM
item:
host: 'Template Containers'
key: 'vfs.fs.size[{#FSNAME},total]'
- sortorder: '1'
color: 00C800
item:
host: 'Template Containers'
key: 'vfs.fs.size[{#FSNAME},free]'
request_method: POST
dashboards:
- uuid: ed2584b7c71845f780a55fb9fb46b4a9
name: 'System performance'
pages:
- widgets:
- type: graphprototype
width: '12'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid
value:
host: 'Template Containers'
name: 'Disk space usage {#FSNAME}'
- type: graphprototype
x: '12'
width: '12'
height: '5'
fields:
- type: INTEGER
name: columns
value: '1'
- type: GRAPH_PROTOTYPE
name: graphid
value:
host: 'Template Containers'
name: 'Network traffic on {#IFNAME}'
- type: graph
'y': '5'
width: '12'
height: '5'
fields:
- type: GRAPH
name: graphid
value:
host: 'Template Containers'
name: 'Memory usage'
- type: graph
x: '12'
'y': '5'
width: '12'
height: '5'
fields:
- type: GRAPH
name: graphid
value:
host: 'Template Containers'
name: 'Container - Number of processes'
graphs:
- uuid: b8d6a23897ad4e0bb11ac68f06e9218b
name: 'Container - Number of processes'
graph_items:
- color: '666600'
item:
host: 'Template Containers'
key: ct.processes
- uuid: d4e234a581c1482c8416de642f0d6715
name: 'Memory usage'
show_work_period: 'NO'
show_triggers: 'NO'
ymin_type_1: FIXED
graph_items:
- drawtype: GRADIENT_LINE
color: D7CCC8
item:
host: 'Template Containers'
key: ct.ramtotal
- sortorder: '1'
drawtype: FILLED_REGION
color: 00796B
item:
host: 'Template Containers'
key: ct.ramused
- uuid: 1e41269f0a1a4a0aa969106cde5bdb7f
name: '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: 'Template Containers'
key: ct.swaptotal
- sortorder: '1'
color: 00AA00
item:
host: 'Template Containers'
key: ct.swapfree