commit 2c0d411f7c54e760327e0c6da9c20939e42f6ece Author: meaz Date: Thu Aug 17 12:12:47 2023 +0200 first commit diff --git a/Template App Zabbix Agent.yaml b/Template App Zabbix Agent.yaml new file mode 100644 index 0000000..b11df31 --- /dev/null +++ b/Template App Zabbix Agent.yaml @@ -0,0 +1,80 @@ +zabbix_export: + version: '6.4' + template_groups: + - + uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - + uuid: 29faeb6410e24c959b92967f466750e6 + template: 'Template App Zabbix Agent' + name: 'Template App Zabbix Agent' + groups: + - + name: Templates + items: + - + uuid: 1f436557772f4629a425ef311b306a70 + name: 'Host name of zabbix_agentd running' + key: agent.hostname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + #request_method: POST + tags: + - + tag: Application + value: 'Zabbix agent' + triggers: + - + uuid: ed938d0e260647ab99ee603f69afea90 + expression: '(last(/Template App Zabbix Agent/agent.hostname,#1)<>last(/Template App Zabbix Agent/agent.hostname,#2))>0' + name: 'Host name of zabbix_agentd was changed on {HOST.NAME}' + priority: INFO + - + uuid: bf419e8cb21342e596cd3727af5b3ebf + name: 'Agent ping' + key: agent.ping + history: 1w + description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.' + valuemap: + name: 'Zabbix agent ping status' + #request_method: POST + tags: + - + tag: Application + value: 'Zabbix agent' + triggers: + - + uuid: 43555408eeab4ee2bd0d2b059dcd488f + expression: 'nodata(/Template App Zabbix Agent/agent.ping,5m)=1' + name: 'Zabbix agent on {HOST.NAME} is unreachable for 5 minutes' + priority: AVERAGE + - + uuid: 848edd2ec1cf4a279f65db59e2b83039 + name: 'Version of zabbix_agent(d) running' + key: agent.version + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + #request_method: POST + tags: + - + tag: Application + value: 'Zabbix agent' + triggers: + - + uuid: b4663ca19dc54caa8ced01bf0fc84c1d + expression: '(last(/Template App Zabbix Agent/agent.version,#1)<>last(/Template App Zabbix Agent/agent.version,#2))>0' + name: 'Version of zabbix_agent(d) was changed on {HOST.NAME}' + priority: INFO + valuemaps: + - + uuid: 2bbdd800972b4752b18d300712301e9d + name: 'Zabbix agent ping status' + mappings: + - + value: '1' + newvalue: Up diff --git a/Template Containers.yaml b/Template Containers.yaml new file mode 100644 index 0000000..3ba0156 --- /dev/null +++ b/Template Containers.yaml @@ -0,0 +1,640 @@ +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 diff --git a/Template Service - Etherpad.yaml b/Template Service - Etherpad.yaml new file mode 100644 index 0000000..bec979b --- /dev/null +++ b/Template Service - Etherpad.yaml @@ -0,0 +1,42 @@ +zabbix_export: + version: '6.4' + template_groups: + - + uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - + uuid: a658ec9bed5143518c8d052b95764c8d + template: 'Service - Etherpad' + name: 'Service - Etherpad' + groups: + - + name: Templates + items: + - + uuid: e1d6a94c64204a7487ef98dc842eb373 + name: 'Total pads' + key: 'etherpad[pads_totalpads]' + delay: 50m + tags: + - + tag: Application + value: Etherpad + - + uuid: 1730e1a9c9944df6a7d05758569bb309 + name: 'Total active pads' + key: 'etherpad[pad_activepads]' + delay: 5m + tags: + - + tag: Application + value: Etherpad + - + uuid: 88871b77aaeb465e81a4f5f7e5fb0f7b + name: 'Total active users' + key: 'etherpad[pad_activeusers]' + delay: 5m + tags: + - + tag: Application + value: Etherpad diff --git a/Template Service - Lufi.yaml b/Template Service - Lufi.yaml new file mode 100644 index 0000000..f4e6559 --- /dev/null +++ b/Template Service - Lufi.yaml @@ -0,0 +1,51 @@ +zabbix_export: + version: '6.4' + template_groups: + - + uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - + uuid: 80622a50a5304c4d92b592a175a78f06 + template: 'Service - Lufi' + name: 'Service - Lufi' + groups: + - + name: Templates + items: + - + uuid: 9b433251a062440d96fc2b71003fb33e + name: 'Number of active files' + key: 'lufi[lufi_active]' + delay: 5s + tags: + - + tag: Application + value: Lufi + - + uuid: 294ebf2b35174afca339eee80d313c1a + name: 'Number of files' + key: 'lufi[lufi_allfiles]' + delay: 5s + tags: + - + tag: Application + value: Lufi + - + uuid: 255e8410c94a4becb2bcdff0b09387e3 + name: 'Number of deleted files' + key: 'lufi[lufi_deleted]' + delay: 5s + tags: + - + tag: Application + value: Lufi + - + uuid: 5d46afce28124971a54641685ebcbb72 + name: 'Size of all files' + key: 'lufi[lufi_size]' + delay: 5s + tags: + - + tag: Application + value: Lufi diff --git a/Template Service - PrivateBin.yaml b/Template Service - PrivateBin.yaml new file mode 100644 index 0000000..4bc9ad8 --- /dev/null +++ b/Template Service - PrivateBin.yaml @@ -0,0 +1,34 @@ +zabbix_export: + version: '6.4' + template_groups: + - + uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - + uuid: e40760d657aa42bfb2232fcab65155a4 + template: 'Service - PrivateBin' + name: 'Service - PrivateBin' + description: 'Template for monitoring of PrvateBin' + groups: + - + name: Templates + items: + - + uuid: 4246fb91d1d7440d90c1b31ac383fd23 + name: 'Size of all Pastebins' + key: 'privatebin[bin_size]' + delay: 5s + tags: + - + tag: Application + value: PrivateBin + - + uuid: e7d359c4e9ac48519dbdd4ca9bef9b12 + name: 'Amount of Pastebins' + key: 'privatebin[bin_total]' + delay: 50m + tags: + - + tag: Application + value: PrivateBin