{ "zabbix_export": { "version": "6.4", "template_groups": [ { "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", "name": "Nextcloud Installation" }, { "uuid": "7df96b18c230490a9a0a9e2307226338", "name": "Templates" } ], "templates": [ { "uuid": "a307d5ee43b34e6c8cbd8ffa524111ba", "template": "LXD Container", "name": "LXD Container", "description": "Template for LXD Container (based on https://github.com/kvaps/zabbix-linux-container-template)", "groups": [ { "name": "Nextcloud Installation" }, { "name": "Templates" } ], "items": [ { "uuid": "76baaafbd3d94c779b021d2da2e9a2b3", "name": "Processor load (1 min average per core)", "key": "ct.cpu.load[percpu,avg1]", "history": "1w", "value_type": "FLOAT", "description": "The processor load is calculated as system CPU load divided by number of CPU cores.", "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ], "triggers": [ { "uuid": "98fb6eac561748dcbaf458eb36924c4f", "expression": "avg(/LXD Container/ct.cpu.load[percpu,avg1],5m)>20", "name": "Processor load is too high on {HOST.NAME}", "status": "DISABLED", "priority": "WARNING" } ] }, { "uuid": "ff53668f0e0c430b9989f67feb399e55", "name": "Processor load (5 min average per core)", "key": "ct.cpu.load[percpu,avg5]", "history": "1w", "value_type": "FLOAT", "description": "The processor load is calculated as system CPU load divided by number of CPU cores.", "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "ec833e0cab554d8e91f9916a0aee06b5", "name": "Processor load (15 min average per core)", "key": "ct.cpu.load[percpu,avg15]", "history": "1w", "value_type": "FLOAT", "description": "The processor load is calculated as system CPU load divided by number of CPU cores.", "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "654c7defbabc4e21840d2798cb73b19b", "name": "Available memory", "key": "ct.memory.size[available]", "history": "1w", "units": "B", "description": "Available memory is defined as free+cached+buffers memory.", "tags": [ { "tag": "Application", "value": "Memory" } ], "triggers": [ { "uuid": "efc3d68fe84f455280b6b7e7406a900c", "expression": "last(/LXD Container/ct.memory.size[available])<20M", "name": "Lack of available memory on server {HOST.NAME}", "priority": "AVERAGE" } ] }, { "uuid": "71741f5a1503404bb2430e5a354f8792", "name": "Total memory", "key": "ct.memory.size[total]", "delay": "1h", "history": "1w", "units": "B", "tags": [ { "tag": "Application", "value": "Memory" } ] }, { "uuid": "3c2e67649b284457bd2a39ff74b1545a", "name": "Used memory", "key": "ct.memory.size[used]", "history": "1w", "units": "B", "description": "Used memory", "tags": [ { "tag": "Application", "value": "Memory" } ] }, { "uuid": "bd2907630095462d8e7e8aa9d08fb1e1", "name": "Used swap space in %", "key": "ct.swap.size[pused]", "history": "1w", "value_type": "FLOAT", "units": "%", "tags": [ { "tag": "Application", "value": "Memory" } ], "triggers": [ { "uuid": "6570b8608751425f9503716453d1485a", "expression": "last(/LXD Container/ct.swap.size[pused])>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": "600958a99fe741ae922f7cbf51d97ecf", "name": "Total swap space", "key": "ct.swap.size[total]", "delay": "1h", "history": "1w", "units": "B", "tags": [ { "tag": "Application", "value": "Memory" } ] }, { "uuid": "d916175598d5455fa4f0d31047a7afa7", "name": "Used swap space", "key": "ct.swap.size[used]", "history": "1w", "units": "B", "tags": [ { "tag": "Application", "value": "Memory" } ] }, { "uuid": "ad0a846efffb44bbb548f6363d361ea0", "name": "Maximum number of opened files", "key": "kernel.maxfiles", "delay": "1h", "history": "1w", "description": "It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.", "tags": [ { "tag": "Application", "value": "OS" } ], "triggers": [ { "uuid": "d6d4371e903544ad847256479b10e8ad", "expression": "last(/LXD Container/kernel.maxfiles)<1024", "name": "Configured max number of opened files is too low on {HOST.NAME}", "priority": "INFO" } ] }, { "uuid": "a9f63e2e69fa4bfcbcb81b4d07d1f398", "name": "Maximum number of processes", "key": "kernel.maxproc", "delay": "1h", "history": "1w", "description": "It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.", "tags": [ { "tag": "Application", "value": "OS" } ], "triggers": [ { "uuid": "3c679ac3f7684f32ae4d331a74d73160", "expression": "last(/LXD Container/kernel.maxproc)<256", "name": "Configured max number of processes is too low on {HOST.NAME}", "priority": "INFO" } ] }, { "uuid": "f4c6feca4bbc4cf5a789dd8557244187", "name": "Incoming Network Traffic (eth0)", "key": "net.if.in[eth0]", "units": "bps", "description": "Incoming Network Traffic (eth0)", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] }, { "type": "MULTIPLIER", "parameters": [ "8" ] } ] }, { "uuid": "a81a77c843dd44189133d57731a6d842", "name": "Outgoing Network Traffic (eth0)", "key": "net.if.out[eth0]", "units": "bps", "description": "Outgoing Network Traffic (eth0)", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] }, { "type": "MULTIPLIER", "parameters": [ "8" ] } ] }, { "uuid": "701f34b74258440f9723b60d60c7bbdb", "name": "Number of running processes", "key": "proc.num[,,run]", "history": "1w", "description": "Number of processes in running state.", "tags": [ { "tag": "Application", "value": "Processes" } ], "triggers": [ { "uuid": "24cfcdc3fbf64262bf45d313f19bb4bf", "expression": "avg(/LXD Container/proc.num[,,run],5m)>100", "name": "Too many processes running on {HOST.NAME}", "priority": "WARNING" } ] }, { "uuid": "8aa04f54abd5433c8f7229e42eb002a3", "name": "Number of processes", "key": "proc.num[]", "history": "1w", "description": "Total number of processes in any state.", "tags": [ { "tag": "Application", "value": "Processes" } ], "triggers": [ { "uuid": "d6225d243b6f4b1680c2990bcf011038", "expression": "avg(/LXD Container/proc.num[],5m)>1000", "name": "Too many processes on {HOST.NAME}", "priority": "WARNING" } ] }, { "uuid": "abca07defec94aab8f95e82a00b6b6e8", "name": "Host boot time", "key": "system.boottime", "delay": "10m", "history": "1w", "units": "unixtime", "tags": [ { "tag": "Application", "value": "General" }, { "tag": "Application", "value": "OS" } ] }, { "uuid": "775a23e16c974969bbdbf61c16a0dfbf", "name": "Interrupts per second", "key": "system.cpu.intr", "history": "1w", "units": "ips", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] } ], "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "1a4dc8b51aac4c2db44ba9d37ebc3d5b", "name": "Context switches per second", "key": "system.cpu.switches", "history": "1w", "units": "sps", "preprocessing": [ { "type": "CHANGE_PER_SECOND", "parameters": [ "" ] } ], "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "48faf27f96ae4c96b80a5325e3f13b15", "name": "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": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "a5916aa5502444e8a98b0d90fd4b0608", "name": "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": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "3be9cabb1be54424943bc22ca9269036", "name": "CPU iowait time", "key": "system.cpu.util[,iowait]", "history": "1w", "value_type": "FLOAT", "units": "%", "description": "Amount of time the CPU has been waiting for I/O to complete.", "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ], "triggers": [ { "uuid": "b8bddac9ed8f43d3ab4a4ba505f425d8", "expression": "avg(/LXD Container/system.cpu.util[,iowait],5m)>75", "name": "Disk I/O is overloaded on {HOST.NAME}", "priority": "WARNING", "description": "OS spends significant time waiting for I/O (input/output) operations. It could be indicator of performance issues with storage system." } ] }, { "uuid": "d79f1d5acf764d279d40b8e61c4ef2fb", "name": "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": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "a38e65c954c14514a0dd7a1ab6f093cf", "name": "CPU softirq time", "key": "system.cpu.util[,softirq]", "history": "1w", "value_type": "FLOAT", "units": "%", "description": "The amount of time the CPU has been servicing software interrupts.", "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "87a1281ba4cf42f0a4065dfd339c6e6f", "name": "CPU steal time", "key": "system.cpu.util[,steal]", "history": "1w", "value_type": "FLOAT", "units": "%", "description": "The amount of CPU 'stolen' from this virtual machine by the hypervisor for other tasks (such as running another virtual machine).", "tags": [ { "tag": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "d0702aae2dc840da82fdfbb30d4bac32", "name": "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": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "32fd85dc65184625b158410259088fab", "name": "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": "Application", "value": "CPU" }, { "tag": "Application", "value": "Performance" } ] }, { "uuid": "29f8c3c5fa3b4399b0b9089decb195ae", "name": "Host name", "key": "system.hostname", "delay": "1h", "history": "1w", "trends": "0", "value_type": "CHAR", "description": "System host name.", "inventory_link": "NAME", "tags": [ { "tag": "Application", "value": "General" }, { "tag": "Application", "value": "OS" } ], "triggers": [ { "uuid": "1d07cea03d8a47cab36c916c3e0bb691", "expression": "(last(/LXD Container/system.hostname,#1)<>last(/LXD Container/system.hostname,#2))>0", "name": "Hostname was changed on {HOST.NAME}", "priority": "INFO" } ] }, { "uuid": "ad5fef4efa84440b905ef42a8709195e", "name": "Host local time", "key": "system.localtime", "history": "1w", "units": "unixtime", "tags": [ { "tag": "Application", "value": "General" }, { "tag": "Application", "value": "OS" } ] }, { "uuid": "771e72f5dbf24aaa946ca64f2fb15469", "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", "tags": [ { "tag": "Application", "value": "General" }, { "tag": "Application", "value": "OS" } ], "triggers": [ { "uuid": "5412801190da459fa9e89b76f8b50b16", "expression": "(last(/LXD Container/system.uname,#1)<>last(/LXD Container/system.uname,#2))>0", "name": "Host information was changed on {HOST.NAME}", "priority": "INFO" } ] }, { "uuid": "fdec15f47fb1436ca88b1d2d664dcbd7", "name": "System uptime", "key": "system.uptime", "delay": "10m", "history": "1w", "units": "uptime", "tags": [ { "tag": "Application", "value": "General" }, { "tag": "Application", "value": "OS" } ], "triggers": [ { "uuid": "db39143ac1094ce89845752bd759751d", "expression": "change(/LXD Container/system.uptime)<0", "name": "{HOST.NAME} has just been restarted", "priority": "INFO" } ] }, { "uuid": "451c61db9e8241d5bee33666646dd69a", "name": "Number of logged in users", "key": "system.users.num", "history": "1w", "description": "Number of users who are currently logged in.", "tags": [ { "tag": "Application", "value": "OS" }, { "tag": "Application", "value": "Security" } ] }, { "uuid": "7ba9f4699a35481b887c60ec95f4ccb5", "name": "Checksum of $1", "key": "vfs.file.cksum[/etc/passwd]", "delay": "1h", "history": "1w", "tags": [ { "tag": "Application", "value": "Security" } ], "triggers": [ { "uuid": "1384cbb14e4643308c7a5cb7c7b44f39", "expression": "(last(/LXD Container/vfs.file.cksum[/etc/passwd],#1)<>last(/LXD Container/vfs.file.cksum[/etc/passwd],#2))>0", "name": "/etc/passwd has been changed on {HOST.NAME}", "priority": "WARNING" } ] } ], "discovery_rules": [ { "uuid": "2daa2ffa5a8e4aa6aaf36ebabc60282e", "name": "Mounted Filesystems Discovery", "key": "vfs.fs.discovery", "delay": "1h", "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" } ] }, "lifetime": "1h", "description": "Mounted Filesystems Discovery", "item_prototypes": [ { "uuid": "cf4a09bd77de40c1b69cd67e3e99bd9b", "name": "{#FSNAME}: Free inodes in %", "key": "vfs.fs.inode[{#FSNAME},pfree]", "delay": "1h", "value_type": "FLOAT", "units": "%", "tags": [ { "tag": "component", "value": "storage" }, { "tag": "filesystem", "value": "{#FSNAME}" } ] }, { "uuid": "6b5e8d1f568a4b41855be117f6e925c7", "name": "{#FSNAME}: Space Utilization", "key": "vfs.fs.size[{#FSNAME},pused]", "delay": "1h", "value_type": "FLOAT", "units": "%", "description": "The space utilization expressed in % for {#FSNAME}.", "tags": [ { "tag": "component", "value": "storage" }, { "tag": "filesystem", "value": "{#FSNAME}" } ] }, { "uuid": "e30a48901e3b4982919f776d730b2dec", "name": "{#FSNAME}: Total space", "key": "vfs.fs.size[{#FSNAME},total]", "delay": "1h", "description": "Total storage expressed in Bytes", "tags": [ { "tag": "component", "value": "storage" }, { "tag": "filesystem", "value": "{#FSNAME}" } ] }, { "uuid": "1a12ae3d4f134cc892be92e6bdba24d7", "name": "{#FSNAME}: Used space", "key": "vfs.fs.size[{#FSNAME},used]", "delay": "1h", "description": "Used storage expressed in Bytes" } ] } ], "macros": [ { "macro": "{$VFS.FS.FSNAME.MATCHES}", "value": ".+", "description": "This macro is used for discovery of the filesystems. It can be overridden on host level or its linked template level (copied from template \"Linux by Zabbix Agent\")." }, { "macro": "{$VFS.FS.FSNAME.NOT_MATCHES}", "value": "^(/dev|/sys|/run|/proc|.+/shm$)", "description": "This macro is used for discovery of the filesystems. It can be overridden on host level or its linked template level (copied from template \"Linux by Zabbix Agent\")." }, { "macro": "{$VFS.FS.FSTYPE.MATCHES}", "value": "^(btrfs|ext2|ext3|ext4|reiser|xfs|ffs|ufs|jfs|jfs2|vxfs|hfs|apfs|refs|ntfs|fat32|zfs)$", "description": "This macro is used for discovery of the filesystems. It can be overridden on host level or its linked template level (copied from template \"Linux by Zabbix Agent\")." }, { "macro": "{$VFS.FS.FSTYPE.NOT_MATCHES}", "value": "^\\s$", "description": "This macro is used for discovery of the filesystems. It can be overridden on host level or its linked template level (copied from template \"Linux by Zabbix Agent\")." } ], "dashboards": [ { "uuid": "df90d1983d9f4d4aa9517639657a2337", "name": "Operating System", "display_period": "60", "pages": [ { "widgets": [ { "type": "graph", "width": "12", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "LXD Container", "name": "CPU load" } } ] }, { "type": "graph", "y": "5", "width": "12", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "LXD Container", "name": "Memory usage" } } ] }, { "type": "graph", "y": "10", "width": "12", "height": "5", "fields": [ { "type": "ITEM", "name": "itemid", "value": { "host": "LXD Container", "key": "proc.num[]" } }, { "type": "INTEGER", "name": "source_type", "value": "1" } ] }, { "type": "graph", "y": "15", "width": "12", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "LXD Container", "name": "Incoming Network Traffic (eth0)" } } ] }, { "type": "graph", "x": "12", "width": "12", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "LXD Container", "name": "CPU usage" } } ] }, { "type": "graph", "x": "12", "y": "5", "width": "12", "height": "5", "fields": [ { "type": "ITEM", "name": "itemid", "value": { "host": "LXD Container", "key": "proc.num[,,run]" } }, { "type": "INTEGER", "name": "source_type", "value": "1" } ] }, { "type": "graph", "x": "12", "y": "15", "width": "12", "height": "5", "fields": [ { "type": "GRAPH", "name": "graphid", "value": { "host": "LXD Container", "name": "Outgoing Network Traffic (eth0)" } } ] } ] } ] } ] } ], "graphs": [ { "uuid": "c3c8401d0b614ba3893c66015eafd115", "name": "CPU jumps", "graph_items": [ { "color": "009900", "item": { "host": "LXD Container", "key": "system.cpu.switches" } }, { "sortorder": "1", "color": "000099", "item": { "host": "LXD Container", "key": "system.cpu.intr" } } ] }, { "uuid": "65cfe6acfb1149688d56b6ea4327bfb0", "name": "CPU load", "ymin_type_1": "FIXED", "graph_items": [ { "color": "009900", "item": { "host": "LXD Container", "key": "ct.cpu.load[percpu,avg1]" } }, { "sortorder": "1", "color": "000099", "item": { "host": "LXD Container", "key": "ct.cpu.load[percpu,avg5]" } }, { "sortorder": "2", "color": "990000", "item": { "host": "LXD Container", "key": "ct.cpu.load[percpu,avg15]" } } ] }, { "uuid": "eb6a225c064d45b8a753583dcd196c1f", "name": "CPU usage", "show_triggers": "NO", "ymin_type_1": "FIXED", "ymax_type_1": "FIXED", "graph_items": [ { "color": "FF5555", "item": { "host": "LXD Container", "key": "system.cpu.util[,steal]" } }, { "sortorder": "1", "color": "55FF55", "item": { "host": "LXD Container", "key": "system.cpu.util[,softirq]" } }, { "sortorder": "2", "color": "009999", "item": { "host": "LXD Container", "key": "system.cpu.util[,interrupt]" } }, { "sortorder": "3", "color": "990099", "item": { "host": "LXD Container", "key": "system.cpu.util[,nice]" } }, { "sortorder": "4", "color": "999900", "item": { "host": "LXD Container", "key": "system.cpu.util[,iowait]" } }, { "sortorder": "5", "color": "990000", "item": { "host": "LXD Container", "key": "system.cpu.util[,system]" } }, { "sortorder": "6", "color": "000099", "item": { "host": "LXD Container", "key": "system.cpu.util[,user]" } }, { "sortorder": "7", "color": "009900", "item": { "host": "LXD Container", "key": "system.cpu.util[,idle]" } } ] }, { "uuid": "1c6d41d77c9d41a9b08cd56a07b71d47", "name": "Incoming Network Traffic (eth0)", "graph_items": [ { "color": "1A7C11", "calc_fnc": "ALL", "item": { "host": "LXD Container", "key": "net.if.in[eth0]" } } ] }, { "uuid": "d6ec3ecfc878469b8b7c54906a57b329", "name": "Memory usage", "ymin_type_1": "FIXED", "ymax_type_1": "ITEM", "ymax_item_1": { "host": "LXD Container", "key": "ct.memory.size[total]" }, "graph_items": [ { "color": "BB0000", "item": { "host": "LXD Container", "key": "ct.memory.size[total]" } }, { "sortorder": "1", "drawtype": "GRADIENT_LINE", "color": "274482", "calc_fnc": "ALL", "item": { "host": "LXD Container", "key": "ct.memory.size[used]" } } ] }, { "uuid": "51a288c110144346a8b49938efcae683", "name": "Outgoing Network Traffic (eth0)", "graph_items": [ { "color": "274482", "calc_fnc": "ALL", "item": { "host": "LXD Container", "key": "net.if.out[eth0]" } } ] }, { "uuid": "e3cf24c2b786420ab4d441a908cc8167", "name": "Swap usage", "width": "600", "height": "340", "yaxismax": "0", "show_work_period": "NO", "show_triggers": "NO", "type": "PIE", "graph_items": [ { "color": "AA0000", "item": { "host": "LXD Container", "key": "ct.swap.size[used]" } }, { "sortorder": "1", "color": "00AA00", "type": "GRAPH_SUM", "item": { "host": "LXD Container", "key": "ct.swap.size[total]" } } ] } ] } }