diff --git a/zabbix-templates/6.0/apache-zabbix-template.json b/zabbix-templates/6.0/apache-zabbix-template.json new file mode 100644 index 0000000..e3a5f00 --- /dev/null +++ b/zabbix-templates/6.0/apache-zabbix-template.json @@ -0,0 +1,1250 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-19T14:47:54Z", + "groups": [ + { + "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", + "name": "Templates/Applications" + } + ], + "templates": [ + { + "uuid": "86702e8bc514434e8c914d50c206cb94", + "template": "Apache by HTTP", + "name": "Apache by HTTP", + "description": "Get metrics from mod_status module using HTTP agent.\nhttps://httpd.apache.org/docs/current/mod/mod_status.html\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384764-discussion-thread-for-official-zabbix-template-apache\n\nGenerated by official Zabbix template tool \"Templator\"", + "groups": [ + { + "name": "Templates/Applications" + } + ], + "items": [ + { + "uuid": "b9fe6f0bbe174e9f81af84a3bc0b0e7c", + "name": "Apache: Total bytes", + "type": "DEPENDENT", + "key": "apache.bytes", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "The total bytes served.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total kBytes\"]" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1024" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "b36010be10874cf188eeacc81f2c366f", + "name": "Apache: Bytes per second", + "type": "DEPENDENT", + "key": "apache.bytes.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "It is calculated as a rate of change for total bytes statistics.\n`BytesPerSec` is not used, as it counts the average since the last Apache server start.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total kBytes\"]" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1024" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "e61be8ad92004100aca55fcedd2a3807", + "name": "Apache: Get status", + "type": "HTTP_AGENT", + "key": "apache.get_status", + "history": "1h", + "trends": "0", + "value_type": "TEXT", + "description": "Getting data from a machine-readable version of the Apache status page.\nFor more information see Apache Module [mod_status](https://httpd.apache.org/docs/current/mod/mod_status.html).", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var lines = value.split('\\n');\nvar output = {},\n\tworkers = {\n\t\t'_': 0, 'S': 0, 'R': 0, 'W': 0,\n\t\t'K': 0, 'D': 0, 'C': 0, 'L': 0,\n\t\t'G': 0, 'I': 0, '.': 0\n\t};\n\nfor (var i = 0; i < lines.length; i++) {\n\tvar line = lines[i].match(/([A-z0-9 ]+): (.*)/);\n\n\tif (line !== null) {\n\t\toutput[line[1]] = isNaN(line[2]) ? line[2] : Number(line[2]);\n\t}\n}\n\noutput.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime;\noutput.ServerVersion = output.ServerVersion || output.Server;\n\nif (typeof output.Scoreboard === 'string') {\n\tfor (var i = 0; i < output.Scoreboard.length; i++) {\n\t\tvar char = output.Scoreboard[i];\n\n\t\tworkers[char]++;\n\t}\n}\n\noutput.Workers = {\n\twaiting: workers['_'], starting: workers['S'], reading: workers['R'],\n\tsending: workers['W'], keepalive: workers['K'], dnslookup: workers['D'],\n\tclosing: workers['C'], logging: workers['L'], finishing: workers['G'],\n\tcleanup: workers['I'], slot: workers['.']\n};\n\nreturn JSON.stringify(output);" + ] + } + ], + "url": "{$APACHE.STATUS.SCHEME}://{HOST.CONN}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}", + "retrieve_mode": "BOTH", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ], + "triggers": [ + { + "uuid": "db396445cc5042f89f31dc12cb99c32e", + "expression": "nodata(/Apache by HTTP/apache.get_status,30m)=1", + "name": "Apache: Failed to fetch status page", + "event_name": "Apache: Failed to fetch status page (or no data for 30m)", + "priority": "WARNING", + "description": "Zabbix has not received any data for items for the last 30 minutes.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Apache: Service is down", + "expression": "last(/Apache by HTTP/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "5fb5101de70a43fab50d55f418462255", + "name": "Apache: Total requests", + "type": "DEPENDENT", + "key": "apache.requests", + "delay": "0", + "history": "7d", + "description": "The total number of the Apache server accesses.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total Accesses\"]" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "ee15f4958040459da53251cc3561ed39", + "name": "Apache: Requests per second", + "type": "DEPENDENT", + "key": "apache.requests.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "It is calculated as a rate of change for the \"Total requests\" statistics.\n`ReqPerSec` is not used, as it counts the average since the last Apache server start.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total Accesses\"]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "3dd8ba505d584b028c7ac08d8b959eb3", + "name": "Apache: Uptime", + "type": "DEPENDENT", + "key": "apache.uptime", + "delay": "0", + "history": "7d", + "units": "uptime", + "description": "The service uptime expressed in seconds.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ServerUptimeSeconds" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "76cfa6ebf39f4c8fbd8fde9e0f36d3ed", + "expression": "last(/Apache by HTTP/apache.uptime)<10m", + "name": "Apache: Host has been restarted", + "event_name": "Apache: {HOST.NAME} has been restarted (uptime < 10m)", + "priority": "INFO", + "description": "Uptime is less than 10 minutes.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "fe0de2eb1478482f99b38c13bd20564c", + "name": "Apache: Version", + "type": "DEPENDENT", + "key": "apache.version", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The Apache service version.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ServerVersion" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "5296d69af0704d0e8a07398f0b4c9685", + "expression": "last(/Apache by HTTP/apache.version,#1)<>last(/Apache by HTTP/apache.version,#2) and length(last(/Apache by HTTP/apache.version))>0", + "name": "Apache: Version has changed", + "event_name": "Apache: Version has changed (new version: {ITEM.VALUE})", + "priority": "INFO", + "description": "Apache version has changed. Acknowledge to close the problem manually.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "f74ffb92e30e48958b5b82f7dfbe5147", + "name": "Apache: Workers idle cleanup", + "type": "DEPENDENT", + "key": "apache.workers.cleanup", + "delay": "0", + "history": "7d", + "description": "The number of workers in cleanup state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.cleanup" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "d664bee9a330480bbaee7273b871a8d3", + "name": "Apache: Workers closing connection", + "type": "DEPENDENT", + "key": "apache.workers.closing", + "delay": "0", + "history": "7d", + "description": "The number of workers in closing state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.closing" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "a6fb3444585749be998ec840cd8e4511", + "name": "Apache: Workers DNS lookup", + "type": "DEPENDENT", + "key": "apache.workers.dnslookup", + "delay": "0", + "history": "7d", + "description": "The number of workers in `dnslookup` state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.dnslookup" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "fcf771f2a9b64a81a37db679f0494ed3", + "name": "Apache: Workers finishing", + "type": "DEPENDENT", + "key": "apache.workers.finishing", + "delay": "0", + "history": "7d", + "description": "The number of workers in finishing state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.finishing" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "cb81a6a77395444283bc5e065fcbfc2e", + "name": "Apache: Workers keepalive (read)", + "type": "DEPENDENT", + "key": "apache.workers.keepalive", + "delay": "0", + "history": "7d", + "description": "The number of workers in `keepalive` state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.keepalive" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "7fc0002a279b4541af569a03c1aca2ac", + "name": "Apache: Workers logging", + "type": "DEPENDENT", + "key": "apache.workers.logging", + "delay": "0", + "history": "7d", + "description": "The number of workers in logging state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.logging" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "78b0bd7d8bec49549fc003d460af9177", + "name": "Apache: Workers reading request", + "type": "DEPENDENT", + "key": "apache.workers.reading", + "delay": "0", + "history": "7d", + "description": "The number of workers in reading state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.reading" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "379ac66397b94463ad17b24fbd20c615", + "name": "Apache: Workers sending reply", + "type": "DEPENDENT", + "key": "apache.workers.sending", + "delay": "0", + "history": "7d", + "description": "The number of workers in sending state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.sending" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "1c90055e02a244fc8d18e73b23daa0f1", + "name": "Apache: Workers slot with no current process", + "type": "DEPENDENT", + "key": "apache.workers.slot", + "delay": "0", + "history": "7d", + "description": "The number of slots with no current process.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.slot" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "ae21ea113e8840349aff81ab582d92b4", + "name": "Apache: Workers starting up", + "type": "DEPENDENT", + "key": "apache.workers.starting", + "delay": "0", + "history": "7d", + "description": "The number of workers in starting state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.starting" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "be1a05a6eab84b64ac4d51c966ea91e8", + "name": "Apache: Workers waiting for connection", + "type": "DEPENDENT", + "key": "apache.workers.waiting", + "delay": "0", + "history": "7d", + "description": "The number of workers in waiting state.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.waiting" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "1752b9bcf7b34abbaf105f5261638271", + "name": "Apache: Total workers busy", + "type": "DEPENDENT", + "key": "apache.workers_total.busy", + "delay": "0", + "history": "7d", + "description": "The total number of busy worker threads/processes.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.BusyWorkers" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "b1b1c86a12964ae2813c63481e464ec7", + "name": "Apache: Total workers idle", + "type": "DEPENDENT", + "key": "apache.workers_total.idle", + "delay": "0", + "history": "7d", + "description": "The total number of idle worker threads/processes.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.IdleWorkers" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "5039d11bc3964d6e9928a0a46dd0b402", + "name": "Apache: Service response time", + "type": "SIMPLE", + "key": "net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "ffbb564032c7462eb0bb9b4c2f700559", + "expression": "min(/Apache by HTTP/net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"],5m)>{$APACHE.RESPONSE_TIME.MAX.WARN}", + "name": "Apache: Service response time is too high", + "event_name": "Apache: Service response time is too high (over {$APACHE.RESPONSE_TIME.MAX.WARN}s for 5m)", + "priority": "WARNING", + "manual_close": "YES", + "dependencies": [ + { + "name": "Apache: Service is down", + "expression": "last(/Apache by HTTP/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "fb65918695094026838e2b9e4ca00402", + "name": "Apache: Service ping", + "type": "SIMPLE", + "key": "net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]", + "history": "7d", + "valuemap": { + "name": "Service state" + }, + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "10m" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "afe2fde35d054333adc8369a0f9af778", + "expression": "last(/Apache by HTTP/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0", + "name": "Apache: Service is down", + "priority": "AVERAGE", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "eee8abd3174d426092e8bca9b3ba982e", + "name": "Event MPM discovery", + "type": "DEPENDENT", + "key": "apache.mpm.event.discovery", + "delay": "0", + "description": "The discovery of additional metrics if the event Multi-Processing Module (MPM) is used.\nFor more details see [Apache MPM event](https://httpd.apache.org/docs/current/mod/event.html).", + "item_prototypes": [ + { + "uuid": "f52700379f9a4ee8b378a2eb9caea070", + "name": "Apache: Bytes per request", + "type": "DEPENDENT", + "key": "apache.bytes[per_request{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "The average number of client requests per second.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.BytesPerReq" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "062d7c941f0c468d8b63fa76ae0610f6", + "name": "Apache: Connections async closing", + "type": "DEPENDENT", + "key": "apache.connections[async_closing{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of asynchronous connections in closing state (applicable only to the event MPM).", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsAsyncClosing" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "6cb8b255ad8343a48e622912bc298366", + "name": "Apache: Connections async keepalive", + "type": "DEPENDENT", + "key": "apache.connections[async_keep_alive{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of asynchronous connections in keepalive state (applicable only to the event MPM).", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsAsyncKeepAlive" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "997b3452aac24ad6afbad775d649c727", + "name": "Apache: Connections async writing", + "type": "DEPENDENT", + "key": "apache.connections[async_writing{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of asynchronous connections in writing state (applicable only to the event MPM).", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsAsyncWriting" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "31cb044eed904ca19150921fe36f3285", + "name": "Apache: Connections total", + "type": "DEPENDENT", + "key": "apache.connections[total{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of total connections.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsTotal" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "34555340f3ad4b878504df188f54a9c9", + "name": "Apache: Number of async processes", + "type": "DEPENDENT", + "key": "apache.process[num{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of asynchronous processes.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Processes" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "066b53ed2244414ca3090498eb035c27", + "name": "Apache: Current async connections{#SINGLETON}", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Apache by HTTP", + "key": "apache.connections[async_closing{#SINGLETON}]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Apache by HTTP", + "key": "apache.connections[async_keep_alive{#SINGLETON}]" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "Apache by HTTP", + "key": "apache.connections[async_writing{#SINGLETON}]" + } + }, + { + "sortorder": "3", + "drawtype": "BOLD_LINE", + "color": "F7941D", + "item": { + "host": "Apache by HTTP", + "key": "apache.connections[total{#SINGLETON}]" + } + } + ] + }, + { + "uuid": "dbaa0c2468cc40fca977fb382d19cb78", + "name": "Apache: Current async processes{#SINGLETON}", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "199C0D", + "item": { + "host": "Apache by HTTP", + "key": "apache.process[num{#SINGLETON}]" + } + } + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(JSON.parse(value).ServerMPM === 'event'\n ? [{'{#SINGLETON}': ''}] : []);" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "3h" + ] + } + ] + } + ], + "tags": [ + { + "tag": "class", + "value": "software" + }, + { + "tag": "target", + "value": "apache" + } + ], + "macros": [ + { + "macro": "{$APACHE.RESPONSE_TIME.MAX.WARN}", + "value": "10", + "description": "The maximum Apache response time expressed in seconds for a trigger expression." + }, + { + "macro": "{$APACHE.STATUS.PATH}", + "value": "server-status?auto", + "description": "The URL path." + }, + { + "macro": "{$APACHE.STATUS.PORT}", + "value": "80", + "description": "The port of the Apache status page." + }, + { + "macro": "{$APACHE.STATUS.SCHEME}", + "value": "http", + "description": "The request scheme, which may be either HTTP or HTTPS." + } + ], + "dashboards": [ + { + "uuid": "a328c9e713424465a8e1adec7322b0dc", + "name": "Apache performance", + "pages": [ + { + "name": "General", + "widgets": [ + { + "type": "GRAPH_CLASSIC", + "width": "24", + "height": "7", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache by HTTP", + "name": "Apache: Worker states" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "y": "7", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache by HTTP", + "name": "Apache: Requests per second" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Apache by HTTP", + "name": "Apache: Current async connections{#SINGLETON}" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "12", + "y": "7", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache by HTTP", + "name": "Apache: Workers total" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "x": "12", + "y": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Apache by HTTP", + "name": "Apache: Current async processes{#SINGLETON}" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "a5d1f911fb264bd4bc087ea582626d7f", + "name": "Service state", + "mappings": [ + { + "value": "0", + "newvalue": "Down" + }, + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "a3998992f7504a12826e3c4d592836b5", + "name": "Apache: Requests per second", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "199C0D", + "item": { + "host": "Apache by HTTP", + "key": "apache.requests.rate" + } + } + ] + }, + { + "uuid": "1629062b5cd74b67af9a60226a79f8f1", + "name": "Apache: Worker states", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.dnslookup" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.cleanup" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.logging" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.reading" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.sending" + } + }, + { + "sortorder": "5", + "color": "6C59DC", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.starting" + } + }, + { + "sortorder": "6", + "color": "C7A72D", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.closing" + } + }, + { + "sortorder": "7", + "color": "BA2A5D", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.finishing" + } + }, + { + "sortorder": "8", + "color": "F230E0", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.keepalive" + } + }, + { + "sortorder": "9", + "color": "5CCD18", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.slot" + } + }, + { + "sortorder": "10", + "color": "BB2A02", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers.waiting" + } + } + ] + }, + { + "uuid": "78e59f1b5eb747019f92921ac5ef48b0", + "name": "Apache: Workers total", + "type": "STACKED", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers_total.busy" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Apache by HTTP", + "key": "apache.workers_total.idle" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.0/linux-zabbix-template.json b/zabbix-templates/6.0/linux-zabbix-template.json new file mode 100644 index 0000000..0c250f9 --- /dev/null +++ b/zabbix-templates/6.0/linux-zabbix-template.json @@ -0,0 +1,3130 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-20T09:38:09Z", + "groups": [ + { + "uuid": "846977d1dfed4968bc5f8bdb363285bc", + "name": "Templates/Operating systems" + } + ], + "templates": [ + { + "uuid": "f8f7908280354f2abeed07dc788c3747", + "template": "Linux by Zabbix agent", + "name": "Linux by Zabbix agent", + "description": "Official Linux template. Requires agent of Zabbix 6.0 or newer.\n \nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux\n\nGenerated by official Zabbix template tool \"Templator\"", + "groups": [ + { + "name": "Templates/Operating systems" + } + ], + "items": [ + { + "uuid": "df561a0cece94760a78704edf7da7326", + "name": "Linux: 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": "f94f9f4699e94c369e6c98b2a2f485ce", + "name": "Linux: 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 availability check.", + "valuemap": { + "name": "Zabbix agent ping status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "27c42cf180b44632b5d9b8b5788165b3", + "name": "Linux: 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": "ef386d03ff2c42ffa236acd5215ad547", + "name": "Linux: Maximum number of open file descriptors", + "key": "kernel.maxfiles", + "delay": "1h", + "history": "7d", + "description": "It could be increased by using `sysctl` utility or modifying the file `/etc/sysctl.conf`.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "b9bdcf42f54a409a9a9a616dbd0eaed2", + "expression": "last(/Linux by Zabbix agent/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN}", + "name": "Linux: Configured max number of open filedescriptors is too low", + "event_name": "Linux: Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})", + "priority": "INFO", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "678d70c041954ac8982fb5118b49f6e7", + "name": "Linux: Maximum number of processes", + "key": "kernel.maxproc", + "delay": "1h", + "history": "7d", + "description": "It could be increased by using `sysctl` utility or modifying the file `/etc/sysctl.conf`.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "8cf253ca3eea4109a90443f9cb76fc5c", + "expression": "last(/Linux by Zabbix agent/kernel.maxproc)<{$KERNEL.MAXPROC.MIN}", + "name": "Linux: Configured max number of processes is too low", + "event_name": "Linux: Configured max number of processes is too low (< {$KERNEL.MAXPROC.MIN})", + "priority": "INFO", + "dependencies": [ + { + "name": "Linux: Getting closer to process limit", + "expression": "last(/Linux by Zabbix agent/proc.num)/last(/Linux by Zabbix agent/kernel.maxproc)*100>80" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "ab7d0471092544a6a950184d1bac906d", + "name": "Linux: Number of processes", + "key": "proc.num", + "history": "7d", + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "b2637293884d40108f41b11767dd5be0", + "name": "Linux: Number of running processes", + "key": "proc.num[,,run]", + "history": "7d", + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "27cb0f66bb624146acfdd81b58f108a3", + "name": "Linux: System boot time", + "key": "system.boottime", + "delay": "15m", + "history": "7d", + "units": "unixtime", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "5d186a46867b4eaaafd6396d3239dd3b", + "name": "Linux: Interrupts per second", + "key": "system.cpu.intr", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "48528aa936a04c8189375a6eae4033da", + "name": "Linux: Load average (1m avg)", + "key": "system.cpu.load[all,avg1]", + "history": "7d", + "value_type": "FLOAT", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "953beb580df8418cb88b667b9dd37259", + "name": "Linux: Load average (5m avg)", + "key": "system.cpu.load[all,avg5]", + "history": "7d", + "value_type": "FLOAT", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "5716000e38e24dae8ead4ed98ede024b", + "name": "Linux: Load average (15m avg)", + "key": "system.cpu.load[all,avg15]", + "history": "7d", + "value_type": "FLOAT", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "f72e115544eb4079b09fec8c3539241c", + "name": "Linux: Number of CPUs", + "key": "system.cpu.num", + "history": "7d", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "73e85aa10a704fc7950d2d077f0c54ee", + "name": "Linux: Context switches per second", + "key": "system.cpu.switches", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "ca4235ec7607469cb0124a6253d3c489", + "name": "Linux: CPU utilization", + "type": "DEPENDENT", + "key": "system.cpu.util", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The CPU utilization expressed in %.", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return (100 - value)" + ] + } + ], + "master_item": { + "key": "system.cpu.util[,idle]" + }, + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ], + "triggers": [ + { + "uuid": "b4e904559b694df0ad45bcce7930c3a6", + "expression": "min(/Linux by Zabbix agent/system.cpu.util,5m)>{$CPU.UTIL.CRIT}", + "name": "Linux: High CPU utilization", + "event_name": "Linux: High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)", + "opdata": "Current utilization: {ITEM.LASTVALUE1}", + "priority": "WARNING", + "description": "The CPU utilization is too high. The system might be slow to respond.", + "dependencies": [ + { + "name": "Linux: Load average is too high", + "expression": "min(/Linux by Zabbix agent/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}\nand last(/Linux by Zabbix agent/system.cpu.load[all,avg5])>0\nand last(/Linux by Zabbix agent/system.cpu.load[all,avg15])>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "69b187838fb74f319e47c2ff4f99ef54", + "name": "Linux: CPU guest time", + "key": "system.cpu.util[,guest]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "Guest time - the time spent on running a virtual CPU for a guest operating system.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "a2b07497f2f343a99d26ad77e65bb54f", + "name": "Linux: CPU guest nice time", + "key": "system.cpu.util[,guest_nice]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "7aad6d159baa4a24901847144f0d231b", + "name": "Linux: CPU idle time", + "key": "system.cpu.util[,idle]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent doing nothing.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "cc4bc7693ae84f9bb18cee38d0814195", + "name": "Linux: CPU interrupt time", + "key": "system.cpu.util[,interrupt]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of time the CPU has been servicing hardware interrupts.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "5df67d9162cc437585990cc8708be894", + "name": "Linux: CPU iowait time", + "key": "system.cpu.util[,iowait]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of time the CPU has been waiting for I/O to complete.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "8ee6e54c86ba44ab88bb9e83c632c1ed", + "name": "Linux: CPU nice time", + "key": "system.cpu.util[,nice]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent running users' processes that have been niced.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "a949a36004a449c58bef0cdc9d3fafd6", + "name": "Linux: CPU softirq time", + "key": "system.cpu.util[,softirq]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of time the CPU has been servicing software interrupts.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "3161dbd18e874e69b729c8e903cf7390", + "name": "Linux: CPU steal time", + "key": "system.cpu.util[,steal]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of \"stolen\" CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "d93097ed5ce74d35b6041ef2b5ba18e8", + "name": "Linux: CPU system time", + "key": "system.cpu.util[,system]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent running the kernel and its processes.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "57f9e2e34fab41e18e2bc93e786c92c6", + "name": "Linux: CPU user time", + "key": "system.cpu.util[,user]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent running users' processes that are not niced.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "207341f390134e37ad431e2823666eb9", + "name": "Linux: System name", + "key": "system.hostname", + "delay": "1h", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The host name of the system.", + "inventory_link": "NAME", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "12h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "371a12f95a26438d8da659c84364631b", + "expression": "change(/Linux by Zabbix agent/system.hostname) and length(last(/Linux by Zabbix agent/system.hostname))>0", + "name": "Linux: System name has changed", + "event_name": "Linux: System name has changed (new name: {ITEM.VALUE})", + "priority": "INFO", + "description": "The name of the system has changed. Acknowledge to close the problem manually.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + }, + { + "tag": "scope", + "value": "security" + } + ] + } + ] + }, + { + "uuid": "6072902361404672a444841c786875e6", + "name": "Linux: System local time", + "key": "system.localtime", + "history": "7d", + "units": "unixtime", + "description": "The local system time of the host.", + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "fb77b6ac381c4b5289584bd91e7da7d5", + "expression": "fuzzytime(/Linux by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MAX})=0", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "fuzzytime(/Linux by Zabbix agent/system.localtime,{$SYSTEM.FUZZYTIME.MIN})=1", + "name": "Linux: System time is out of sync", + "event_name": "Linux: System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX})", + "priority": "WARNING", + "description": "The host's system time is different from Zabbix server time.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "fd21580a151246b0a340bf924c326aa8", + "name": "Linux: Operating system architecture", + "key": "system.sw.arch", + "delay": "1h", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The architecture of the operating system.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "os" + } + ] + }, + { + "uuid": "5e4c3d14634843e9b7b182e8fc08efbe", + "name": "Linux: Operating system", + "key": "system.sw.os", + "delay": "1h", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "inventory_link": "OS", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "os" + } + ], + "triggers": [ + { + "uuid": "b1998f98c06b49dd8d71e1c6df409371", + "expression": "change(/Linux by Zabbix agent/system.sw.os) and length(last(/Linux by Zabbix agent/system.sw.os))>0", + "name": "Linux: Operating system description has changed", + "priority": "INFO", + "description": "The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Acknowledge to close the problem manually.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Linux: System name has changed", + "expression": "change(/Linux by Zabbix agent/system.hostname) and length(last(/Linux by Zabbix agent/system.hostname))>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "58818005e76d46dda14d6592f601ab00", + "name": "Linux: Software installed", + "key": "system.sw.packages", + "delay": "1h", + "history": "7d", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "os" + } + ] + }, + { + "uuid": "160b82c121b147cbbf18c34dbb01d3ce", + "name": "Linux: Free swap space", + "key": "system.swap.size[,free]", + "history": "7d", + "units": "B", + "description": "The free space of the swap volume/file expressed in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "storage" + } + ] + }, + { + "uuid": "ca423242172f4b20ba47c26f4a61aee7", + "name": "Linux: Free swap space in %", + "key": "system.swap.size[,pfree]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The free space of the swap volume/file expressed in %.", + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "storage" + } + ] + }, + { + "uuid": "102c81b5523c4be0b4beae3cb88ebde1", + "name": "Linux: Total swap space", + "key": "system.swap.size[,total]", + "history": "7d", + "units": "B", + "description": "The total space of the swap volume/file expressed in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "storage" + } + ] + }, + { + "uuid": "fc6898682f904c57ba28bcb3748b237f", + "name": "Linux: System description", + "key": "system.uname", + "delay": "15m", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The information as normally returned by `uname -a`.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "12h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "8537f6c6ac6b438c80caf227946df891", + "name": "Linux: System uptime", + "key": "system.uptime", + "delay": "30s", + "history": "7d", + "trends": "0", + "units": "uptime", + "description": "The system uptime expressed in the following format: \"N days, hh:mm:ss\".", + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "1dbab80d7b6847e5b5a676cffba0fd1d", + "expression": "last(/Linux by Zabbix agent/system.uptime)<10m", + "name": "Linux: {HOST.NAME} has been restarted", + "event_name": "Linux: {HOST.NAME} has been restarted (uptime < 10m)", + "priority": "WARNING", + "description": "The host uptime is less than 10 minutes.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "88056b3d2e424d5aba7cabcd4b043c9e", + "name": "Linux: Number of logged in users", + "key": "system.users.num", + "history": "7d", + "description": "The number of users who are currently logged in.", + "tags": [ + { + "tag": "component", + "value": "environment" + } + ] + }, + { + "uuid": "3b93d3590df24a46b29f6eb06f5e2446", + "name": "Linux: Checksum of /etc/passwd", + "key": "vfs.file.cksum[/etc/passwd,sha256]", + "delay": "15m", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "security" + } + ], + "triggers": [ + { + "uuid": "3a764881727b4e7eb01e137ccfc968a2", + "expression": "last(/Linux by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux by Zabbix agent/vfs.file.cksum[/etc/passwd,sha256],#2)", + "name": "Linux: /etc/passwd has been changed", + "priority": "INFO", + "manual_close": "YES", + "dependencies": [ + { + "name": "Linux: Operating system description has changed", + "expression": "change(/Linux by Zabbix agent/system.sw.os) and length(last(/Linux by Zabbix agent/system.sw.os))>0" + }, + { + "name": "Linux: System name has changed", + "expression": "change(/Linux by Zabbix agent/system.hostname) and length(last(/Linux by Zabbix agent/system.hostname))>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "security" + } + ] + } + ] + }, + { + "uuid": "e811e6e2ae84461294e121f12e767b40", + "name": "Linux: Available memory", + "key": "vm.memory.size[available]", + "history": "7d", + "units": "B", + "description": "The available memory:\n- in Linux - available = free + buffers + cache;\n- on other platforms calculation may vary.\n\nSee also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "20779a4c43374e5f9bea2584e93b85ef", + "name": "Linux: Available memory in %", + "key": "vm.memory.size[pavailable]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The available memory as percentage of the total. See also Appendixes in Zabbix Documentation about parameters of the `vm.memory.size` item.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "d5c3541a7c0949ce812df1beb0732941", + "name": "Linux: Total memory", + "key": "vm.memory.size[total]", + "history": "7d", + "units": "B", + "description": "The total memory expressed in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "403cebed115441369e94d35d070ca7b8", + "name": "Linux: Memory utilization", + "type": "DEPENDENT", + "key": "vm.memory.utilization", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The percentage of used memory is calculated as `100-pavailable`.", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return (100-value);" + ] + } + ], + "master_item": { + "key": "vm.memory.size[pavailable]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ], + "triggers": [ + { + "uuid": "cfd395b1cde74ef18a5e5f840bd5142a", + "expression": "min(/Linux by Zabbix agent/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX}", + "name": "Linux: High memory utilization", + "event_name": "Linux: High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)", + "priority": "AVERAGE", + "description": "The system is running out of free memory.", + "dependencies": [ + { + "name": "Linux: Lack of available memory", + "expression": "max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "ca48c53be1bf46ae9dd2707158a55139", + "name": "Linux: 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": "93594214371b4dc88b41663cad8537f0", + "expression": "max(/Linux by Zabbix agent/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0", + "name": "Linux: Zabbix agent is not available", + "event_name": "Linux: Zabbix agent is not available (for {$AGENT.TIMEOUT})", + "priority": "AVERAGE", + "description": "For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "acfdea9c46ef48c68e6636f43b8f96a2", + "name": "Network interface discovery", + "key": "net.if.discovery", + "delay": "1h", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#IFNAME}", + "value": "{$NET.IF.IFNAME.MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#IFNAME}", + "value": "{$NET.IF.IFNAME.NOT_MATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + } + ] + }, + "description": "The discovery of network interfaces.", + "item_prototypes": [ + { + "uuid": "4d66608e190e4be7a438ea5d0d26e353", + "name": "Interface {#IFNAME}: Inbound packets discarded", + "key": "net.if.in[\"{#IFNAME}\",dropped]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "ed79960ca91f4e2ca45fed014a02c50b", + "name": "Interface {#IFNAME}: Inbound packets with errors", + "key": "net.if.in[\"{#IFNAME}\",errors]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "c9941a1f8d904309b581cae5ccc1660c", + "name": "Interface {#IFNAME}: Bits received", + "key": "net.if.in[\"{#IFNAME}\"]", + "delay": "3m", + "history": "7d", + "units": "bps", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "8" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "0795a375a41d46a2b5c89547061cec8e", + "name": "Interface {#IFNAME}: Outbound packets discarded", + "key": "net.if.out[\"{#IFNAME}\",dropped]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "f8e8bbc069414e928a5da9817f4599a5", + "name": "Interface {#IFNAME}: Outbound packets with errors", + "key": "net.if.out[\"{#IFNAME}\",errors]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "82897d99b0114c67b0f5b449c768c8e7", + "name": "Interface {#IFNAME}: Bits sent", + "key": "net.if.out[\"{#IFNAME}\"]", + "delay": "3m", + "history": "7d", + "units": "bps", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "8" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "3efd24ad36b04eb995cfeab82721c2fe", + "name": "Interface {#IFNAME}: Operational status", + "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"]", + "history": "7d", + "trends": "0", + "description": "Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt", + "valuemap": { + "name": "ifOperStatus" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var newvalue;\nswitch(value) {\n case \"unknown\":\n\tnewvalue = 0;\n\tbreak;\n case \"notpresent\":\n\tnewvalue = 1;\n\tbreak;\n case \"down\":\n\tnewvalue = 2;\n\tbreak;\n case \"lowerlayerdown\":\n\tnewvalue = 3;\n\tbreak;\n case \"testing\":\n\tnewvalue = 4;\n\tbreak;\n case \"dormant\":\n\tnewvalue = 5;\n\tbreak;\n case \"up\":\n\tnewvalue = 6;\n\tbreak; default:\n\tnewvalue = \"Problem parsing interface operstate in JS\";\n}\nreturn newvalue;" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ], + "trigger_prototypes": [ + { + "uuid": "4d7f18ca132340b885c0692464dc429f", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0", + "name": "Interface {#IFNAME}: Link down", + "opdata": "Current state: {ITEM.LASTVALUE1}", + "priority": "AVERAGE", + "description": "This trigger expression works as follows:\n1. It can be triggered if the operations status is down.\n2. `{$IFCONTROL:\"{#IFNAME}\"}=1` - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down.\n3. `{TEMPLATE_NAME:METRIC.diff()}=1` - the trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'eternal off' interfaces.)\n\nWARNING: if closed manually - it will not fire again on the next poll, because of .diff.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "f4c456e1f9ef4adbbd11f1ee17fa4d76", + "name": "Interface {#IFNAME}: Speed", + "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]", + "delay": "5m", + "history": "7d", + "trends": "0", + "units": "bps", + "description": "It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec.\nThis attribute is only valid for the interfaces that implement the ethtool `get_link_ksettings` method (mostly Ethernet).\n\nReference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net", + "preprocessing": [ + { + "type": "MULTIPLIER", + "parameters": [ + "1000000" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "d537e74070c74e4385ad241e8514dd3a", + "name": "Interface {#IFNAME}: Interface type", + "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"]", + "delay": "1h", + "history": "7d", + "trends": "0", + "description": "It indicates the interface protocol type as a decimal value.\nSee `include/uapi/linux/if_arp.h` for all possible values.\nReference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net", + "valuemap": { + "name": "Linux::Interface protocol types" + }, + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "2ffdc1d5a318492bb497facd263843bd", + "expression": "change(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])<0 and last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0\nand\n(last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"])=6 or last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"])=1)\nand\n(last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2)", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "(change(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0 and last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"],#2)>0) or\n(last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2)", + "name": "Interface {#IFNAME}: Ethernet has changed to lower speed than it was before", + "opdata": "Current reported speed: {ITEM.LASTVALUE1}", + "priority": "INFO", + "description": "This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge to close the problem manually.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Interface {#IFNAME}: Link down", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_expression": "last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "f64186d30b4e4c4281fce84349cbd646", + "expression": "(avg(/Linux by Zabbix agent/net.if.in[\"{#IFNAME}\"],15m)>({$IF.UTIL.MAX:\"{#IFNAME}\"}/100)*last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]) or\navg(/Linux by Zabbix agent/net.if.out[\"{#IFNAME}\"],15m)>({$IF.UTIL.MAX:\"{#IFNAME}\"}/100)*last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])) and\nlast(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "avg(/Linux by Zabbix agent/net.if.in[\"{#IFNAME}\"],15m)<(({$IF.UTIL.MAX:\"{#IFNAME}\"}-3)/100)*last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]) and\navg(/Linux by Zabbix agent/net.if.out[\"{#IFNAME}\"],15m)<(({$IF.UTIL.MAX:\"{#IFNAME}\"}-3)/100)*last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])", + "name": "Interface {#IFNAME}: High bandwidth usage", + "event_name": "Interface {#IFNAME}: High bandwidth usage (>{$IF.UTIL.MAX:\"{#IFNAME}\"}%)", + "opdata": "In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}", + "priority": "WARNING", + "description": "The utilization of the network interface is close to its estimated maximum bandwidth.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Interface {#IFNAME}: Link down", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_expression": "last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "ad50aecf8e7746b2a85f24507f1d511d", + "expression": "min(/Linux by Zabbix agent/net.if.in[\"{#IFNAME}\",errors],5m)>{$IF.ERRORS.WARN:\"{#IFNAME}\"}\nor min(/Linux by Zabbix agent/net.if.out[\"{#IFNAME}\",errors],5m)>{$IF.ERRORS.WARN:\"{#IFNAME}\"}", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "max(/Linux by Zabbix agent/net.if.in[\"{#IFNAME}\",errors],5m)<{$IF.ERRORS.WARN:\"{#IFNAME}\"}*0.8\nand max(/Linux by Zabbix agent/net.if.out[\"{#IFNAME}\",errors],5m)<{$IF.ERRORS.WARN:\"{#IFNAME}\"}*0.8", + "name": "Interface {#IFNAME}: High error rate", + "event_name": "Interface {#IFNAME}: High error rate (>{$IF.ERRORS.WARN:\"{#IFNAME}\"} for 5m)", + "opdata": "errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}", + "priority": "WARNING", + "description": "It recovers when it is below 80% of the `{$IF.ERRORS.WARN:\"{#IFNAME}\"}` threshold.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Interface {#IFNAME}: Link down", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_expression": "last(/Linux by Zabbix agent/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "50ced0f22d9d478eb4b639ef64e242ab", + "name": "Interface {#IFNAME}: Network traffic", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "net.if.in[\"{#IFNAME}\"]" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "net.if.out[\"{#IFNAME}\"]" + } + }, + { + "sortorder": "2", + "color": "00611C", + "yaxisside": "RIGHT", + "item": { + "host": "Linux by Zabbix agent", + "key": "net.if.out[\"{#IFNAME}\",errors]" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "yaxisside": "RIGHT", + "item": { + "host": "Linux by Zabbix agent", + "key": "net.if.in[\"{#IFNAME}\",errors]" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "yaxisside": "RIGHT", + "item": { + "host": "Linux by Zabbix agent", + "key": "net.if.out[\"{#IFNAME}\",dropped]" + } + }, + { + "sortorder": "5", + "color": "6C59DC", + "yaxisside": "RIGHT", + "item": { + "host": "Linux by Zabbix agent", + "key": "net.if.in[\"{#IFNAME}\",dropped]" + } + } + ] + } + ] + }, + { + "uuid": "2bbdc79f082d4c618e01bec625e9c90a", + "name": "Block devices discovery", + "key": "vfs.dev.discovery", + "delay": "1h", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#DEVNAME}", + "value": "{$VFS.DEV.DEVNAME.MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#DEVNAME}", + "value": "{$VFS.DEV.DEVNAME.NOT_MATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + }, + { + "macro": "{#DEVTYPE}", + "value": "disk", + "formulaid": "C" + } + ] + }, + "item_prototypes": [ + { + "uuid": "5e29abb8d56044f69426ed3594f8ac9f", + "name": "{#DEVNAME}: Disk average queue size (avgqu-sz)", + "type": "DEPENDENT", + "key": "vfs.dev.queue_size[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[10]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "9600208af80e4a6abe55bb5a2240ea8e", + "name": "{#DEVNAME}: Disk read request avg waiting time (r_await)", + "type": "CALCULATED", + "key": "vfs.dev.read.await[{#DEVNAME}]", + "history": "7d", + "value_type": "FLOAT", + "units": "!ms", + "params": "(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)", + "description": "This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "f4b982d8e7ee47adb34d74d817db43a6", + "name": "{#DEVNAME}: Disk read rate", + "type": "DEPENDENT", + "key": "vfs.dev.read.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "!r/s", + "description": "r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[0]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "877a3e892d9e489f98f2f16ea05bfdc2", + "name": "{#DEVNAME}: Disk read time (rate)", + "type": "DEPENDENT", + "key": "vfs.dev.read.time.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The rate of total read time counter; used in `r_await` calculation.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[3]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "4a3ee3166ee748e1855a2b02d44e9d62", + "name": "{#DEVNAME}: Disk utilization", + "type": "DEPENDENT", + "key": "vfs.dev.util[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "This item is the percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[9]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.1" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "5907708cf4854d48ae3ebf8f0bc41eef", + "name": "{#DEVNAME}: Disk write request avg waiting time (w_await)", + "type": "CALCULATED", + "key": "vfs.dev.write.await[{#DEVNAME}]", + "history": "7d", + "value_type": "FLOAT", + "units": "!ms", + "params": "(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)", + "description": "This formula contains two Boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "c4eb904dfddd4b0f8cdee4b2c477e213", + "name": "{#DEVNAME}: Disk write rate", + "type": "DEPENDENT", + "key": "vfs.dev.write.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "!w/s", + "description": "w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[4]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "e828495863304b219e24965f7b91e963", + "name": "{#DEVNAME}: Disk write time (rate)", + "type": "DEPENDENT", + "key": "vfs.dev.write.time.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The rate of total write time counter; used in `w_await` calculation.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[7]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "8309fd01a5864ad68866717d0fe67080", + "name": "{#DEVNAME}: Get stats", + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "description": "The contents of get `/sys/block/{#DEVNAME}/stat` to get the disk statistics.", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value.trim().split(/ +/));" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "raw" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "eb6230f786d04b658ce62c30a9309a34", + "expression": "min(/Linux by Zabbix agent/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:\"{#DEVNAME}\"} or min(/Linux by Zabbix agent/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:\"{#DEVNAME}\"}", + "name": "{#DEVNAME}: Disk read/write request responses are too high", + "event_name": "{#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:\"{#DEVNAME}\"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:\"{#DEVNAME}\"} ms for 15m)", + "priority": "WARNING", + "description": "This trigger might indicate the disk `{#DEVNAME}` saturation.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "5e9b35b27b90489390d397758fbfdf64", + "name": "{#DEVNAME}: Disk average waiting time", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.dev.read.await[{#DEVNAME}]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.dev.write.await[{#DEVNAME}]" + } + } + ] + }, + { + "uuid": "d436d6d5456c44f0a534bf1f681d5039", + "name": "{#DEVNAME}: Disk read/write rates", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.dev.read.rate[{#DEVNAME}]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.dev.write.rate[{#DEVNAME}]" + } + } + ] + }, + { + "uuid": "c42e4045e0974e89a306c57fb188c4fa", + "name": "{#DEVNAME}: Disk utilization and queue", + "graph_items": [ + { + "color": "199C0D", + "yaxisside": "RIGHT", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.dev.queue_size[{#DEVNAME}]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.dev.util[{#DEVNAME}]" + } + } + ] + } + ], + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ] + }, + { + "uuid": "7d090603037e4defb34ef74021d3adcd", + "name": "Mounted filesystem 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" + } + ] + }, + "description": "The discovery of mounted filesystems with different types.", + "item_prototypes": [ + { + "uuid": "4da7f08a979a46df8b8aeebb42a46207", + "name": "{#FSNAME}: Free inodes in %", + "key": "vfs.fs.inode[{#FSNAME},pfree]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ], + "trigger_prototypes": [ + { + "uuid": "115b2d37807f476faf6d02ef406acabd", + "expression": "min(/Linux by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}", + "name": "{#FSNAME}: Running out of free inodes", + "event_name": "{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}%)", + "opdata": "Free inodes: {ITEM.LASTVALUE1}", + "priority": "AVERAGE", + "description": "It may become impossible to write to a disk if there are no index nodes left.\nThe following error messages may be returned as symptoms, even though the free space is available:\n- 'No space left on device';\n- 'Disk is full'.", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "ea012c7295344ffe8c66f7ea54d81042", + "expression": "min(/Linux by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:\"{#FSNAME}\"}", + "name": "{#FSNAME}: Running out of free inodes", + "event_name": "{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:\"{#FSNAME}\"}%)", + "opdata": "Free inodes: {ITEM.LASTVALUE1}", + "priority": "WARNING", + "description": "It may become impossible to write to a disk if there are no index nodes left.\nThe following error messages may be returned as symptoms, even though the free space is available:\n- 'No space left on device';\n- 'Disk is full'.", + "dependencies": [ + { + "name": "{#FSNAME}: Running out of free inodes", + "expression": "min(/Linux by Zabbix agent/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}" + } + ], + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "61ffe6fcb9d94199aaeb5d568ab74a27", + "name": "{#FSNAME}: Space utilization", + "key": "vfs.fs.size[{#FSNAME},pused]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The space utilization expressed in % for {#FSNAME}.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ], + "trigger_prototypes": [ + { + "uuid": "9abccdfff8be4e14967ac917ca09afe1", + "expression": "last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}", + "name": "{#FSNAME}: Disk space is critically low", + "event_name": "{#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}%)", + "opdata": "Space used: {ITEM.LASTVALUE1}", + "priority": "AVERAGE", + "description": "The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}` limit.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "capacity" + } + ] + }, + { + "uuid": "d6d348ea500c428da6ba718816c4b048", + "expression": "last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"}", + "name": "{#FSNAME}: Disk space is low", + "event_name": "{#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"}%)", + "opdata": "Space used: {ITEM.LASTVALUE1}", + "priority": "WARNING", + "description": "The volume's space usage exceeds the `{$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"}` limit.", + "manual_close": "YES", + "dependencies": [ + { + "name": "{#FSNAME}: Disk space is critically low", + "expression": "last(/Linux by Zabbix agent/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "capacity" + } + ] + } + ] + }, + { + "uuid": "a6d90e0bc5ef4fb7acee8682687c485f", + "name": "{#FSNAME}: Total space", + "key": "vfs.fs.size[{#FSNAME},total]", + "history": "7d", + "units": "B", + "description": "Total space in bytes", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ] + }, + { + "uuid": "efee06a191aa4e5c8faa2762988b6955", + "name": "{#FSNAME}: Used space", + "key": "vfs.fs.size[{#FSNAME},used]", + "history": "7d", + "units": "B", + "description": "Used storage in bytes", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "1e0889c551584013acbb97c84ae89d1c", + "name": "{#FSNAME}: Disk space usage", + "width": "600", + "height": "340", + "type": "PIE", + "show_3d": "YES", + "graph_items": [ + { + "color": "969696", + "calc_fnc": "LAST", + "type": "GRAPH_SUM", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.fs.size[{#FSNAME},total]" + } + }, + { + "sortorder": "1", + "color": "C80000", + "calc_fnc": "LAST", + "item": { + "host": "Linux by Zabbix agent", + "key": "vfs.fs.size[{#FSNAME},used]" + } + } + ] + } + ], + "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": "linux" + } + ], + "macros": [ + { + "macro": "{$AGENT.TIMEOUT}", + "value": "3m", + "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)." + }, + { + "macro": "{$CPU.UTIL.CRIT}", + "value": "90" + }, + { + "macro": "{$IF.ERRORS.WARN}", + "value": "2" + }, + { + "macro": "{$IF.UTIL.MAX}", + "value": "90", + "description": "This macro is used as a threshold in the interface utilization trigger." + }, + { + "macro": "{$IFCONTROL}", + "value": "1" + }, + { + "macro": "{$KERNEL.MAXFILES.MIN}", + "value": "256" + }, + { + "macro": "{$KERNEL.MAXPROC.MIN}", + "value": "1024" + }, + { + "macro": "{$LOAD_AVG_PER_CPU.MAX.WARN}", + "value": "1.5", + "description": "The CPU load per core is considered sustainable. If necessary, it can be tuned." + }, + { + "macro": "{$MEMORY.AVAILABLE.MIN}", + "value": "20M", + "description": "This macro is used as a threshold in the memory available trigger." + }, + { + "macro": "{$MEMORY.UTIL.MAX}", + "value": "90", + "description": "This macro is used as a threshold in the memory utilization trigger." + }, + { + "macro": "{$NET.IF.IFNAME.MATCHES}", + "value": "^.*$" + }, + { + "macro": "{$NET.IF.IFNAME.NOT_MATCHES}", + "value": "(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})", + "description": "It filters out `loopbacks`, `nulls`, `docker veth` links and `docker0 bridge` by default." + }, + { + "macro": "{$SWAP.PFREE.MIN.WARN}", + "value": "50" + }, + { + "macro": "{$SYSTEM.FUZZYTIME.MAX}", + "value": "60s", + "description": "The upper threshold for difference of system time." + }, + { + "macro": "{$SYSTEM.FUZZYTIME.MIN}", + "value": "10s", + "description": "The lower threshold for difference of system time. Used in recovery expression to avoid trigger flapping." + }, + { + "macro": "{$VFS.DEV.DEVNAME.MATCHES}", + "value": ".+", + "description": "This macro is used for a discovery of block devices. It can be overridden on host level or its linked template level." + }, + { + "macro": "{$VFS.DEV.DEVNAME.NOT_MATCHES}", + "value": "^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)", + "description": "This macro is used for a discovery of block devices. It can be overridden on host level or its linked template level." + }, + { + "macro": "{$VFS.DEV.READ.AWAIT.WARN}", + "value": "20", + "description": "The average response time (in ms) of disk read before the trigger would fire." + }, + { + "macro": "{$VFS.DEV.WRITE.AWAIT.WARN}", + "value": "20", + "description": "The average response time (in ms) of disk write before the trigger would fire." + }, + { + "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." + }, + { + "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." + }, + { + "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." + }, + { + "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." + }, + { + "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": "14aa11c326a54ec390d4c209d30cc741", + "name": "Network interfaces", + "pages": [ + { + "name": "Overview", + "widgets": [ + { + "type": "GRAPH_PROTOTYPE", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "Interface {#IFNAME}: Network traffic" + } + } + ] + } + ] + } + ] + }, + { + "uuid": "e9ca2f8e715f428b8edc0129aa0c79de", + "name": "System performance", + "pages": [ + { + "widgets": [ + { + "type": "GRAPH_CLASSIC", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "Linux: System load" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "Linux: Memory usage" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "10", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "{#FSNAME}: Disk space usage" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "15", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "{#DEVNAME}: Disk read/write rates" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "20", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "{#DEVNAME}: Disk average waiting time" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "25", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "{#DEVNAME}: Disk utilization and queue" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "30", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "Interface {#IFNAME}: Network traffic" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "Linux: CPU usage" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux by Zabbix agent", + "name": "Linux: Swap usage" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "8c048c6cca8248f2860c208e8db0f59e", + "name": "ifOperStatus", + "mappings": [ + { + "value": "0", + "newvalue": "unknown" + }, + { + "value": "1", + "newvalue": "notpresent" + }, + { + "value": "2", + "newvalue": "down" + }, + { + "value": "3", + "newvalue": "lowerlayerdown" + }, + { + "value": "4", + "newvalue": "testing" + }, + { + "value": "5", + "newvalue": "dormant" + }, + { + "value": "6", + "newvalue": "up" + } + ] + }, + { + "uuid": "044df261808442a8af9e5cda0acaa6a5", + "name": "Linux::Interface protocol types", + "mappings": [ + { + "value": "0", + "newvalue": "from KA9Q: NET/ROM pseudo" + }, + { + "value": "1", + "newvalue": "Ethernet" + }, + { + "value": "2", + "newvalue": "Experimental Ethernet" + }, + { + "value": "3", + "newvalue": "AX.25 Level 2" + }, + { + "value": "4", + "newvalue": "PROnet token ring" + }, + { + "value": "5", + "newvalue": "Chaosnet" + }, + { + "value": "6", + "newvalue": "IEEE 802.2 Ethernet/TR/TB" + }, + { + "value": "7", + "newvalue": "ARCnet" + }, + { + "value": "8", + "newvalue": "APPLEtalk" + }, + { + "value": "15", + "newvalue": "Frame Relay DLCI" + }, + { + "value": "19", + "newvalue": "ATM" + }, + { + "value": "23", + "newvalue": "Metricom STRIP (new IANA id)" + }, + { + "value": "24", + "newvalue": "IEEE 1394 IPv4 - RFC 2734" + }, + { + "value": "27", + "newvalue": "EUI-64" + }, + { + "value": "32", + "newvalue": "InfiniBand" + }, + { + "value": "256", + "newvalue": "ARPHRD_SLIP" + }, + { + "value": "257", + "newvalue": "ARPHRD_CSLIP" + }, + { + "value": "258", + "newvalue": "ARPHRD_SLIP6" + }, + { + "value": "259", + "newvalue": "ARPHRD_CSLIP6" + }, + { + "value": "260", + "newvalue": "Notional KISS type" + }, + { + "value": "264", + "newvalue": "ARPHRD_ADAPT" + }, + { + "value": "270", + "newvalue": "ARPHRD_ROSE" + }, + { + "value": "271", + "newvalue": "CCITT X.25" + }, + { + "value": "272", + "newvalue": "Boards with X.25 in firmware" + }, + { + "value": "280", + "newvalue": "Controller Area Network" + }, + { + "value": "512", + "newvalue": "ARPHRD_PPP" + }, + { + "value": "513", + "newvalue": "Cisco HDLC" + }, + { + "value": "516", + "newvalue": "LAPB" + }, + { + "value": "517", + "newvalue": "Digital's DDCMP protocol" + }, + { + "value": "518", + "newvalue": "Raw HDLC" + }, + { + "value": "519", + "newvalue": "Raw IP" + }, + { + "value": "768", + "newvalue": "IPIP tunnel" + }, + { + "value": "769", + "newvalue": "IP6IP6 tunnel" + }, + { + "value": "770", + "newvalue": "Frame Relay Access Device" + }, + { + "value": "771", + "newvalue": "SKIP vif" + }, + { + "value": "772", + "newvalue": "Loopback device" + }, + { + "value": "773", + "newvalue": "Localtalk device" + }, + { + "value": "774", + "newvalue": "Fiber Distributed Data Interface" + }, + { + "value": "775", + "newvalue": "AP1000 BIF" + }, + { + "value": "776", + "newvalue": "sit0 device - IPv6-in-IPv4" + }, + { + "value": "777", + "newvalue": "IP over DDP tunneller" + }, + { + "value": "778", + "newvalue": "GRE over IP" + }, + { + "value": "779", + "newvalue": "PIMSM register interface" + }, + { + "value": "780", + "newvalue": "High Performance Parallel Interface" + }, + { + "value": "781", + "newvalue": "Nexus 64Mbps Ash" + }, + { + "value": "782", + "newvalue": "Acorn Econet" + }, + { + "value": "783", + "newvalue": "Linux-IrDA" + }, + { + "value": "784", + "newvalue": "Point to point fibrechannel" + }, + { + "value": "785", + "newvalue": "Fibrechannel arbitrated loop" + }, + { + "value": "786", + "newvalue": "Fibrechannel public loop" + }, + { + "value": "787", + "newvalue": "Fibrechannel fabric" + }, + { + "value": "800", + "newvalue": "Magic type ident for TR" + }, + { + "value": "801", + "newvalue": "IEEE 802.11" + }, + { + "value": "802", + "newvalue": "IEEE 802.11 + Prism2 header" + }, + { + "value": "803", + "newvalue": "IEEE 802.11 + radiotap header" + }, + { + "value": "804", + "newvalue": "ARPHRD_IEEE802154" + }, + { + "value": "805", + "newvalue": "IEEE 802.15.4 network monitor" + }, + { + "value": "820", + "newvalue": "PhoNet media type" + }, + { + "value": "821", + "newvalue": "PhoNet pipe header" + }, + { + "value": "822", + "newvalue": "CAIF media type" + }, + { + "value": "823", + "newvalue": "GRE over IPv6" + }, + { + "value": "824", + "newvalue": "Netlink header" + }, + { + "value": "825", + "newvalue": "IPv6 over LoWPAN" + }, + { + "value": "826", + "newvalue": "Vsock monitor header" + } + ] + }, + { + "uuid": "5488e5d78d704b78aee60c60414ce0c3", + "name": "zabbix.host.available", + "mappings": [ + { + "value": "0", + "newvalue": "not available" + }, + { + "value": "1", + "newvalue": "available" + }, + { + "value": "2", + "newvalue": "unknown" + } + ] + }, + { + "uuid": "64faba3a883241a88da8833970ac3ab0", + "name": "Zabbix agent ping status", + "mappings": [ + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "triggers": [ + { + "uuid": "ae5269e17d434927bfd6edc09a9a1f4d", + "expression": "last(/Linux by Zabbix agent/proc.num)/last(/Linux by Zabbix agent/kernel.maxproc)*100>80", + "name": "Linux: Getting closer to process limit", + "event_name": "Linux: Getting closer to process limit (over 80% used)", + "opdata": "{ITEM.LASTVALUE1} active, {ITEM.LASTVALUE2} limit.", + "priority": "WARNING", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "f49fc01c5ac945d59455563bdbcc6469", + "expression": "max(/Linux by Zabbix agent/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux by Zabbix agent/system.swap.size[,total])>0", + "name": "Linux: High swap space usage", + "event_name": "Linux: High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)", + "opdata": "Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}", + "priority": "WARNING", + "description": "If there is no swap configured, this trigger is ignored.", + "dependencies": [ + { + "name": "Linux: High memory utilization", + "expression": "min(/Linux by Zabbix agent/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX}" + }, + { + "name": "Linux: Lack of available memory", + "expression": "max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "capacity" + } + ] + }, + { + "uuid": "686470cef97f48f6b017e9fc7a078afe", + "expression": "max(/Linux by Zabbix agent/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux by Zabbix agent/vm.memory.size[total])>0", + "name": "Linux: Lack of available memory", + "event_name": "Linux: Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})", + "opdata": "Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}", + "priority": "AVERAGE", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "695f0c352377409d95aca3fe76d1cae2", + "expression": "min(/Linux by Zabbix agent/system.cpu.load[all,avg1],5m)/last(/Linux by Zabbix agent/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}\nand last(/Linux by Zabbix agent/system.cpu.load[all,avg5])>0\nand last(/Linux by Zabbix agent/system.cpu.load[all,avg15])>0", + "name": "Linux: Load average is too high", + "event_name": "Linux: Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)", + "opdata": "Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}", + "priority": "AVERAGE", + "description": "The load average per CPU is too high. The system may be slow to respond.", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graphs": [ + { + "uuid": "4a72646168d545c398c92e09c975a966", + "name": "Linux: CPU jumps", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.switches" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.intr" + } + } + ] + }, + { + "uuid": "f217c30162b24c9190785fad1ec83b73", + "name": "Linux: CPU usage", + "type": "STACKED", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,system]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,user]" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,nice]" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,iowait]" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,steal]" + } + }, + { + "sortorder": "5", + "color": "6C59DC", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,interrupt]" + } + }, + { + "sortorder": "6", + "color": "C7A72D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,softirq]" + } + }, + { + "sortorder": "7", + "color": "BA2A5D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,guest]" + } + }, + { + "sortorder": "8", + "color": "F230E0", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util[,guest_nice]" + } + } + ] + }, + { + "uuid": "668ae470ea33444bb40e3b83b97659c3", + "name": "Linux: CPU utilization", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.util" + } + } + ] + }, + { + "uuid": "f260a63bc3b04c3b80b47f83bb05ed9c", + "name": "Linux: Memory usage", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "vm.memory.size[total]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "vm.memory.size[available]" + } + } + ] + }, + { + "uuid": "bac7a8fb7e014696b54d262bf40e5b12", + "name": "Linux: Memory utilization", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "vm.memory.utilization" + } + } + ] + }, + { + "uuid": "fa49531c9c3d4087b2205bed6ed0469f", + "name": "Linux: Processes", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "proc.num" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "proc.num[,,run]" + } + } + ] + }, + { + "uuid": "1ca6e2d883114853bd402110c3fd211e", + "name": "Linux: Swap usage", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.swap.size[,free]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.swap.size[,total]" + } + } + ] + }, + { + "uuid": "1b8cc9470a5040d79090a3e5dfcb0a76", + "name": "Linux: System load", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.load[all,avg1]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.load[all,avg5]" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.load[all,avg15]" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "yaxisside": "RIGHT", + "item": { + "host": "Linux by Zabbix agent", + "key": "system.cpu.num" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.0/lxd-container-zabbix-template.json b/zabbix-templates/6.0/lxd-container-zabbix-template.json new file mode 100644 index 0000000..ec154e0 --- /dev/null +++ b/zabbix-templates/6.0/lxd-container-zabbix-template.json @@ -0,0 +1,1026 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-19T14:50:53Z", + "groups": [ + { + "uuid": "18fce3c341e74778ba11126e46a87ebd", + "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\")." + } + ] + } + ], + "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]" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.0/mysql-mariadb-zabbix-template.json b/zabbix-templates/6.0/mysql-mariadb-zabbix-template.json new file mode 100644 index 0000000..cd7cd52 --- /dev/null +++ b/zabbix-templates/6.0/mysql-mariadb-zabbix-template.json @@ -0,0 +1,2642 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-19T14:48:54Z", + "groups": [ + { + "uuid": "748ad4d098d447d492bb935c907f652f", + "name": "Templates/Databases" + } + ], + "templates": [ + { + "uuid": "f255e3fc32124b55b2a17ef3c961e5f5", + "template": "MySQL by Zabbix agent", + "name": "MySQL by Zabbix agent", + "description": "Requirements for template operation:\n\n1. Install Zabbix agent and MySQL client. If necessary, add the path to the 'mysql' and 'mysqladmin' utilities to the global environment variable PATH.\n\n2. Copy the 'template_db_mysql.conf' file with user parameters into folder with Zabbix agent configuration (/etc/zabbix/zabbix_agentd.d/ by default). Don't forget to restart Zabbix agent.\n\n3. Create the MySQL user that will be used for monitoring ('' at your discretion). For example:\n\nCREATE USER 'zbx_monitor'@'%' IDENTIFIED BY '';\nGRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%';\n\nFor more information, please see MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/grant.html).\n\n4. Create '.my.cnf' configuration file in the home directory of Zabbix agent for Linux distributions (/var/lib/zabbix by default) or 'my.cnf' in c:\\ for Windows. For example:\n\n[client]\nprotocol=tcp\nuser='zbx_monitor'\npassword=''\n\nFor more information, please see MySQL documentation (https://dev.mysql.com/doc/refman/8.0/en/option-files.html).\n\nNOTE: Linux distributions that use SELinux may require additional steps for access configuration.\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql\n\nGenerated by official Zabbix template tool \"Templator\"", + "groups": [ + { + "name": "Templates/Databases" + } + ], + "items": [ + { + "uuid": "b463e01655bf4dec81d5208f7a75766b", + "name": "MySQL: Aborted clients per second", + "type": "DEPENDENT", + "key": "mysql.aborted_clients.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of connections that were aborted because the client died without closing the connection properly.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Aborted_clients']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "d33a03e48f6d45dca04a505bab07a860", + "name": "MySQL: Aborted connections per second", + "type": "DEPENDENT", + "key": "mysql.aborted_connects.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of failed attempts to connect to the MySQL server.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Aborted_connects']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ], + "triggers": [ + { + "uuid": "e51c9ee3061c4e3889be1666afe6959d", + "expression": "min(/MySQL by Zabbix agent/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}", + "name": "MySQL: Server has aborted connections", + "event_name": "MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)", + "priority": "AVERAGE", + "description": "The number of failed attempts to connect to the MySQL server is more than `{$MYSQL.ABORTED_CONN.MAX.WARN}` in the last 5 minutes.", + "dependencies": [ + { + "name": "MySQL: Refused connections", + "expression": "last(/MySQL by Zabbix agent/mysql.connection_errors_max_connections.rate)>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "75b9c78d76334927a3fc2a4d1322ecc2", + "name": "MySQL: Binlog cache disk use", + "type": "DEPENDENT", + "key": "mysql.binlog_cache_disk_use", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than `binlog_cache_size`.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Binlog_cache_disk_use']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cache" + } + ] + }, + { + "uuid": "9a447424aca84124abdfa389865126d4", + "name": "MySQL: Buffer pool efficiency", + "type": "CALCULATED", + "key": "mysql.buffer_pool_efficiency", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "params": "last(//mysql.innodb_buffer_pool_reads) / \n( last(//mysql.innodb_buffer_pool_read_requests) + \n( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * \n( last(//mysql.innodb_buffer_pool_read_requests) > 0 )", + "description": "The item shows how effectively the buffer pool is serving reads.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "9aca02e86e744f43ab48e8ca9453cf77", + "name": "MySQL: Buffer pool utilization", + "type": "CALCULATED", + "key": "mysql.buffer_pool_utilization", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "params": "( last(//mysql.innodb_buffer_pool_pages_total) - \nlast(//mysql.innodb_buffer_pool_pages_free) ) / \n( last(//mysql.innodb_buffer_pool_pages_total) + \n( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * \n( last(//mysql.innodb_buffer_pool_pages_total) > 0 )", + "description": "Ratio of used to total pages in the buffer pool.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ], + "triggers": [ + { + "uuid": "0e8ea91d72a64507aaadf9ea5efa6412", + "expression": "max(/MySQL by Zabbix agent/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}", + "name": "MySQL: Buffer pool utilization is too low", + "event_name": "MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)", + "priority": "WARNING", + "description": "The buffer pool utilization is less than `{$MYSQL.BUFF_UTIL.MIN.WARN}`% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "56512a1e89d34826ad261ab27119e80d", + "name": "MySQL: Bytes received", + "type": "DEPENDENT", + "key": "mysql.bytes_received.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "Number of bytes received from all clients.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Bytes_received']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "c4cea16e3dbe4d328d9a50e113f3b904", + "name": "MySQL: Bytes sent", + "type": "DEPENDENT", + "key": "mysql.bytes_sent.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "Number of bytes sent to all clients.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Bytes_sent']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "24ab8f0bd32a45f591c676ef839876df", + "name": "MySQL: Command Delete per second", + "type": "DEPENDENT", + "key": "mysql.com_delete.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The `Com_delete` counter variable indicates the number of times the `DELETE` statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_delete']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "e48c67c893e5494fb00ea31222bd2caf", + "name": "MySQL: Command Insert per second", + "type": "DEPENDENT", + "key": "mysql.com_insert.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The `Com_insert` counter variable indicates the number of times the `INSERT` statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_insert']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "718c3af61f2645e8ab7d3496d6639c79", + "name": "MySQL: Command Select per second", + "type": "DEPENDENT", + "key": "mysql.com_select.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The `Com_select` counter variable indicates the number of times the `SELECT` statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_select']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "e2c3ea26dd34472c9e5f0e48a67da6dd", + "name": "MySQL: Command Update per second", + "type": "DEPENDENT", + "key": "mysql.com_update.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The `Com_update` counter variable indicates the number of times the `UPDATE` statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_update']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "bcf8a21aacc54a79a958604b278f9617", + "name": "MySQL: Connections per second", + "type": "DEPENDENT", + "key": "mysql.connections.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of connection attempts (successful or not) to the MySQL server.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connections']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "dc963a1250ab453cb090af0154d745c3", + "name": "MySQL: Connection errors accept per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_accept.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of errors that occurred during calls to `accept()` on the listening port.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_accept']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "4cff4caf382f4f00b534651212132bd2", + "name": "MySQL: Connection errors internal per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_internal.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_internal']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "3cbc55fc7b764a61baceb11e98fd454c", + "name": "MySQL: Connection errors max connections per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_max_connections.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of refused connections due to the `max_connections` limit being reached.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_max_connections']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ], + "triggers": [ + { + "uuid": "2ff2d0f399df4cb08b7196d3a4690567", + "expression": "last(/MySQL by Zabbix agent/mysql.connection_errors_max_connections.rate)>0", + "name": "MySQL: Refused connections", + "event_name": "MySQL: Refused connections (max_connections limit reached)", + "priority": "AVERAGE", + "description": "Number of refused connections due to the `max_connections` limit being reached.", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "e577b4b6c553401bbb831b7278dbbcb7", + "name": "MySQL: Connection errors peer address per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_peer_address.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of errors while searching for the connecting client's IP address.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_peer_address']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "228aaf5333ce4958aa3a07e0898add63", + "name": "MySQL: Connection errors select per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_select.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of errors during calls to `select()` or `poll()` on the listening port. The client would not necessarily have been rejected in these cases.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_select']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "a7632124b2b648bfa80a2e8a0381f4d2", + "name": "MySQL: Connection errors tcpwrap per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_tcpwrap.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of connections the libwrap library has refused.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_tcpwrap']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "52335a039571454ebaccc9ab103200a3", + "name": "MySQL: Created tmp tables on disk per second", + "type": "DEPENDENT", + "key": "mysql.created_tmp_disk_tables.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of internal on-disk temporary tables created by the server while executing statements.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Created_tmp_disk_tables']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "component", + "value": "tables" + } + ], + "triggers": [ + { + "uuid": "1b8761292e89476e91834f8e567a1dbe", + "expression": "min(/MySQL by Zabbix agent/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}", + "name": "MySQL: Number of on-disk temporary tables created per second is high", + "event_name": "MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "The application using the database may be in need of query optimization.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "d1dd183666d44010a5054f2e1cc328de", + "name": "MySQL: Created tmp files on disk per second", + "type": "DEPENDENT", + "key": "mysql.created_tmp_files.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "How many temporary files `mysqld` has created.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Created_tmp_files']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + } + ], + "triggers": [ + { + "uuid": "9845d8dc676f4702ae34b626f39d21ac", + "expression": "min(/MySQL by Zabbix agent/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}", + "name": "MySQL: Number of temporary files created per second is high", + "event_name": "MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "The application using the database may be in need of query optimization.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "c9a94c3145a643ef8ceec33f63b85ae9", + "name": "MySQL: Created tmp tables on memory per second", + "type": "DEPENDENT", + "key": "mysql.created_tmp_tables.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of internal temporary tables created by the server while executing statements.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Created_tmp_tables']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "tables" + } + ], + "triggers": [ + { + "uuid": "c647a51864e04bc69a1f610b1dec56fe", + "expression": "min(/MySQL by Zabbix agent/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}", + "name": "MySQL: Number of internal temporary tables created per second is high", + "event_name": "MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "The application using the database may be in need of query optimization.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "2ba81b425bde4ba5b3f7d00a6c922ed9", + "name": "MySQL: Get status variables", + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "description": "Gets server global status information.", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ] + }, + { + "uuid": "a9b965a07b504fa1b4e90acae0156221", + "name": "MySQL: InnoDB buffer pool pages free", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_pages_free", + "delay": "0", + "history": "7d", + "description": "The total size of the InnoDB buffer pool, in pages.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_pages_free']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "efb2450fe30c4ec78b954a35595b7ac7", + "name": "MySQL: InnoDB buffer pool pages total", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_pages_total", + "delay": "0", + "history": "7d", + "description": "The total size of the InnoDB buffer pool, in pages.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_pages_total']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "7738a4480f69427a96d46a9ca5b38d77", + "name": "MySQL: InnoDB buffer pool reads", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_reads", + "delay": "0", + "history": "7d", + "description": "Number of logical reads that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_reads']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "1704fe0bf8de4882a6a16ebd75c4c3bf", + "name": "MySQL: InnoDB buffer pool reads per second", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_reads.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of logical reads per second that InnoDB could not satisfy from the buffer pool and had to read directly from the disk.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_reads']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "598dcdb7eeec42c78484be70c814cd8a", + "name": "MySQL: InnoDB buffer pool read requests", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_read_requests", + "delay": "0", + "history": "7d", + "description": "Number of logical read requests.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_read_requests']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "3ed432f4e0c949debaed9d60c5d13810", + "name": "MySQL: InnoDB buffer pool read requests per second", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_read_requests.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of logical read requests per second.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_read_requests']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "61db0feae0b440c087177f4312eb6b7a", + "name": "MySQL: Innodb buffer pool wait free", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_wait_free", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing `innodb_buffer_pool_size`.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_wait_free']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "e5413d85449e4baea683c6365808cc17", + "name": "MySQL: Calculated value of innodb_log_file_size", + "type": "CALCULATED", + "key": "mysql.innodb_log_file_size", + "history": "7d", + "value_type": "FLOAT", + "params": "(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}", + "description": "`Innodb_log_file_size` is calculated as: (`innodb_os_log_written`-`innodb_os_log_written`(time shift -1h))/`{$MYSQL.INNODB_LOG_FILES}`. `Innodb_log_file_size` is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512 GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "2eacd8c07f7148acaaa9b8f8602720ae", + "name": "MySQL: Innodb number open files", + "type": "DEPENDENT", + "key": "mysql.innodb_num_open_files", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of open files held by InnoDB. InnoDB only.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_num_open_files']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "29d3513668ad4bdea28d947d2f983dd2", + "name": "MySQL: Innodb log written", + "type": "DEPENDENT", + "key": "mysql.innodb_os_log_written", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "Number of bytes written to the InnoDB log.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_os_log_written']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "3811018fdfaf4d92a5b8ff5d631d0047", + "name": "MySQL: InnoDB row lock time", + "type": "DEPENDENT", + "key": "mysql.innodb_row_lock_time", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "The total time spent in acquiring row locks for InnoDB tables, in milliseconds.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_row_lock_time']/field[@name='Value']/text()" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "579c1ad7680349a3b6a25dd12322fc14", + "name": "MySQL: InnoDB row lock time max", + "type": "DEPENDENT", + "key": "mysql.innodb_row_lock_time_max", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "The maximum time to acquire a row lock for InnoDB tables, in milliseconds.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_row_lock_time_max']/field[@name='Value']/text()" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "a4618dd9ed1d4ff19f34bc82f41dbbbb", + "name": "MySQL: InnoDB row lock waits", + "type": "DEPENDENT", + "key": "mysql.innodb_row_lock_waits", + "delay": "0", + "history": "7d", + "description": "Number of times operations on InnoDB tables had to wait for a row lock.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_row_lock_waits']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "e207dc3c0fe84928a36e643594d8cee5", + "name": "MySQL: Max used connections", + "type": "DEPENDENT", + "key": "mysql.max_used_connections", + "delay": "0", + "history": "7d", + "description": "The maximum number of connections that have been in use simultaneously since the server start.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Max_used_connections']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "3dd5ffb7c1cc45a487c5c7cabfa90ca6", + "name": "MySQL: Open tables", + "type": "DEPENDENT", + "key": "mysql.open_tables", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of tables that are open.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Open_tables']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "fe572969a6754248b10a35a5c0afedf3", + "name": "MySQL: Open table definitions", + "type": "DEPENDENT", + "key": "mysql.open_table_definitions", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of cached table definitions.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Open_table_definitions']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "41cd6c8c535948f3bde6324e0912f1a8", + "name": "MySQL: Status", + "key": "mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "history": "7d", + "description": "MySQL server status.", + "valuemap": { + "name": "Service state" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return value.indexOf('is alive') !== -1 ? 1 : 0;" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "10m" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "e78f07e3e507461f8fe33a31b1bc4eb9", + "expression": "last(/MySQL by Zabbix agent/mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"])=0", + "name": "MySQL: Service is down", + "priority": "HIGH", + "description": "MySQL is down.", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "c11b8c8ec3e843cea63f6cc1d8309ccd", + "name": "MySQL: Queries per second", + "type": "DEPENDENT", + "key": "mysql.queries.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the `Questions` variable.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Queries']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "queries" + } + ] + }, + { + "uuid": "cd7c5c4e262f4a73975d46d06ed903f9", + "name": "MySQL: Questions per second", + "type": "DEPENDENT", + "key": "mysql.questions.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the `Queries` variable.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Questions']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "queries" + } + ] + }, + { + "uuid": "a1cfc616f23648e9946f408c7146df0a", + "name": "MySQL: Slow queries per second", + "type": "DEPENDENT", + "key": "mysql.slow_queries.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of queries that have taken more than `long_query_time` seconds.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Slow_queries']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "queries" + } + ], + "triggers": [ + { + "uuid": "113509b7a7b54a108c1c63346a52bbf2", + "expression": "min(/MySQL by Zabbix agent/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}", + "name": "MySQL: Server has slow queries", + "event_name": "MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "The number of slow queries is more than `{$MYSQL.SLOW_QUERIES.MAX.WARN}` in the last 5 minutes.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "a9ce1d75a97d4740876fad7b5d569211", + "name": "MySQL: Threads cached", + "type": "DEPENDENT", + "key": "mysql.threads_cached", + "delay": "0", + "history": "7d", + "description": "Number of threads in the thread cache.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_cached']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "a0079f5ffbdc40cc89b35a8b6170c32b", + "name": "MySQL: Threads connected", + "type": "DEPENDENT", + "key": "mysql.threads_connected", + "delay": "0", + "history": "7d", + "description": "Number of currently open connections.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_connected']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "06976fcb42ab4a33b0056a864ecd31e7", + "name": "MySQL: Threads created per second", + "type": "DEPENDENT", + "key": "mysql.threads_created.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of threads created to handle connections. If the value of `Threads_created` is large, you may want to increase the `thread_cache_size` value. The cache miss rate can be calculated as `Threads_created`/`Connections`.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_created']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "255c00a984ba462e84ba46a7430f21c9", + "name": "MySQL: Threads running", + "type": "DEPENDENT", + "key": "mysql.threads_running", + "delay": "0", + "history": "7d", + "description": "Number of threads that are not sleeping.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_running']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "6ffa704603014f0f9f765590955fb01c", + "name": "MySQL: Uptime", + "type": "DEPENDENT", + "key": "mysql.uptime", + "delay": "0", + "history": "7d", + "units": "uptime", + "description": "Number of seconds that the server has been up.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Uptime']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "d3c80c770355464fb5a6be0357d0edca", + "expression": "nodata(/MySQL by Zabbix agent/mysql.uptime,30m)=1", + "name": "MySQL: Failed to fetch info data", + "event_name": "MySQL: Failed to fetch info data (or no data for 30m)", + "priority": "INFO", + "description": "Zabbix has not received any data for items for the last 30 minutes.", + "dependencies": [ + { + "name": "MySQL: Service is down", + "expression": "last(/MySQL by Zabbix agent/mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + }, + { + "uuid": "f02f51c764934cf394c5ad3f9c4e70d2", + "expression": "last(/MySQL by Zabbix agent/mysql.uptime)<10m", + "name": "MySQL: Service has been restarted", + "event_name": "MySQL: Service has been restarted (uptime < 10m)", + "priority": "INFO", + "description": "MySQL uptime is less than 10 minutes.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "a5d0f152c3ef4e069c3d5a6a5a9470fe", + "name": "MySQL: Version", + "key": "mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "delay": "15m", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "MySQL server version.", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "(Server version)\\s+(.+)", + "\\2" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "7eab3a7337904ad1b2061d209371543b", + "expression": "last(/MySQL by Zabbix agent/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"],#1)<>last(/MySQL by Zabbix agent/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"],#2) and length(last(/MySQL by Zabbix agent/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]))>0", + "name": "MySQL: Version has changed", + "event_name": "MySQL: Version has changed (new version value received: {ITEM.VALUE})", + "priority": "INFO", + "description": "The MySQL version has changed. Acknowledge to close the problem manually.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "8ceb226f000d48f099ee6e128ad551b5", + "name": "Database discovery", + "key": "mysql.db.discovery[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "delay": "1h", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#DBNAME}", + "value": "{$MYSQL.DBNAME.MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#DBNAME}", + "value": "{$MYSQL.DBNAME.NOT_MATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + } + ] + }, + "description": "Scanning databases in DBMS.", + "item_prototypes": [ + { + "uuid": "dda45077011d4f8fa5c25b1f351179ca", + "name": "MySQL: Size of database {#DBNAME}", + "key": "mysql.dbsize[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#DBNAME}\"]", + "delay": "5m", + "history": "7d", + "units": "B", + "description": "Database size.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "database", + "value": "{#DBNAME}" + } + ] + } + ], + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value.split(\"\\n\").map(function (name) {\n return ({\"{#DBNAME}\": name});\n}));" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ] + }, + { + "uuid": "bc28468760e14d069ef7b47858846a50", + "name": "MariaDB discovery", + "type": "DEPENDENT", + "key": "mysql.extra_metric.discovery", + "delay": "0", + "description": "Used for additional metrics if MariaDB is used.", + "item_prototypes": [ + { + "uuid": "7743cdbaf71c491189ac1a927409e998", + "name": "MySQL: Binlog commits", + "type": "DEPENDENT", + "key": "mysql.binlog_commits[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Total number of transactions committed to the binary log.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Binlog_commits']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "c897f8f0fb1c4e409dd95305fd221e01", + "name": "MySQL: Binlog group commits", + "type": "DEPENDENT", + "key": "mysql.binlog_group_commits[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Total number of group commits done to the binary log.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Binlog_group_commits']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "749e72ebd1014f7faee352e23ac3dfdd", + "name": "MySQL: Master GTID wait count", + "type": "DEPENDENT", + "key": "mysql.master_gtid_wait_count[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The number of times `MASTER_GTID_WAIT` called.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Master_gtid_wait_count']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "4a4537b0db5b43119af910d0ba421035", + "name": "MySQL: Master GTID wait timeouts", + "type": "DEPENDENT", + "key": "mysql.master_gtid_wait_timeouts[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of timeouts occurring in `MASTER_GTID_WAIT`.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Master_gtid_wait_timeouts']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "c1e95abc88cf486a9226bf760254f797", + "name": "MySQL: Master GTID wait time", + "type": "DEPENDENT", + "key": "mysql.master_gtid_wait_time[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Total number of time spent in `MASTER_GTID_WAIT`.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Master_gtid_wait_time']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + } + ], + "master_item": { + "key": "mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value.search('MariaDB')>-1 ? [{'{#SINGLETON}': ''}] : []);" + ] + } + ] + }, + { + "uuid": "aed60b7ae3794d0ba25ad82da12b8966", + "name": "Replication discovery", + "key": "mysql.replication.discovery[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "delay": "1h", + "description": "If \"show slave status\" returns Master_Host, \"Replication: *\" items are created.", + "item_prototypes": [ + { + "uuid": "48555d71074f4cd4a61dca6187c8b29a", + "name": "MySQL: Replication Seconds Behind Master {#MASTER_HOST}", + "type": "DEPENDENT", + "key": "mysql.seconds_behind_master[\"{#MASTER_HOST}\"]", + "delay": "0", + "history": "7d", + "units": "s", + "description": "The number of seconds that the slave SQL thread is behind processing the master binary log.\nA high number (or an increasing one) can indicate that the slave is unable to handle events\nfrom the master in a timely fashion.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row/field[@name='Seconds_Behind_Master']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + }, + { + "type": "NOT_MATCHES_REGEX", + "parameters": [ + "null" + ], + "error_handler": "CUSTOM_ERROR", + "error_handler_params": "Replication is not performed." + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTER_HOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "a5c91da088414d279f5ea3cd59093ce9", + "expression": "min(/MySQL by Zabbix agent/mysql.seconds_behind_master[\"{#MASTER_HOST}\"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}", + "name": "MySQL: Replication lag is too high", + "event_name": "MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "Replication delay is too long.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "1c075f4785604d92a33a868e213070d8", + "name": "MySQL: Replication Slave IO Running {#MASTER_HOST}", + "type": "DEPENDENT", + "key": "mysql.slave_io_running[\"{#MASTER_HOST}\"]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Whether the I/O thread for reading the master's binary log is running.\nNormally, you want this to be Yes unless you have not yet started replication or have\nexplicitly stopped it with STOP SLAVE.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row/field[@name='Slave_IO_Running']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTER_HOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "8ee45932311443cb906306b1d2c99b19", + "expression": "count(/MySQL by Zabbix agent/mysql.slave_io_running[\"{#MASTER_HOST}\"],#1,\"ne\",\"Yes\")=1", + "name": "MySQL: The slave I/O thread is not connected to a replication master", + "priority": "WARNING", + "description": "Whether the slave I/O thread is connected to the master.", + "dependencies": [ + { + "name": "MySQL: The slave I/O thread is not running", + "expression": "count(/MySQL by Zabbix agent/mysql.slave_io_running[\"{#MASTER_HOST}\"],#1,\"eq\",\"No\")=1" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + }, + { + "uuid": "4c8ca45f26254d9a9a1c9248f1fa1537", + "expression": "count(/MySQL by Zabbix agent/mysql.slave_io_running[\"{#MASTER_HOST}\"],#1,\"eq\",\"No\")=1", + "name": "MySQL: The slave I/O thread is not running", + "priority": "AVERAGE", + "description": "Whether the I/O thread for reading the master's binary log is running.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "967c6fd13cc04562a9fea174bd90b8c4", + "name": "MySQL: Replication Slave SQL Running {#MASTER_HOST}", + "type": "DEPENDENT", + "key": "mysql.slave_sql_running[\"{#MASTER_HOST}\"]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Whether the SQL thread for executing events in the relay log is running.\nAs with the I/O thread, this should normally be Yes.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row/field[@name='Slave_SQL_Running']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTER_HOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "bd0d20c05e3b46b6a7c341e5d122208b", + "expression": "count(/MySQL by Zabbix agent/mysql.slave_sql_running[\"{#MASTER_HOST}\"],#1,\"eq\",\"No\")=1", + "name": "MySQL: The SQL thread is not running", + "priority": "WARNING", + "description": "Whether the SQL thread for executing events in the relay log is running.", + "dependencies": [ + { + "name": "MySQL: The slave I/O thread is not running", + "expression": "count(/MySQL by Zabbix agent/mysql.slave_io_running[\"{#MASTER_HOST}\"],#1,\"eq\",\"No\")=1" + } + ], + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "27e807d840d4474484c2e1f896726b6b", + "name": "MySQL: Replication Slave SQL Running State {#MASTER_HOST}", + "type": "DEPENDENT", + "key": "mysql.slave_sql_running_state[\"{#MASTER_HOST}\"]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "TEXT", + "description": "This shows the state of the SQL driver threads.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Slave_SQL_Running_State']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTER_HOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "d87c7c03e5884a43912f60ad91c3b46f", + "name": "MySQL: Replication Slave status {#MASTER_HOST}", + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTER_HOST}\"]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "description": "The item gets status information on the essential parameters of the slave threads.", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ] + } + ], + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var matches = value.match(/Master_Host.*>(.*)<.*/);\nif (matches) {\n return JSON.stringify([{\"{#MASTER_HOST}\": matches[1]}]);\n}\n\nreturn '[]';" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ] + } + ], + "tags": [ + { + "tag": "class", + "value": "database" + }, + { + "tag": "target", + "value": "mysql" + } + ], + "macros": [ + { + "macro": "{$MYSQL.ABORTED_CONN.MAX.WARN}", + "value": "3", + "description": "Number of failed attempts to connect to the MySQL server for trigger expressions." + }, + { + "macro": "{$MYSQL.BUFF_UTIL.MIN.WARN}", + "value": "50", + "description": "The minimum buffer pool utilization in percentage for trigger expressions." + }, + { + "macro": "{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}", + "value": "10", + "description": "The maximum number of temporary tables created on a disk per second for trigger expressions." + }, + { + "macro": "{$MYSQL.CREATED_TMP_FILES.MAX.WARN}", + "value": "10", + "description": "The maximum number of temporary files created on a disk per second for trigger expressions." + }, + { + "macro": "{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}", + "value": "30", + "description": "The maximum number of temporary tables created in memory per second for trigger expressions." + }, + { + "macro": "{$MYSQL.DBNAME.MATCHES}", + "value": ".+", + "description": "Filter of discoverable databases." + }, + { + "macro": "{$MYSQL.DBNAME.NOT_MATCHES}", + "value": "information_schema", + "description": "Filter to exclude discovered databases." + }, + { + "macro": "{$MYSQL.HOST}", + "value": "127.0.0.1", + "description": "Hostname or IP of MySQL host or container." + }, + { + "macro": "{$MYSQL.INNODB_LOG_FILES}", + "value": "2", + "description": "Number of physical files in the InnoDB redo log for calculating `innodb_log_file_size`." + }, + { + "macro": "{$MYSQL.PORT}", + "value": "3306", + "description": "MySQL service port." + }, + { + "macro": "{$MYSQL.REPL_LAG.MAX.WARN}", + "value": "30m", + "description": "Amount of time the slave is behind the master for trigger expressions." + }, + { + "macro": "{$MYSQL.SLOW_QUERIES.MAX.WARN}", + "value": "3", + "description": "Number of slow queries for trigger expressions." + } + ], + "dashboards": [ + { + "uuid": "ce2f9d7bb18e469f97e692baee02841d", + "name": "MySQL performance", + "pages": [ + { + "widgets": [ + { + "type": "GRAPH_CLASSIC", + "name": "MySQL: Operations", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MySQL by Zabbix agent", + "name": "MySQL: Operations" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "MySQL: Connections", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MySQL by Zabbix agent", + "name": "MySQL: Connections" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "MySQL: InnoDB buffer pool", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MySQL by Zabbix agent", + "name": "MySQL: InnoDB buffer pool" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "MySQL: Queries", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MySQL by Zabbix agent", + "name": "MySQL: Queries" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "MySQL: Bandwidth", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MySQL by Zabbix agent", + "name": "MySQL: Bandwidth" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "MySQL: Threads", + "x": "12", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MySQL by Zabbix agent", + "name": "MySQL: Threads" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "4f2d7ca3c89246c6b691557447230031", + "name": "Service state", + "mappings": [ + { + "value": "0", + "newvalue": "Down" + }, + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "6ebb6f300b4a4ada80908ce11cae9e95", + "name": "MySQL: Bandwidth", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "199C0D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.bytes_received.rate" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "F63100", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.bytes_sent.rate" + } + } + ] + }, + { + "uuid": "ea03bd4cc0f948f38ea638fe93f2ac69", + "name": "MySQL: Connections", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.aborted_clients.rate" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.aborted_connects.rate" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.connections.rate" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.max_used_connections" + } + } + ] + }, + { + "uuid": "ee3890503acf44c58fcfedf3c5008656", + "name": "MySQL: InnoDB buffer pool", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.innodb_buffer_pool_pages_free" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.innodb_buffer_pool_pages_total" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.innodb_buffer_pool_read_requests.rate" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.innodb_buffer_pool_reads.rate" + } + } + ] + }, + { + "uuid": "a6296310a0cf4ffcad7b119c5089ef1f", + "name": "MySQL: Operations", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.com_delete.rate" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.com_insert.rate" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.com_select.rate" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.com_update.rate" + } + } + ] + }, + { + "uuid": "ce723556c4974152a8eda029dbdad1bc", + "name": "MySQL: Queries", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.queries.rate" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.questions.rate" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.slow_queries.rate" + } + } + ] + }, + { + "uuid": "e7653013a2d94596a89c93f5352220df", + "name": "MySQL: Threads", + "graph_items": [ + { + "color": "199C0D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.threads_cached" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.threads_connected" + } + }, + { + "sortorder": "2", + "color": "00611C", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.threads_created.rate" + } + }, + { + "sortorder": "3", + "color": "F7941D", + "item": { + "host": "MySQL by Zabbix agent", + "key": "mysql.threads_running" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.0/nextcloud-zabbix-template.json b/zabbix-templates/6.0/nextcloud-zabbix-template.json new file mode 100644 index 0000000..53d39f1 --- /dev/null +++ b/zabbix-templates/6.0/nextcloud-zabbix-template.json @@ -0,0 +1,1837 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-20T09:53:08Z", + "groups": [ + { + "uuid": "18fce3c341e74778ba11126e46a87ebd", + "name": "Nextcloud Installation" + }, + { + "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", + "name": "Templates/Applications" + } + ], + "templates": [ + { + "uuid": "eddea30a51d94d56875d2dd78fab8120", + "template": "Nextcloud", + "name": "Nextcloud", + "description": "Nextcloud by RCA Systems", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates/Applications" + } + ], + "items": [ + { + "uuid": "b7dac9facd27414da6710117d61ba6af", + "name": "Database Full Version", + "key": "db_full_version", + "delay": "1d", + "trends": "0", + "value_type": "TEXT" + }, + { + "uuid": "8bfc17be6a414c5ca715e46ebca038f8", + "name": "Number of Users - Active in Last Hour", + "key": "nc_metric[ocs.data.activeUsers.last1hour]", + "delay": "1h", + "description": "Active users in the last hour" + }, + { + "uuid": "280c9c2ea30f4f97b1167e7d07cb7c0f", + "name": "Number of Users - Active in Last 5 Minutes", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]", + "delay": "5m", + "description": "Active users in the last 5 minutes" + }, + { + "uuid": "cae212b94b404cb1b816825839a6643e", + "name": "Number of Users - Active in Last 24 Hours", + "key": "nc_metric[ocs.data.activeUsers.last24hours]", + "delay": "1d", + "description": "Active users in the last 24 hours" + }, + { + "uuid": "dd6ca0d93db54819811a7d07d5c06981", + "name": "Number of Shares", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]", + "delay": "5m", + "description": "Total number of shares" + }, + { + "uuid": "4f732d5bcc504eed92b6402cfd2e4e06", + "name": "Number of Group Shares", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]", + "delay": "5m", + "description": "Number of shares (group)" + }, + { + "uuid": "66db9033e1a34bfba2fd81575bab9544", + "name": "Number of Shares by Link", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]", + "delay": "5m", + "description": "Number of shares (link)" + }, + { + "uuid": "415b19a45d5c47d6835bc2dbdcfe4c51", + "name": "Number of Shares by Email", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]", + "delay": "5m", + "description": "Number of shares (mail)" + }, + { + "uuid": "c60c6369bda4415e924d49211f9e79f6", + "name": "Number of Shares in Talk Room", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]", + "delay": "5m", + "description": "Number of shares (room)" + }, + { + "uuid": "648dff6d0c594164b1fdd2635e3c1d9c", + "name": "Number of Shares with user", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]", + "delay": "5m", + "description": "Number of Shares (User)" + }, + { + "uuid": "169a4440fd86493e97dc15821a89458c", + "name": "Number of Files", + "key": "nc_metric[ocs.data.nextcloud.storage.num_files]", + "delay": "3h", + "description": "Total number of files" + }, + { + "uuid": "2e7c235636db40dc9299854cfb8170c6", + "name": "Number of Storage Areas", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]", + "delay": "3h", + "description": "Number of Storages" + }, + { + "uuid": "4948262dfc4645a7bd0b71d2ba62477f", + "name": "Number of Storage Homes", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]", + "delay": "3h", + "description": "Number of Storages (Home)" + }, + { + "uuid": "4b1f627d3d404a839c15e68aa6fad8eb", + "name": "Number of Local Storage Areas", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]", + "delay": "3h", + "description": "Number of Storages (Local)" + }, + { + "uuid": "538fa8eb57d744b9a9bf021b69383d80", + "name": "Number of External Storage Areas", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]", + "delay": "3h", + "description": "Number of Storages (Other)" + }, + { + "uuid": "d15f720b1d1e49cbaaa8220f094cc5ec", + "name": "Number of Users - Total", + "key": "nc_metric[ocs.data.nextcloud.storage.num_users]", + "delay": "3h" + }, + { + "uuid": "cca6fc0764e542afa65c3296311be7bc", + "name": "Number of Installed Applications", + "key": "nc_metric[ocs.data.nextcloud.system.apps.num_installed]", + "delay": "1d", + "description": "Number of installed applications" + }, + { + "uuid": "eaa4b90fbac849108b95cd553798900c", + "name": "Nextcloud Server Version", + "key": "nc_metric[ocs.data.nextcloud.system.version]", + "delay": "24h", + "trends": "0", + "value_type": "TEXT", + "description": "Nextcloud Server Version" + }, + { + "uuid": "30b554fb5c2845439e3486b6a0927c1a", + "name": "Database Size (reported by Nextcloud)", + "key": "nc_metric[ocs.data.server.database.size]", + "delay": "1h", + "value_type": "FLOAT", + "description": "Database Size (in bytes)", + "preprocessing": [ + { + "type": "MULTIPLIER", + "parameters": [ + "9.5367431640625E-7" + ] + } + ] + }, + { + "uuid": "209893b4f7764f45a26afcf055dbd5cd", + "name": "Database (reported by Nextcloud)", + "key": "nc_metric[ocs.data.server.database.type]", + "delay": "1d", + "trends": "0", + "value_type": "TEXT", + "description": "Database Type" + }, + { + "uuid": "f8b1b78f1ed7472ba73e5bdb031577a2", + "name": "Database Version (reported by Nextcloud)", + "key": "nc_metric[ocs.data.server.database.version]", + "delay": "1d", + "trends": "0", + "value_type": "TEXT", + "description": "Database Version" + }, + { + "uuid": "89a9b0105a594908abe43d106e1ddf6b", + "name": "PHP Version", + "key": "nc_metric[ocs.data.server.php.version]", + "delay": "24h", + "trends": "0", + "value_type": "TEXT", + "description": "PHP Version" + }, + { + "uuid": "3aff68035b0b4283b990a34b662222cd", + "name": "Web Server (reported by Nextcloud)", + "key": "nc_metric[ocs.data.server.webserver]", + "delay": "24h", + "trends": "0", + "value_type": "TEXT", + "description": "Web Server (reported by Nextcloud)" + }, + { + "uuid": "469923464ff240988bccddba5671b9d5", + "name": "Storage Quota (GB) - Assigned Total", + "key": "nc_quota_metric[total_assigned_quota_gb]", + "delay": "1d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.total_assigned_quota_gb" + ] + } + ] + }, + { + "uuid": "fdcdce5456c449b5a153c07b12cd86b9", + "name": "Storage Quota (GB) - Used Total", + "key": "nc_quota_metric[total_used_quota_gb]", + "delay": "1d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.total_used_quota_gb" + ] + } + ] + }, + { + "uuid": "2cc43d1dbefd4a109ec8406e2899654b", + "name": "Data Directory Size (GB)", + "key": "storage_metric[datadirectory_total_size_gb]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Nextcloud data directory storage size (in Gigabytes)" + }, + { + "uuid": "31d1b9ba4d1c498a8bd5f8ea534c661e", + "name": "Data Directory Partition - Available Capacity (GB)", + "key": "storage_metric[partition_available_capacity_gb]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Available capacity of the partition hosting the Nextcloud data directory (in Gigabytes)" + }, + { + "uuid": "a0d9063f0bef46f7935d8cdc36284386", + "name": "Data Directory Partition - Total Capacity (GB)", + "key": "storage_metric[partition_total_capacity_gb]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Total capacity of the partition hosting the Nextcloud data directory (in Gigabytes)" + }, + { + "uuid": "a47c3d652e034eea840663b5ee0d533e", + "name": "Data Directory Partition - Used Capacity (%)", + "key": "storage_metric[partition_used_capacity_percent]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Used capacity of the partition hosting the Nextcloud data directory (in percentage)" + } + ], + "discovery_rules": [ + { + "uuid": "632921baa9b4466abea5285b5113c0ac", + "name": "HTTP Agent Request Count", + "key": "apache2_user_agent_metric_discovery", + "delay": "1d", + "item_prototypes": [ + { + "uuid": "4eba013ed08f4e5a9b71605b316ccf17", + "name": "Number of requests in last natural day - {#NORM_USER_AGENT}", + "type": "ZABBIX_ACTIVE", + "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]", + "delay": "1d" + } + ], + "graph_prototypes": [ + { + "uuid": "a5fc2578020e4b3cbf5a32173d6eb0af", + "name": "Number of requests in last natural day - {#NORM_USER_AGENT}", + "show_work_period": "NO", + "show_triggers": "NO", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]" + } + } + ] + } + ] + }, + { + "uuid": "3f2820db83ff4b2fb87013d3d6fcd0be", + "name": "Largest database tables", + "key": "db_metric_discovery", + "delay": "1h", + "item_prototypes": [ + { + "uuid": "1e53988836eb465eb220402a6721df4d", + "name": "Number of rows {#TABLENAME}", + "key": "db_metric[{#TABLENAME},nr_rows]", + "delay": "1h" + }, + { + "uuid": "6d82cf7849154cb3859001cfa86fff9c", + "name": "Size of {#TABLENAME}", + "key": "db_metric[{#TABLENAME},size_mb]", + "delay": "1h", + "value_type": "FLOAT" + } + ], + "graph_prototypes": [ + { + "uuid": "bc89e54de2e143d19b5623c40cbb666f", + "name": "Number of rows in {#TABLENAME}", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "db_metric[{#TABLENAME},nr_rows]" + } + } + ] + }, + { + "uuid": "1eb51c1032034c50b2b887ebc31f660e", + "name": "Size of {#TABLENAME} in MB", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "db_metric[{#TABLENAME},size_mb]" + } + } + ] + } + ] + } + ], + "dashboards": [ + { + "uuid": "ebbdaed351ae43baa35a816e2a8cc048", + "name": "Application", + "pages": [ + { + "name": "Application", + "widgets": [ + { + "type": "ITEM", + "name": "Nextcloud Server Version", + "width": "4", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "STRING", + "name": "description", + "value": "Nextcloud Server Version" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.system.version]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "ITEM", + "name": "Total Number of Shares", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Shares" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "Users", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Users" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "Number of Storage Areas", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Storage Areas" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "HTTP Agents - Number of requests in previous day", + "y": "15", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of requests in last natural day - {#NORM_USER_AGENT}" + } + }, + { + "type": "INTEGER", + "name": "show_legend", + "value": "0" + } + ] + }, + { + "type": "ITEM", + "name": "Total Number of Files", + "x": "3", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Files\n(incl. previews and folders)" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "ITEM", + "name": "PHP Version", + "x": "4", + "width": "4", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "STRING", + "name": "description", + "value": "PHP Version" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.php.version]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "ITEM", + "name": "Total Storage in Data Directory", + "x": "6", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Storage \nin Data Directory" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "storage_metric[datadirectory_total_size_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "ITEM", + "name": "Web Server", + "x": "8", + "width": "4", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "STRING", + "name": "description", + "value": "Web Server" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.webserver]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "ITEM", + "name": "Total Assigned Storage Quota", + "x": "9", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Assigned \nStorage Quota" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_assigned_quota_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "ITEM", + "name": "Total Used Storage Quota", + "x": "12", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Used \nStorage Quota" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_used_quota_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "Number of files", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Files" + } + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "name": "Number of Shares (by type)", + "x": "12", + "y": "10", + "width": "5", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type)" + } + } + ] + }, + { + "type": "ITEM", + "name": "Total Capacity of Data Directory Partition", + "x": "15", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Capacity of \nData Directory Partition" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "storage_metric[partition_total_capacity_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "17", + "y": "10", + "width": "3", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type) - Last Value - Pie Chart" + } + } + ] + }, + { + "type": "ITEM", + "name": "Used Capacity of Data Directory Partition", + "x": "18", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Used Capacity of \nData Directory Partition" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "storage_metric[partition_used_capacity_percent]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "%" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "GRAPH_CLASSIC", + "x": "20", + "y": "10", + "width": "4", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type) - Average Value - Pie Chart" + } + } + ] + }, + { + "type": "CLOCK", + "name": "clock", + "x": "21", + "width": "3", + "hide_header": "YES" + }, + { + "type": "ITEM", + "name": "Total Number of Users", + "x": "21", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Users" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_users]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + } + ] + }, + { + "name": "Database", + "widgets": [ + { + "type": "ITEM", + "name": "Database Version", + "width": "12", + "height": "3", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "10" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "db_full_version" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_h_pos", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "15" + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "3", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "5" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of rows in {#TABLENAME}" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "y": "9", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "5" + }, + { + "type": "ITEM_PROTOTYPE", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "db_metric[{#TABLENAME},size_mb]" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "3" + } + ] + }, + { + "type": "ITEM", + "name": "Database Size", + "x": "12", + "width": "4", + "height": "3", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.database.size]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "MB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + } + ] + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "00e76bf39d854e09bd19bb3dea9f616f", + "name": "Active users in the last 5 minutes", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]" + } + } + ] + }, + { + "uuid": "ed6d0e653d4a43ecbc06c393c0c396d8", + "name": "Active users in the last 24 hours", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last24hours]" + } + } + ] + }, + { + "uuid": "287f84b0347a42179c137019e4f9f6e5", + "name": "Active users in the last hour", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last1hour]" + } + } + ] + }, + { + "uuid": "4c5580f5314a4ad58e327f7d47ca4301", + "name": "Database size", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.database.size]" + } + } + ] + }, + { + "uuid": "015188c05e794bf08643394ab9fa7e53", + "name": "Number of Files", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" + } + } + ] + }, + { + "uuid": "ad1a59aeb6464aca86c7d7249752dcc1", + "name": "Number of Shares", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" + } + } + ] + }, + { + "uuid": "0a408360b58246d1b74caedb3216b969", + "name": "Number of Shares (by Type)", + "graph_items": [ + { + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" + } + }, + { + "sortorder": "2", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" + } + } + ] + }, + { + "uuid": "0f40359cd9b6470d85c277015346ab27", + "name": "Number of Shares (by Type) - Average Value - Pie Chart", + "yaxismax": "0", + "show_work_period": "NO", + "show_triggers": "NO", + "type": "EXPLODED", + "show_3d": "YES", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" + } + }, + { + "sortorder": "1", + "color": "274482", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" + } + }, + { + "sortorder": "4", + "color": "A54F10", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" + } + } + ] + }, + { + "uuid": "d709c34ece094f8d815cd5d8169287aa", + "name": "Number of Shares (by Type) - Last Value - Pie Chart", + "yaxismax": "0", + "show_work_period": "NO", + "show_triggers": "NO", + "type": "EXPLODED", + "show_3d": "YES", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" + } + }, + { + "sortorder": "4", + "color": "A54F10", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" + } + } + ] + }, + { + "uuid": "628b4299c4a9492682f76dd9747da276", + "name": "Number of Storage Areas", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]" + } + } + ] + }, + { + "uuid": "20779ff8bc3346fe8b9af74240d515d3", + "name": "Users", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last1hour]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last24hours]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_users]" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.0/redis-zabbix-allenta-consulting-template.json b/zabbix-templates/6.0/redis-zabbix-allenta-consulting-template.json new file mode 100644 index 0000000..c3993bc --- /dev/null +++ b/zabbix-templates/6.0/redis-zabbix-allenta-consulting-template.json @@ -0,0 +1,1611 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-19T14:49:59Z", + "groups": [ + { + "uuid": "7df96b18c230490a9a0a9e2307226338", + "name": "Templates" + } + ], + "templates": [ + { + "uuid": "0985c017179b4925a39859b210f8068e", + "template": "Template App Redis Server", + "name": "Template App Redis Server", + "description": "Template App Redis Server v14.0", + "groups": [ + { + "name": "Templates" + } + ], + "items": [ + { + "uuid": "0dd210187c7e4086af924495bf3215b9", + "name": "Redis Server - $1 processes", + "key": "proc.num[redis-server]", + "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "triggers": [ + { + "uuid": "4a0ea180d9124067be6d1f4e46421773", + "expression": "last(/Template App Redis Server/proc.num[redis-server])<{$REDIS_SERVER.PROCESSES.MIN}", + "name": "Redis Server is not running", + "priority": "DISASTER" + } + ] + }, + { + "uuid": "b4a345736aec44bdbde03ce96b338994", + "name": "Redis Server - stats", + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]", + "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "\n var exclusions = '{$REDIS_SERVER.EXCLUDED_STATS}'.trim();\n\n // This check is not just a simple optimization to avoid using never matching\n // regexps like '^(?!)' when filtering is not needed. JavaScript based filtering\n // effectively limits precision of numeric values and it could trigger rendering\n // of values using scientific notation.\n if (exclusions !== '') {\n exclusions = new RegExp(exclusions);\n\n var stats = JSON.parse(value);\n\n Object.keys(stats).forEach(function(key) {\n var name = key.replace(/^[^.]*[.]/, '');\n if (exclusions.test(name)) {\n delete stats[key];\n }\n });\n\n return JSON.stringify(stats);\n } else {\n return value;\n }\n " + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "2a82dc028a7e449690f7717e7f89aa3b", + "name": "Commandstats discovery", + "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"commandstats\"]", + "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"commandstats\"}", + "filter": { + "conditions": [ + { + "macro": "{#SUBJECT}", + "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"commandstats\"}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "A" + } + ] + }, + "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"commandstats\"}", + "item_prototypes": [ + { + "uuid": "bcd9f65b5a5b452189b7ccf0adbd78c8", + "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:calls", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:calls\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:calls']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "7b6c45697ba14f10bd7164dc27c01090", + "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:usec_per_call", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:usec_per_call\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:usec_per_call']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ] + }, + { + "uuid": "e8dd71a33888412dbbd3ff3f3307b9c6", + "name": "Items discovery", + "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"items\"]", + "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"items\"}", + "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"items\"}", + "item_prototypes": [ + { + "uuid": "39475ca0c1464d3e9cbe7b85d3d81085", + "name": "Redis Server[{#LOCATION}] - clients:blocked_clients", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:blocked_clients\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.clients:blocked_clients']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "327f368c4eff4b68bd1b8e1f6d5e6934", + "name": "Redis Server[{#LOCATION}] - clients:connected_clients", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:connected_clients\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.clients:connected_clients']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "42093af8dbca40ae8eaf342b4307e4ae", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_known_nodes", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_known_nodes\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_known_nodes']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "b2cd47874a774d3c9bd8b0b071a39b38", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_size", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_size\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_size']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "581ecf808c544e28a9f070c3bf74d5e4", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_assigned", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_assigned\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_assigned']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "0671752af70d4ec89e755497d7017ae1", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_fail", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_fail\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_fail']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "e08e2f608ff2439da9093a9d42fb6aea", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_ok", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_ok\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_ok']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "37457455be4f49d888ff64118a2fe5ab", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_pfail", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_pfail\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_pfail']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "5ed9c084254c487bb86ba5fefb96d4f5", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_state", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_state\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_state']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "5921de15169a43a6952552c795c3a3af", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_sys']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "84307066f3f04a758c94e5ee01c7938e", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys_children", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys_children\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_sys_children']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "6c410ba56ead40858decab4c84e9b998", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_user']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "21254c91ddb74bfe9eee9d82607328cd", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user_children", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user_children\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_user_children']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "fac4af3cc8f1441389d386c62447af18", + "name": "Redis Server[{#LOCATION}] - hit_ratio", + "type": "CALCULATED", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"hit_ratio\"]", + "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "%", + "params": "100*last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])/(last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])+last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"])+(count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"],#1,\"eq\",0)*count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"],#1,\"eq\",0)))", + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2328c03f4b444f82a9a19e7246d883ad", + "name": "Redis Server[{#LOCATION}] - memory:mem_fragmentation_ratio", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:mem_fragmentation_ratio\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:mem_fragmentation_ratio']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "421ae72f90fe46b4929112df5de1222c", + "name": "Redis Server[{#LOCATION}] - memory:used_memory", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:used_memory']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "bfa68004441b4705a18ef68c7a6f8bb6", + "name": "Redis Server[{#LOCATION}] - memory:used_memory_lua", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_lua\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:used_memory_lua']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "9edf931c27e94de1a0f029a9d5833b36", + "name": "Redis Server[{#LOCATION}] - memory:used_memory_rss", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_rss\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:used_memory_rss']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2f2b46643e504baeab282528fbc155cf", + "name": "Redis Server[{#LOCATION}] - persistence:aof_last_bgrewrite_status", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_bgrewrite_status\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:aof_last_bgrewrite_status']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "91978c3c77ef489fa65c75f1a22548a6", + "name": "Redis Server[{#LOCATION}] - persistence:aof_last_rewrite_time_sec", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_rewrite_time_sec\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:aof_last_rewrite_time_sec']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2a55fc618e294ce3a305a8e5271d6154", + "name": "Redis Server[{#LOCATION}] - persistence:aof_last_write_status", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_write_status\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:aof_last_write_status']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "a7dd0f15e8f9483e8a41d4eaeeaff532", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_changes_since_last_save", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_changes_since_last_save\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_changes_since_last_save']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "488ada8c369a474da74dce54d6d85493", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_status", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_status\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_status']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "9968741069d74a62a2efcce2025957e5", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_time_sec", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_time_sec\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_time_sec']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "5fbca013a8ca4051b49d4f2be670dd04", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_save_time", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_save_time\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "unixtime", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_last_save_time']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "64186f3afffe4c0c90fd81b56b4c58e1", + "name": "Redis Server[{#LOCATION}] - replication:connected_slaves", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.replication:connected_slaves']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "dfaa1031d4e641c9aac23efc1c2b3e84", + "name": "Redis Server[{#LOCATION}] - replication:role", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.replication:role']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "eaaab8c393c34910930c20b1957dfd81", + "name": "Redis Server[{#LOCATION}] - server:uptime_in_seconds", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "uptime", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.server:uptime_in_seconds']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "trigger_prototypes": [ + { + "uuid": "e0e532c83c8b4a78aaa620a80358085d", + "expression": "last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"])<{$REDIS_SERVER.UPTIME.MIN:\"{#LOCATION_ID}\"}", + "name": "Redis Server[{#LOCATION}] has been restarted", + "priority": "HIGH" + } + ] + }, + { + "uuid": "ac8c032105934030a2ae11ba8a4fb1f5", + "name": "Redis Server[{#LOCATION}] - stats:evicted_keys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:evicted_keys']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "trigger_prototypes": [ + { + "uuid": "ee545f84145049b0acef45ce5868ca5e", + "expression": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED:\"{#LOCATION_ID}\"} and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"])>{$REDIS_SERVER.EVICTED_KEYS.MAX:\"{#LOCATION_ID}\"}", + "name": "Redis Server[{#LOCATION}] is evicting keys", + "priority": "HIGH" + } + ] + }, + { + "uuid": "33c508f4f12d4396a257259a642fe06f", + "name": "Redis Server[{#LOCATION}] - stats:expired_keys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:expired_keys\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:expired_keys']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "fe11dd3f19c04aae885a5e65be84ac44", + "name": "Redis Server[{#LOCATION}] - stats:keyspace_hits", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:keyspace_hits']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2ca4880622a84537afb2e152e90d9b0e", + "name": "Redis Server[{#LOCATION}] - stats:keyspace_misses", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:keyspace_misses']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "d3c74496265344908c67fc707c5574a0", + "name": "Redis Server[{#LOCATION}] - stats:pubsub_channels", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_channels\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:pubsub_channels']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "1da281315beb42cdb47a46bd04705279", + "name": "Redis Server[{#LOCATION}] - stats:pubsub_patterns", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_patterns\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:pubsub_patterns']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "b30b5ebbba5a4fb283d8555e4f31e6db", + "name": "Redis Server[{#LOCATION}] - stats:rejected_connections", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:rejected_connections\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:rejected_connections']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "72a93e5d77da499da6fa35a449f8bdab", + "name": "Redis Server[{#LOCATION}] - stats:sync_full", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_full\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:sync_full']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "de56a2ed709442f38c7ee2b1062e71f7", + "name": "Redis Server[{#LOCATION}] - stats:sync_partial_err", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_err\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:sync_partial_err']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "694a8e6cbf1046908889b5f01f2fe833", + "name": "Redis Server[{#LOCATION}] - stats:sync_partial_ok", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_ok\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:sync_partial_ok']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "41e203934ce34e1d9c60e944f71cd157", + "name": "Redis Server[{#LOCATION}] - stats:total_commands_processed", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_commands_processed\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_commands_processed']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "6d3bbd28afea4972b04d21e2514d630a", + "name": "Redis Server[{#LOCATION}] - stats:total_connections_received", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_connections_received\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_connections_received']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "0363d2b2013e4b1e9128f4aef5ee98f9", + "name": "Redis Server[{#LOCATION}] - stats:total_net_input_bytes", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_input_bytes\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "Bps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_net_input_bytes']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "3353518069404f049df2323c464e827c", + "name": "Redis Server[{#LOCATION}] - stats:total_net_output_bytes", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_output_bytes\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value_type": "FLOAT", + "units": "Bps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_net_output_bytes']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "9f2a6de254b143a0abf7e7e0d7a8f672", + "expression": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED:\"{#LOCATION_ID}\"} and find(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"],,\"eq\",\"master\")=1 and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"])=0", + "name": "Redis Server[{#LOCATION}] is a master without slaves", + "priority": "HIGH" + } + ] + }, + { + "uuid": "0ab4e802e3f74f45a5e07cc7cdba333b", + "name": "Keyspace discovery", + "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"keyspace\"]", + "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"keyspace\"}", + "filter": { + "conditions": [ + { + "macro": "{#SUBJECT}", + "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"keyspace\"}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "A" + } + ] + }, + "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"keyspace\"}", + "item_prototypes": [ + { + "uuid": "d0ce35df09b2476b86ca8fc486a3b0e8", + "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:avg_ttl", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:avg_ttl\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:avg_ttl']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "390d42e974e044e4bc0069b87588e6e8", + "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:expires", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:expires\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:expires']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "9d67ee3b117b479ca89876103ffddbeb", + "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:keys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:keys\"]", + "delay": "0", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:keys']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "macros": [ + { + "macro": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED}", + "value": "1" + }, + { + "macro": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED}", + "value": "1" + }, + { + "macro": "{$REDIS_SERVER.EVICTED_KEYS.MAX}", + "value": "0.0" + }, + { + "macro": "{$REDIS_SERVER.EXCLUDED_STATS}" + }, + { + "macro": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value": "30d" + }, + { + "macro": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value": "365d" + }, + { + "macro": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "value": "1m" + }, + { + "macro": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS}", + "value": "^(?!)" + }, + { + "macro": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD}", + "value": "30d" + }, + { + "macro": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL}", + "value": "1h" + }, + { + "macro": "{$REDIS_SERVER.LOCATIONS}" + }, + { + "macro": "{$REDIS_SERVER.PROCESSES.MIN}", + "value": "1" + }, + { + "macro": "{$REDIS_SERVER.UPTIME.MIN}", + "value": "10m" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.0/zfs-zabbix-template.json b/zabbix-templates/6.0/zfs-zabbix-template.json new file mode 100644 index 0000000..100c7a3 --- /dev/null +++ b/zabbix-templates/6.0/zfs-zabbix-template.json @@ -0,0 +1,1530 @@ +{ + "zabbix_export": { + "version": "6.0", + "date": "2024-08-20T09:43:38Z", + "groups": [ + { + "uuid": "18fce3c341e74778ba11126e46a87ebd", + "name": "Nextcloud Installation" + }, + { + "uuid": "7df96b18c230490a9a0a9e2307226338", + "name": "Templates" + } + ], + "templates": [ + { + "uuid": "47d3c2ff933947368d4bee4b1184d69b", + "template": "ZFS", + "name": "ZFS", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates" + } + ], + "items": [ + { + "uuid": "4ecabdcb2104460f83c2ad5f18fd98f9", + "name": "ZFS on Linux version", + "type": "ZABBIX_ACTIVE", + "key": "vfs.file.contents[/sys/module/zfs/version]", + "delay": "1h", + "history": "30d", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + } + ], + "triggers": [ + { + "uuid": "879881de9f8b4b97b5270df192d86850", + "expression": "(last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#1)<>last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#2))>0", + "name": "Version of ZoL is now {ITEM.VALUE} on {HOST.NAME}", + "priority": "INFO" + } + ] + }, + { + "uuid": "6b5fc935fe194d30badea64eaf3f317f", + "name": "ZFS ARC stat \"arc_dnode_limit\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[arc_dnode_limit]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "0b7d673688e3429d92aa349762729f83", + "name": "ZFS ARC stat \"arc_meta_limit\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[arc_meta_limit]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "b0b5004458494182bf874545f8eb4e41", + "name": "ZFS ARC stat \"arc_meta_used\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[arc_meta_used]", + "history": "30d", + "units": "B", + "description": "arc_meta_used = hdr_size + metadata_size + dbuf_size + dnode_size + bonus_size", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "795ab079ba13461c872ee1d5c0295704", + "name": "ZFS ARC stat \"bonus_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[bonus_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "34a1fb79b2b64ce08ec5b377211372d7", + "name": "ZFS ARC max size", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[c_max]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "d60b8e4f7a3d4bea972e7fe04c3bb5ca", + "name": "ZFS ARC minimum size", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[c_min]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "5e12dd98f1644f5a87cc5ded5d2e55d8", + "name": "ZFS ARC stat \"data_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[data_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "522a0f33c90047bab4f55b7214f51dea", + "name": "ZFS ARC stat \"dbuf_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[dbuf_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "a3d10ebb57984a829f780a229fc9617c", + "name": "ZFS ARC stat \"dnode_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[dnode_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "184eef57aa034cf8acaf6a8f0e02395b", + "name": "ZFS ARC stat \"hdr_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[hdr_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "cb7bcc02dfc14329a361e194145871c0", + "name": "ZFS ARC stat \"hits\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[hits]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "8df273b6e0904c9ab140f8f13f6ca973", + "name": "ZFS ARC stat \"metadata_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[metadata_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "dcd96743ed984018bff5d16105693606", + "name": "ZFS ARC stat \"mfu_hits\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mfu_hits]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "1015ebe8ef6f4626ae7967bf6358f1b3", + "name": "ZFS ARC stat \"mfu_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mfu_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "1298a265a6784e63a166b768e1faf67e", + "name": "ZFS ARC stat \"misses\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[misses]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "c85d0e9e1b464748a20148e2f2507609", + "name": "ZFS ARC stat \"mru_hits\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mru_hits]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "50954c7b43d745d09990011df4d7448c", + "name": "ZFS ARC stat \"mru_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mru_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "cd225da5a02346a58dbe0c9808a628eb", + "name": "ZFS ARC current size", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "8c8129f814fe47ae9c71e636599acd90", + "name": "ZFS ARC Cache Hit Ratio", + "type": "CALCULATED", + "key": "zfs.arcstats_hit_ratio", + "history": "30d", + "value_type": "FLOAT", + "units": "%", + "params": "100*(last(//zfs.arcstats[hits])/(last(//zfs.arcstats[hits])+count(//zfs.arcstats[hits],#1,,\"0\")+last(//zfs.arcstats[misses])))", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "e644390a9c9743f2844dbc9ef8806a8f", + "name": "ZFS ARC total read", + "type": "CALCULATED", + "key": "zfs.arcstats_total_read", + "history": "30d", + "units": "B", + "params": "last(//zfs.arcstats[hits])+last(//zfs.arcstats[misses])", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "ebfb742fb123451c9632d12bde0957c4", + "name": "ZFS parameter zfs_arc_dnode_limit_percent", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.param[zfs_arc_dnode_limit_percent]", + "delay": "1h", + "history": "30d", + "units": "%", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "18d8b817852848929f4e0b421cb21532", + "name": "ZFS parameter zfs_arc_meta_limit_percent", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.param[zfs_arc_meta_limit_percent]", + "delay": "1h", + "history": "30d", + "units": "%", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "a82a1b7067904fecb06bcf5b88457192", + "name": "Zfs Dataset discovery", + "type": "ZABBIX_ACTIVE", + "key": "zfs.fileset.discovery", + "delay": "30m", + "status": "DISABLED", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#FILESETNAME}", + "value": "{$ZFS_FSNAME_MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#FILESETNAME}", + "value": "{$ZFS_FSNAME_NOTMATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + } + ] + }, + "lifetime": "2d", + "description": "Discover ZFS dataset. Dataset names must contain a \"/\" else it's a zpool.", + "item_prototypes": [ + { + "uuid": "4d7c96bd10b44754b2c8790b90c12046", + "name": "Zfs dataset {#FILESETNAME} compressratio", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.compressratio[{#FILESETNAME}]", + "delay": "30m", + "history": "30d", + "value_type": "FLOAT", + "units": "%", + "preprocessing": [ + { + "type": "MULTIPLIER", + "parameters": [ + "100" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "e9df401ae71e45c8a3fdbbd146cdd57b", + "name": "Zfs dataset {#FILESETNAME} available", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},available]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "ed63bb6942364281bcea80c54b6f8fcc", + "name": "Zfs dataset {#FILESETNAME} referenced", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},referenced]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "7ef4530ddf464defb2a64ce674a82c8c", + "name": "Zfs dataset {#FILESETNAME} usedbychildren", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "3c7f982147be49629c78aa67a1d8d56e", + "name": "Zfs dataset {#FILESETNAME} usedbydataset", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]", + "delay": "1h", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "cc0e02c58b28443eb78eeacc81095966", + "name": "Zfs dataset {#FILESETNAME} usedbysnapshots", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "a54feffafdb34ba08f1474ab4710088d", + "name": "Zfs dataset {#FILESETNAME} used", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},used]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "cc0b0756d2fe42779b62adf63e38681d", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_AVERAGE_ALERT}/100)", + "name": "More than {$ZFS_AVERAGE_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "priority": "AVERAGE", + "dependencies": [ + { + "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)" + } + ] + }, + { + "uuid": "8bfb157ac42845c0b340e28ae510833c", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)", + "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "priority": "DISASTER" + }, + { + "uuid": "9b592a2cba084bec9ceb4f82367e758b", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)", + "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "priority": "HIGH", + "dependencies": [ + { + "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "5213684719404718b8956d6faf0e6b71", + "name": "ZFS dataset {#FILESETNAME} usage", + "type": "STACKED", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "sortorder": "1", + "color": "3333FF", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]" + } + }, + { + "sortorder": "2", + "color": "FF33FF", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]" + } + }, + { + "sortorder": "3", + "color": "FF3333", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]" + } + }, + { + "sortorder": "4", + "color": "33FF33", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},available]" + } + } + ] + } + ] + }, + { + "uuid": "08039e570bd7417294d043f4f7bf960f", + "name": "Zfs Pool discovery", + "type": "ZABBIX_ACTIVE", + "key": "zfs.pool.discovery", + "delay": "1h", + "lifetime": "3d", + "item_prototypes": [ + { + "uuid": "9f889e9529934fdfbf47a29de32468f0", + "name": "Zpool {#POOLNAME} available", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#POOLNAME},available]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "1993c04b00bc428bbdf43c909967afd2", + "name": "Zpool {#POOLNAME} used", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#POOLNAME},used]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "472e21c79759476984cbf4ce9f12580a", + "name": "Zpool {#POOLNAME} Health", + "type": "ZABBIX_ACTIVE", + "key": "zfs.zpool.health[{#POOLNAME}]", + "delay": "5m", + "history": "30d", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ], + "trigger_prototypes": [ + { + "uuid": "4855fe0ed61b444daad73aa6090b46af", + "expression": "find(/ZFS/zfs.zpool.health[{#POOLNAME}],,\"like\",\"ONLINE\")=0", + "name": "Zpool {#POOLNAME} is {ITEM.VALUE} on {HOST.NAME}", + "priority": "HIGH" + } + ] + }, + { + "uuid": "3207e6ffd0fa40c4a1d6e607e4e12375", + "name": "Zpool {#POOLNAME} read throughput", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.nread[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "Bps", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[5];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "78b418605f9b45b29bbd33b93a6b2e82", + "name": "Zpool {#POOLNAME} write throughput", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "Bps", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[6];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "6b35bf06bf4542318a7999ac4d7952f7", + "name": "Zpool {#POOLNAME} IOPS: reads", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.reads[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "iops", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[3];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "b99d5ab922324536bc2e013ac1fca306", + "name": "Zpool {#POOLNAME} IOPS: writes", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.writes[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "iops", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[4];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "7142e6f1eceb4dc29e3a03d494230564", + "name": "Zpool {#POOLNAME}: Get iostats", + "type": "ZABBIX_ACTIVE", + "key": "zfs.zpool.iostat[{#POOLNAME}]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "867075d6eb1743069be868007472192b", + "name": "Zpool {#POOLNAME} scrub status", + "type": "ZABBIX_ACTIVE", + "key": "zfs.zpool.scrub[{#POOLNAME}]", + "delay": "5m", + "history": "30d", + "description": "Detect if the pool is currently scrubbing itself.\n\nThis is not a bad thing itself, but it slows down the entire pool and should be terminated when on production server during business hours if it causes a noticeable slowdown.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ], + "trigger_prototypes": [ + { + "uuid": "792be07c555c4ae6a9819d69d332357b", + "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],12h)=0", + "name": "Zpool {#POOLNAME} is scrubbing for more than 12h on {HOST.NAME}", + "priority": "AVERAGE", + "dependencies": [ + { + "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", + "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0" + } + ] + }, + { + "uuid": "04cac9633f164227b1f9b2fe26923609", + "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0", + "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", + "priority": "HIGH" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "82fce07b30114c7e8645689317e2c1b4", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_AVERAGE_ALERT}/100)", + "name": "More than {$ZPOOL_AVERAGE_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "priority": "AVERAGE", + "dependencies": [ + { + "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)" + } + ] + }, + { + "uuid": "ab56a2a8eb3d4b4294707e2a8aa94e22", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)", + "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "priority": "DISASTER" + }, + { + "uuid": "c9c22e6617af4ad09970d2988c4a7fe7", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)", + "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "priority": "HIGH", + "dependencies": [ + { + "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "926abae3e18144f0899711fdfd16e808", + "name": "ZFS zpool {#POOLNAME} IOPS", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "sortorder": "1", + "color": "5C6BC0", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.reads[{#POOLNAME}]" + } + }, + { + "sortorder": "2", + "color": "EF5350", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.writes[{#POOLNAME}]" + } + } + ] + }, + { + "uuid": "63ae2d7acd4d4d15b4c5e7a5a90a063a", + "name": "ZFS zpool {#POOLNAME} space usage", + "type": "STACKED", + "graph_items": [ + { + "sortorder": "1", + "color": "00EE00", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#POOLNAME},available]" + } + }, + { + "sortorder": "2", + "color": "EE0000", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#POOLNAME},used]" + } + } + ] + }, + { + "uuid": "aa35d164bacd45c5983fd2856781da88", + "name": "ZFS zpool {#POOLNAME} throughput", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "sortorder": "1", + "color": "5C6BC0", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.nread[{#POOLNAME}]" + } + }, + { + "sortorder": "2", + "drawtype": "BOLD_LINE", + "color": "EF5350", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]" + } + } + ] + } + ] + }, + { + "uuid": "6c96e092f08f4b98af9a377782180689", + "name": "Zfs vdev discovery", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.discovery", + "delay": "1h", + "lifetime": "3d", + "item_prototypes": [ + { + "uuid": "9f63161726774a28905c87aac92cf1e9", + "name": "vdev {#VDEV}: CHECKSUM error counter", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.error_counter.cksum[{#VDEV}]", + "delay": "5m", + "history": "30d", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ] + }, + { + "uuid": "48a02eb060fd4b73bdde08a2795c4717", + "name": "vdev {#VDEV}: READ error counter", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.error_counter.read[{#VDEV}]", + "delay": "5m", + "history": "30d", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ] + }, + { + "uuid": "15953ba38fde4b8c8681955a27d9204a", + "name": "vdev {#VDEV}: WRITE error counter", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.error_counter.write[{#VDEV}]", + "delay": "5m", + "history": "30d", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ] + }, + { + "uuid": "3e64a59d2a154a89a3bc43483942302d", + "name": "vdev {#VDEV}: total number of errors", + "type": "CALCULATED", + "key": "zfs.vdev.error_total[{#VDEV}]", + "delay": "5m", + "history": "30d", + "params": "last(//zfs.vdev.error_counter.cksum[{#VDEV}])+last(//zfs.vdev.error_counter.read[{#VDEV}])+last(//zfs.vdev.error_counter.write[{#VDEV}])", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ], + "trigger_prototypes": [ + { + "uuid": "44f7667c275d4a04891bc4f1d00e668b", + "expression": "last(/ZFS/zfs.vdev.error_total[{#VDEV}])>0", + "name": "vdev {#VDEV} has encountered {ITEM.VALUE} errors on {HOST.NAME}", + "priority": "HIGH", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.\n\nYou may also run a zpool scrub to check if some other undetected errors are present on this vdev." + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "ab78dba991ba4311a04740fc69b30381", + "name": "ZFS vdev {#VDEV} errors", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "CC00CC", + "item": { + "host": "ZFS", + "key": "zfs.vdev.error_counter.cksum[{#VDEV}]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "ZFS", + "key": "zfs.vdev.error_counter.read[{#VDEV}]" + } + }, + { + "sortorder": "2", + "color": "BBBB00", + "item": { + "host": "ZFS", + "key": "zfs.vdev.error_counter.write[{#VDEV}]" + } + } + ] + } + ] + } + ], + "macros": [ + { + "macro": "{$ZFS_ARC_META_ALERT}", + "value": "90" + }, + { + "macro": "{$ZFS_AVERAGE_ALERT}", + "value": "90" + }, + { + "macro": "{$ZFS_DISASTER_ALERT}", + "value": "99" + }, + { + "macro": "{$ZFS_FSNAME_MATCHES}", + "value": "/", + "description": "Use this to determine the datasets to autodiscover defaults to all datasets with a '/' in the name" + }, + { + "macro": "{$ZFS_FSNAME_NOTMATCHES}", + "value": "([a-z-0-9]{64}$|[a-z-0-9]{64}-init$)", + "description": "Use this to determine the datasets to not autodiscover. Ignore docker created datasets by default" + }, + { + "macro": "{$ZFS_HIGH_ALERT}", + "value": "95" + }, + { + "macro": "{$ZPOOL_AVERAGE_ALERT}", + "value": "85" + }, + { + "macro": "{$ZPOOL_DISASTER_ALERT}", + "value": "99" + }, + { + "macro": "{$ZPOOL_HIGH_ALERT}", + "value": "90" + } + ], + "dashboards": [ + { + "uuid": "a9f68a4f268e4fc2902aef1ca07f981b", + "name": "ZFS ARC", + "pages": [ + [] + ] + }, + { + "uuid": "e332569cdf334a6eaf795ae78216f062", + "name": "ZFS zpools", + "pages": [ + { + "widgets": [ + { + "type": "GRAPH_PROTOTYPE", + "width": "8", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS zpool {#POOLNAME} IOPS" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "x": "8", + "width": "8", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS zpool {#POOLNAME} throughput" + } + } + ] + }, + { + "type": "GRAPH_PROTOTYPE", + "x": "16", + "width": "8", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS zpool {#POOLNAME} space usage" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "d1d7b0898d06481dbcec8b02d915fb1c", + "name": "ZFS zpool scrub status", + "mappings": [ + { + "value": "0", + "newvalue": "Scrub in progress" + }, + { + "value": "1", + "newvalue": "No scrub in progress" + } + ] + } + ] + } + ], + "triggers": [ + { + "uuid": "1daac44b853b4b6da767c9c3af96b774", + "expression": "last(/ZFS/zfs.arcstats[dnode_size])>(last(/ZFS/zfs.arcstats[arc_dnode_limit])*0.9)", + "name": "ZFS ARC dnode size > 90% dnode max size on {HOST.NAME}", + "priority": "HIGH" + }, + { + "uuid": "69c18b7ceb3d4da2bda0e05f9a12453f", + "expression": "last(/ZFS/zfs.arcstats[arc_meta_used])>(last(/ZFS/zfs.arcstats[arc_meta_limit])*0.01*{$ZFS_ARC_META_ALERT})", + "name": "ZFS ARC meta size > {$ZFS_ARC_META_ALERT}% meta max size on {HOST.NAME}", + "priority": "HIGH" + } + ], + "graphs": [ + { + "uuid": "1510111dc5414e6d80a5230ce6a81f1d", + "name": "ZFS ARC arc_meta_used breakdown", + "type": "STACKED", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "3333FF", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[metadata_size]" + } + }, + { + "sortorder": "1", + "color": "00EE00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dnode_size]" + } + }, + { + "sortorder": "2", + "color": "EE0000", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[hdr_size]" + } + }, + { + "sortorder": "3", + "color": "EEEE00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dbuf_size]" + } + }, + { + "sortorder": "4", + "color": "EE00EE", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[bonus_size]" + } + } + ] + }, + { + "uuid": "203eeeaadc9444ccbbc31cf043e836cb", + "name": "ZFS ARC breakdown", + "type": "STACKED", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "3333FF", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[data_size]" + } + }, + { + "sortorder": "1", + "color": "00AA00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[metadata_size]" + } + }, + { + "sortorder": "2", + "color": "EE0000", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dnode_size]" + } + }, + { + "sortorder": "3", + "color": "CCCC00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[hdr_size]" + } + }, + { + "sortorder": "4", + "color": "A54F10", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dbuf_size]" + } + }, + { + "sortorder": "5", + "color": "888888", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[bonus_size]" + } + } + ] + }, + { + "uuid": "4c493303be4a45a7a96d3ef7246843c0", + "name": "ZFS ARC Cache Hit Ratio", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "color": "00CC00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats_hit_ratio" + } + } + ] + }, + { + "uuid": "b2fce9515a7d4218a5e9015f212c2a60", + "name": "ZFS ARC memory usage", + "ymin_type_1": "FIXED", + "ymax_type_1": "ITEM", + "ymax_item_1": { + "host": "ZFS", + "key": "zfs.arcstats[c_max]" + }, + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "0000EE", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[size]" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "DD0000", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[c_max]" + } + }, + { + "sortorder": "2", + "color": "00BB00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[c_min]" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/OBSOLETE-redis-zabbix-template.json b/zabbix-templates/6.4/OBSOLETE-redis-zabbix-template.json new file mode 100644 index 0000000..86a87e0 --- /dev/null +++ b/zabbix-templates/6.4/OBSOLETE-redis-zabbix-template.json @@ -0,0 +1,4665 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", + "name": "Nextcloud Installation" + }, + { + "uuid": "748ad4d098d447d492bb935c907f652f", + "name": "Templates/Databases" + } + ], + "templates": [ + { + "uuid": "e111446745a1425b862f8727ae63bce4", + "template": "Redis by Zabbix agent 2", + "name": "Redis by Zabbix agent 2", + "description": "Get Redis metrics from plugin for the New Zabbix Agent (zabbix-agent2).\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/389050-discussion-thread-for-official-zabbix-template-redis\n\nTemplate tooling version used: 0.41", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates/Databases" + } + ], + "items": [ + { + "uuid": "bc4989f098954259924cbee6717519a7", + "name": "Redis: Blocked clients", + "type": "DEPENDENT", + "key": "redis.clients.blocked", + "delay": "0", + "history": "7d", + "description": "The number of connections waiting on a blocking call", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Clients.blocked_clients" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "6140e8ff18fe41c6b65165b0f5346c7b", + "name": "Redis: Connected clients", + "type": "DEPENDENT", + "key": "redis.clients.connected", + "delay": "0", + "history": "7d", + "description": "The number of connected clients", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Clients.connected_clients" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "3f5d6532f403436c823e1461e49e54c2", + "name": "Redis: Max input buffer", + "type": "DEPENDENT", + "key": "redis.clients.max_input_buffer", + "delay": "0", + "history": "7d", + "description": "The biggest input buffer among current client connections", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var clients = JSON.parse(value).Clients\nreturn clients.client_recent_max_input_buffer || clients.client_biggest_input_buf" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "44788aa774e64fe685fe6496a9bea97d", + "name": "Redis: Max output buffer", + "type": "DEPENDENT", + "key": "redis.clients.max_output_buffer", + "delay": "0", + "history": "7d", + "description": "The biggest output buffer among current client connections", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var clients = JSON.parse(value).Clients\nreturn clients.client_recent_max_output_buffer || clients.client_longest_output_list" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "74f9fe26bdaf4a7bb86214bd7d500363", + "name": "Redis: Cluster enabled", + "type": "DEPENDENT", + "key": "redis.cluster.enabled", + "delay": "0", + "history": "7d", + "description": "Indicate Redis cluster is enabled", + "valuemap": { + "name": "Redis flag" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Cluster.cluster_enabled" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "066486e3be25406185e624611eeb167a", + "name": "Redis: Max clients", + "type": "DEPENDENT", + "key": "redis.config.maxclients", + "delay": "0", + "history": "7d", + "description": "Max number of connected clients at the same time.\nOnce the limit is reached Redis will close all the new connections sending an error \"max number of clients reached\".", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.maxclients" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "30m" + ] + } + ], + "master_item": { + "key": "redis.config[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "bf68f3ecc3544ef0af00889139caf313", + "name": "Redis: Get config", + "key": "redis.config[\"{$REDIS.CONN.URI}\"]", + "history": "1h", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "raw" + } + ], + "triggers": [ + { + "uuid": "819b379b51c34616820f86d21c703b27", + "expression": "last(/Redis by Zabbix agent 2/redis.config[\"{$REDIS.CONN.URI}\"],#1)<>last(/Redis by Zabbix agent 2/redis.config[\"{$REDIS.CONN.URI}\"],#2) and length(last(/Redis by Zabbix agent 2/redis.config[\"{$REDIS.CONN.URI}\"]))>0", + "name": "Redis: Configuration has changed", + "event_name": "Redis: Version has changed (new version: {ITEM.VALUE})", + "priority": "INFO", + "description": "Redis configuration has changed. Ack to close.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "99d427f1f76a468c9878225abb8cebbd", + "name": "Redis: CPU sys", + "type": "DEPENDENT", + "key": "redis.cpu.sys", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "System CPU consumed by the Redis server", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.CPU.used_cpu_sys" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "1bfce9a62c924510a9cac3b04320d838", + "name": "Redis: CPU sys children", + "type": "DEPENDENT", + "key": "redis.cpu.sys_children", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "System CPU consumed by the background processes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.CPU.used_cpu_sys_children" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "83e7c9f5b8a24c949d72125671d6d39a", + "name": "Redis: CPU user", + "type": "DEPENDENT", + "key": "redis.cpu.user", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "User CPU consumed by the Redis server", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.CPU.used_cpu_user" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "8bc18ca0c79d4a81811b600cf3fe8ddd", + "name": "Redis: CPU user children", + "type": "DEPENDENT", + "key": "redis.cpu.user_children", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "User CPU consumed by the background processes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.CPU.used_cpu_user_children" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "720f146ffe7e481482e11db4b99634c8", + "name": "Redis: Get info", + "key": "redis.info[\"{$REDIS.CONN.URI}\"]", + "history": "1h", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ], + "triggers": [ + { + "uuid": "0a5176877ba24df8b5d38c8cc544f0a8", + "expression": "nodata(/Redis by Zabbix agent 2/redis.info[\"{$REDIS.CONN.URI}\"],30m)=1", + "name": "Redis: Failed to fetch info data", + "event_name": "Redis: Failed to fetch info data (or no data for 30m)", + "priority": "WARNING", + "description": "Zabbix has not received data for items for the last 30 minutes", + "manual_close": "YES", + "dependencies": [ + { + "name": "Redis: Service is down", + "expression": "last(/Redis by Zabbix agent 2/redis.ping[\"{$REDIS.CONN.URI}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "5fe2afa1c8ff434a876822ea0b290659", + "name": "Redis: Memory fragmentation ratio", + "type": "DEPENDENT", + "key": "redis.memory.fragmentation_ratio", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "This ratio is an indication of memory mapping efficiency:\n \u2014 Value over 1.0 indicate that memory fragmentation is very likely. Consider restarting the Redis server so the operating system can recover fragmented memory, especially with a ratio over 1.5.\n \u2014 Value under 1.0 indicate that Redis likely has insufficient memory available. Consider optimizing memory usage or adding more RAM.\n\nNote: If your peak memory usage is much higher than your current memory usage, the memory fragmentation ratio may be unreliable.\n\nhttps://redis.io/topics/memory-optimization", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_fragmentation_ratio" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ], + "triggers": [ + { + "uuid": "629531ff1ebc4bdbb1f277848c436230", + "expression": "min(/Redis by Zabbix agent 2/redis.memory.fragmentation_ratio,15m)>{$REDIS.MEM.FRAG_RATIO.MAX.WARN}", + "name": "Redis: Memory fragmentation ratio is too high", + "event_name": "Redis: Memory fragmentation ratio is too high (over {$REDIS.MEM.FRAG_RATIO.MAX.WARN} in 15m)", + "priority": "WARNING", + "description": "This ratio is an indication of memory mapping efficiency:\n \u2014 Value over 1.0 indicate that memory fragmentation is very likely. Consider restarting the Redis server so the operating system can recover fragmented memory, especially with a ratio over 1.5.\n \u2014 Value under 1.0 indicate that Redis likely has insufficient memory available. Consider optimizing memory usage or adding more RAM.\n\nNote: If your peak memory usage is much higher than your current memory usage, the memory fragmentation ratio may be unreliable.\n\nhttps://redis.io/topics/memory-optimization", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "5fef1d341a974cc5aa164e550aff1537", + "name": "Redis: Memory used", + "type": "DEPENDENT", + "key": "redis.memory.used_memory", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Total number of bytes allocated by Redis using its allocator", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "de026d98fd9146b78f9a0be2c0b9de10", + "name": "Redis: Memory used Lua", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_lua", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Amount of memory used by the Lua engine", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_lua" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "d3f05ab1c0404f01875afb964d9820e2", + "name": "Redis: Memory used peak", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_peak", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Peak memory consumed by Redis (in bytes)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_peak" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "ef06ae3dd4784702ad0d281da94c294d", + "name": "Redis: Memory used RSS", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_rss", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Number of bytes that Redis allocated as seen by the operating system", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_rss" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "86501872c68c4e9fa4b55aaacebb3c3c", + "name": "Redis: AOF current rewrite time sec", + "type": "DEPENDENT", + "key": "redis.persistence.aof_current_rewrite_time_sec", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "Duration of the on-going AOF rewrite operation if any", + "valuemap": { + "name": "Redis bgsave time" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_current_rewrite_time_sec" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "d298e1ce9aa1481391a48754e2a648b0", + "name": "Redis: AOF enabled", + "type": "DEPENDENT", + "key": "redis.persistence.aof_enabled", + "delay": "0", + "history": "7d", + "description": "Flag indicating AOF logging is activated", + "valuemap": { + "name": "Redis flag" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_enabled" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "e2e62cc728c04169afeb051000042e28", + "name": "Redis: AOF last bgrewrite status", + "type": "DEPENDENT", + "key": "redis.persistence.aof_last_bgrewrite_status", + "delay": "0", + "history": "7d", + "description": "Status of the last AOF rewrite operation", + "valuemap": { + "name": "Redis bgwrite status" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_last_bgrewrite_status" + ] + }, + { + "type": "BOOL_TO_DECIMAL", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "5a14501541c44699b81e3a89cc93d628", + "name": "Redis: AOF last rewrite time sec", + "type": "DEPENDENT", + "key": "redis.persistence.aof_last_rewrite_time_sec", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "Duration of the last AOF rewrite", + "valuemap": { + "name": "Redis bgsave time" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_last_rewrite_time_sec" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "2cfd96e347d341219238bdaf65f1846d", + "name": "Redis: AOF last write status", + "type": "DEPENDENT", + "key": "redis.persistence.aof_last_write_status", + "delay": "0", + "history": "7d", + "description": "Status of the last write operation to the AOF", + "valuemap": { + "name": "Redis bgwrite status" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_last_write_status" + ] + }, + { + "type": "BOOL_TO_DECIMAL", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ], + "triggers": [ + { + "uuid": "324e0e8fac514ba99d67aea7eb0ddf7c", + "expression": "last(/Redis by Zabbix agent 2/redis.persistence.aof_last_write_status)=0", + "name": "Redis: Last AOF write operation failed", + "priority": "WARNING", + "description": "Detailed information about persistence: https://redis.io/topics/persistence", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "3f4866909425447a828600e9b44ace5b", + "name": "Redis: AOF rewrite in progress", + "type": "DEPENDENT", + "key": "redis.persistence.aof_rewrite_in_progress", + "delay": "0", + "history": "7d", + "description": "Flag indicating a AOF rewrite operation is on-going", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_rewrite_in_progress" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "83d243cc46304694954e08c0b03a3527", + "name": "Redis: AOF rewrite scheduled", + "type": "DEPENDENT", + "key": "redis.persistence.aof_rewrite_scheduled", + "delay": "0", + "history": "7d", + "description": "Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_rewrite_scheduled" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "90df2d442dc049d690044b92e0888c31", + "name": "Redis: Dump loading", + "type": "DEPENDENT", + "key": "redis.persistence.loading", + "delay": "0", + "history": "7d", + "description": "Flag indicating if the load of a dump file is on-going", + "valuemap": { + "name": "Redis flag" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.loading" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "5b1ecad187764429a22cbeb69afa3a28", + "name": "Redis: RDB bgsave in progress", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_bgsave_in_progress", + "delay": "0", + "history": "7d", + "description": "\"1\" if bgsave is in progress and \"0\" otherwise", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_bgsave_in_progress" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "ea673953a3014dc091ec62a20ee53945", + "name": "Redis: RDB changes since last save", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_changes_since_last_save", + "delay": "0", + "history": "7d", + "description": "Number of changes since the last background save", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_changes_since_last_save" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "d8c4d8fceeb5482a951999eedd350f73", + "name": "Redis: RDB current bgsave time sec", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_current_bgsave_time_sec", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "Duration of the on-going RDB save operation if any", + "valuemap": { + "name": "Redis bgsave time" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_current_bgsave_time_sec" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "e25772b422314949a564f219d6f725bc", + "name": "Redis: RDB last bgsave status", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_last_bgsave_status", + "delay": "0", + "history": "7d", + "description": "Status of the last RDB save operation", + "valuemap": { + "name": "Redis bgwrite status" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_last_bgsave_status" + ] + }, + { + "type": "BOOL_TO_DECIMAL", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ], + "triggers": [ + { + "uuid": "44e427ae3ce7419dbac3059be11e31ef", + "expression": "last(/Redis by Zabbix agent 2/redis.persistence.rdb_last_bgsave_status)=0", + "name": "Redis: Last RDB save operation failed", + "priority": "WARNING", + "description": "Detailed information about persistence: https://redis.io/topics/persistence", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "f506941104e34db08c0d8f5a6d9d9710", + "name": "Redis: RDB last bgsave time sec", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_last_bgsave_time_sec", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "Duration of the last bg_save operation", + "valuemap": { + "name": "Redis bgsave time" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_last_bgsave_time_sec" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "04e1c21ca49246d7aba062cd001a8c00", + "name": "Redis: RDB last save time", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_last_save_time", + "delay": "0", + "history": "7d", + "description": "Epoch-based timestamp of last successful RDB save", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_last_save_time" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "5949fadcbe2b405baff0668e81627278", + "name": "Redis: Ping", + "key": "redis.ping[\"{$REDIS.CONN.URI}\"]", + "history": "7h", + "valuemap": { + "name": "Service state" + }, + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "10m" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "62353f9ed6204b70ba270827c3922244", + "expression": "last(/Redis by Zabbix agent 2/redis.ping[\"{$REDIS.CONN.URI}\"])=0", + "name": "Redis: Service is down", + "priority": "AVERAGE", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "6680a01fb98c4504bed6458ba6cde146", + "name": "Redis: Connected slaves", + "type": "DEPENDENT", + "key": "redis.replication.connected_slaves", + "delay": "0", + "history": "7d", + "description": "Number of connected slaves", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.connected_slaves" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "triggers": [ + { + "uuid": "6d213088211a4bb38ff97b59113dccd9", + "expression": "last(/Redis by Zabbix agent 2/redis.replication.connected_slaves,#1)<>last(/Redis by Zabbix agent 2/redis.replication.connected_slaves,#2)", + "recovery_mode": "NONE", + "name": "Redis: Number of slaves has changed", + "priority": "INFO", + "description": "Redis number of slaves has changed. Ack to close.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "37fa1595299c4a3ea091039f4db47cf3", + "name": "Redis: Master replication offset", + "type": "DEPENDENT", + "key": "redis.replication.master_repl_offset", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Replication offset reported by the master", + "valuemap": { + "name": "Redis repl offset" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.master_repl_offset" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "cf067374339e44e5a4ba2cd70d4fec3a", + "name": "Redis: Replication backlog active", + "type": "DEPENDENT", + "key": "redis.replication.repl_backlog_active", + "delay": "0", + "history": "7d", + "description": "Flag indicating replication backlog is active", + "valuemap": { + "name": "Redis flag" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.repl_backlog_active" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "b4ea8df4d73144f99ffd4f5f6e6359ef", + "name": "Redis: Replication backlog first byte offset", + "type": "DEPENDENT", + "key": "redis.replication.repl_backlog_first_byte_offset", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The master offset of the replication backlog buffer", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.repl_backlog_first_byte_offset" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "081cd9df926d48cea7e5c68f7761ddb1", + "name": "Redis: Replication backlog history length", + "type": "DEPENDENT", + "key": "redis.replication.repl_backlog_histlen", + "delay": "0", + "history": "7d", + "description": "Amount of data in the backlog sync buffer", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.repl_backlog_histlen" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "a437a46aafe3413884975fc480091bb5", + "name": "Redis: Replication backlog size", + "type": "DEPENDENT", + "key": "redis.replication.repl_backlog_size", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Total size in bytes of the replication backlog buffer", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.repl_backlog_size" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "d8371457697744159aabc3bdece4af2e", + "name": "Redis: Replication role", + "type": "DEPENDENT", + "key": "redis.replication.role", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Value is \"master\" if the instance is replica of no one, or \"slave\" if the instance is a replica of some master instance. Note that a replica can be master of another replica (chained replication).", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.role" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "triggers": [ + { + "uuid": "d24f7aabefb345e791b3bb276f30ac8c", + "expression": "last(/Redis by Zabbix agent 2/redis.replication.role,#1)<>last(/Redis by Zabbix agent 2/redis.replication.role,#2) and length(last(/Redis by Zabbix agent 2/redis.replication.role))>0", + "recovery_mode": "NONE", + "name": "Redis: Replication role has changed", + "event_name": "Redis: Replication role has changed (new role: {ITEM.VALUE})", + "priority": "WARNING", + "description": "Redis replication role has changed. Ack to close.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "8a08d4f30b78448986b9fd94cafd398c", + "name": "Redis: Process id", + "type": "DEPENDENT", + "key": "redis.server.process_id", + "delay": "0", + "history": "7d", + "description": "PID of the server process", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.process_id" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "os" + } + ] + }, + { + "uuid": "b2deab550d984b3e93741c53019e7f89", + "name": "Redis: Redis mode", + "type": "DEPENDENT", + "key": "redis.server.redis_mode", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The server's mode (\"standalone\", \"sentinel\" or \"cluster\")", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.redis_mode" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "9699d6a6563b498ea73f88a4c1dd9cf1", + "name": "Redis: Redis version", + "type": "DEPENDENT", + "key": "redis.server.redis_version", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Version of the Redis server", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.redis_version" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "6e307546b26344deb83f2295c90e9a33", + "expression": "last(/Redis by Zabbix agent 2/redis.server.redis_version,#1)<>last(/Redis by Zabbix agent 2/redis.server.redis_version,#2) and length(last(/Redis by Zabbix agent 2/redis.server.redis_version))>0", + "name": "Redis: Version has changed", + "event_name": "Redis: Version has changed (new version: {ITEM.VALUE})", + "priority": "INFO", + "description": "Redis version has changed. Ack to close.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "8c28e54f9e5d40d6b69c1f5b39b85054", + "name": "Redis: TCP port", + "type": "DEPENDENT", + "key": "redis.server.tcp_port", + "delay": "0", + "history": "7d", + "description": "TCP/IP listen port", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.tcp_port" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "af225edd976146f2920bc05afb703f14", + "name": "Redis: Uptime", + "type": "DEPENDENT", + "key": "redis.server.uptime", + "delay": "0", + "history": "7d", + "units": "s", + "description": "Number of seconds since Redis server start", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.uptime_in_seconds" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "4961e91eed2a4e83899d135315748b0e", + "expression": "last(/Redis by Zabbix agent 2/redis.server.uptime)<10m", + "name": "Redis: has been restarted", + "event_name": "Redis: has been restarted (uptime < 10m)", + "priority": "INFO", + "description": "Uptime is less than 10 minutes.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "51a65fa1d27e4fcd915c5019687e7bc9", + "name": "Redis: Slowlog entries per second", + "key": "redis.slowlog.count[\"{$REDIS.CONN.URI}\"]", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "37fb0255e49c42c8913e56fe4aaa1d14", + "expression": "min(/Redis by Zabbix agent 2/redis.slowlog.count[\"{$REDIS.CONN.URI}\"],5m)>{$REDIS.SLOWLOG.COUNT.MAX.WARN}", + "name": "Redis: Too many entries in the slowlog", + "event_name": "Redis: Too many entries in the slowlog (over {$REDIS.SLOWLOG.COUNT.MAX.WARN} per second in 5m)", + "priority": "INFO", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "eca69284ac8e4ae3a7e965b6549e9343", + "name": "Redis: Evicted keys", + "type": "DEPENDENT", + "key": "redis.stats.evicted_keys", + "delay": "0", + "history": "7d", + "description": "Number of evicted keys due to maxmemory limit", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.evicted_keys" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "0a77355cfba348bb8884d2405892ed5d", + "name": "Redis: Expired keys", + "type": "DEPENDENT", + "key": "redis.stats.expired_keys", + "delay": "0", + "history": "7d", + "description": "Total number of key expiration events", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.expired_keys" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "5841b6f2a76b432080029367e7008cd1", + "name": "Redis: Instantaneous input bytes per second", + "type": "DEPENDENT", + "key": "redis.stats.instantaneous_input.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "The network's read rate per second in KB/sec", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.instantaneous_input_kbps" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1024" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "3552b285d7ca41f796c1838e268a92c1", + "name": "Redis: Instantaneous operations per sec", + "type": "DEPENDENT", + "key": "redis.stats.instantaneous_ops.rate", + "delay": "0", + "history": "7d", + "description": "Number of commands processed per second", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.instantaneous_ops_per_sec" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "86c05ed58e8448e9b7307a3c82e182af", + "name": "Redis: Instantaneous output bytes per second", + "type": "DEPENDENT", + "key": "redis.stats.instantaneous_output.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "The network's write rate per second in KB/sec", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.instantaneous_output_kbps" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1024" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "66d30a422e704174ae7700e1dd006aa1", + "name": "Redis: Keyspace hits", + "type": "DEPENDENT", + "key": "redis.stats.keyspace_hits", + "delay": "0", + "history": "7d", + "description": "Number of successful lookup of keys in the main dictionary", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.keyspace_hits" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "e24da63a83dc4223bed35cf80fc22300", + "name": "Redis: Keyspace misses", + "type": "DEPENDENT", + "key": "redis.stats.keyspace_misses", + "delay": "0", + "history": "7d", + "description": "Number of failed lookup of keys in the main dictionary", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.keyspace_misses" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "1f11810f06d44e498a895c516f902f95", + "name": "Redis: Latest fork usec", + "type": "DEPENDENT", + "key": "redis.stats.latest_fork_usec", + "delay": "0", + "history": "7d", + "units": "s", + "description": "Duration of the latest fork operation in microseconds", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.latest_fork_usec" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1.0E-5" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "2662dfd3524749998306f1d7afe33019", + "name": "Redis: Migrate cached sockets", + "type": "DEPENDENT", + "key": "redis.stats.migrate_cached_sockets", + "delay": "0", + "history": "7d", + "description": "The number of sockets open for MIGRATE purposes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.migrate_cached_sockets" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "186e6bda0a0e463bb8218a58f227ff2b", + "name": "Redis: Pubsub channels", + "type": "DEPENDENT", + "key": "redis.stats.pubsub_channels", + "delay": "0", + "history": "7d", + "description": "Global number of pub/sub channels with client subscriptions", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.pubsub_channels" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "subscribes" + } + ] + }, + { + "uuid": "1e0711a2b40e4fea88c0c57a1f6d2b30", + "name": "Redis: Pubsub patterns", + "type": "DEPENDENT", + "key": "redis.stats.pubsub_patterns", + "delay": "0", + "history": "7d", + "description": "Global number of pub/sub pattern with client subscriptions", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.pubsub_patterns" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "subscribes" + } + ] + }, + { + "uuid": "65135267c836435d872325a7129e5857", + "name": "Redis: Rejected connections", + "type": "DEPENDENT", + "key": "redis.stats.rejected_connections", + "delay": "0", + "history": "7d", + "description": "Number of connections rejected because of maxclients limit", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.rejected_connections" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ], + "triggers": [ + { + "uuid": "5bf0680529ce496b8fe419e2732c69d1", + "expression": "last(/Redis by Zabbix agent 2/redis.stats.rejected_connections)>0", + "name": "Redis: Connections are rejected", + "priority": "HIGH", + "description": "The number of connections has reached the value of \"maxclients\".\n\nhttps://redis.io/topics/clients", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "37135fd8b7e94c41bc21e802f21baeb4", + "name": "Redis: Sync full", + "type": "DEPENDENT", + "key": "redis.stats.sync_full", + "delay": "0", + "history": "7d", + "description": "The number of full resyncs with replicas", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.sync_full" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "cb5b6380b164419280fdcd98077c5d8f", + "name": "Redis: Sync partial err", + "type": "DEPENDENT", + "key": "redis.stats.sync_partial_err", + "delay": "0", + "history": "7d", + "description": "The number of denied partial resync requests", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.sync_partial_err" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "231560fd350e4b5096b242dddecd7c8b", + "name": "Redis: Sync partial ok", + "type": "DEPENDENT", + "key": "redis.stats.sync_partial_ok", + "delay": "0", + "history": "7d", + "description": "The number of accepted partial resync requests", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.sync_partial_ok" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "278ff045f367443380fcd594dba77d53", + "name": "Redis: Total commands processed", + "type": "DEPENDENT", + "key": "redis.stats.total_commands_processed", + "delay": "0", + "history": "7d", + "description": "Total number of commands processed by the server", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.total_commands_processed" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "commands" + } + ] + }, + { + "uuid": "c9afbbbec8a44926887389a590f1df91", + "name": "Redis: Total connections received", + "type": "DEPENDENT", + "key": "redis.stats.total_connections_received", + "delay": "0", + "history": "7d", + "description": "Total number of connections accepted by the server", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.total_connections_received" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "838cb6cbfd8a42e1b9cfa4a60670324a", + "name": "Redis: Total net input bytes", + "type": "DEPENDENT", + "key": "redis.stats.total_net_input_bytes", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The total number of bytes read from the network", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.total_net_input_bytes" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "762f6b06eb094de896d265fcf3f9a603", + "name": "Redis: Total net output bytes", + "type": "DEPENDENT", + "key": "redis.stats.total_net_output_bytes", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The total number of bytes written to the network", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.total_net_output_bytes" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "527a3526b0e64225bb3dcf2dbbfbda5b", + "name": "Process metrics discovery", + "key": "proc.num[\"{$REDIS.LLD.PROCESS_NAME}\"]", + "delay": "1h", + "description": "Collect metrics by Zabbix agent if it exists", + "item_prototypes": [ + { + "uuid": "376a8861723c45c3bde08573c7ab2ed9", + "name": "Redis: CPU utilization", + "key": "proc.cpu.util[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\"]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "Process CPU utilization percentage.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "9d68e00f913a4faea5a334d361f324b0", + "name": "Redis: Memory usage (rss)", + "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,rss]", + "history": "7d", + "units": "B", + "description": "Resident set size memory used by process in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "325cabaa95994a58bf30992586ba7544", + "name": "Redis: Memory usage (vsize)", + "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,vsize]", + "history": "7d", + "units": "B", + "description": "Virtual memory size used by process in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "d9ccc25e5d1b4f05b22354a7672b518c", + "name": "Redis: Number of processes running", + "key": "proc.num[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\"]", + "history": "7d", + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "trigger_prototypes": [ + { + "uuid": "590bd23c52b74dd7951dcf74903ac2ed", + "expression": "last(/Redis by Zabbix agent 2/proc.num[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\"])=0", + "name": "Redis: Process is not running", + "priority": "HIGH", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "e26f8c31c3654febbeda2ffb97438c36", + "name": "Redis: Memory usage{#SINGLETON}", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,vsize]" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,rss]" + } + } + ] + } + ], + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value > 0 ? [{'{#SINGLETON}': ''}] : []);" + ] + } + ] + }, + { + "uuid": "0f7966f47fda4b41856163ffb438bf27", + "name": "Keyspace discovery", + "type": "DEPENDENT", + "key": "redis.keyspace.discovery", + "delay": "0", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#DB}", + "value": "{$REDIS.LLD.FILTER.DB.MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#DB}", + "value": "{$REDIS.LLD.FILTER.DB.NOT_MATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + } + ] + }, + "description": "Individual keyspace metrics", + "item_prototypes": [ + { + "uuid": "38fcb8524f1b4f50a4945333fc6c7536", + "name": "DB {#DB}: Average TTL", + "type": "DEPENDENT", + "key": "redis.db.avg_ttl[\"{#DB}\"]", + "delay": "0", + "history": "7d", + "units": "s", + "description": "Average TTL", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Keyspace[\"{#DB}\"].avg_ttl" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + }, + { + "tag": "database", + "value": "{#DB}" + } + ] + }, + { + "uuid": "bde12d459b7b4e23a22ed6188b57bb25", + "name": "DB {#DB}: Expires", + "type": "DEPENDENT", + "key": "redis.db.expires[\"{#DB}\"]", + "delay": "0", + "history": "7d", + "description": "Number of keys with an expiration", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Keyspace[\"{#DB}\"].expires" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + }, + { + "tag": "database", + "value": "{#DB}" + } + ] + }, + { + "uuid": "2bae0d2f8b8348bcad207b61ef6286c3", + "name": "DB {#DB}: Keys", + "type": "DEPENDENT", + "key": "redis.db.keys[\"{#DB}\"]", + "delay": "0", + "history": "7d", + "description": "Total number of keys", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Keyspace[\"{#DB}\"].keys" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + }, + { + "tag": "database", + "value": "{#DB}" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "3271f3a143dc43f38a674b6cbae8cd0d", + "name": "DB {#DB}: Keys", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.db.keys[\"{#DB}\"]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.db.expires[\"{#DB}\"]" + } + } + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(Object.keys(JSON.parse(value).Keyspace)\n .map(function (v){return {\"{#DB}\": v}}));" + ] + } + ] + }, + { + "uuid": "a3fb00d4bbc24779b6c7223b867f4d2c", + "name": "Version 4+ metrics discovery", + "type": "DEPENDENT", + "key": "redis.metrics.v4.discovery", + "delay": "0", + "description": "Additional metrics for versions 4+", + "item_prototypes": [ + { + "uuid": "b7e8d996335f41158b3c6a8961319db0", + "name": "Redis: Active defrag running{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.active_defrag_running[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Flag indicating if active defragmentation is active", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.active_defrag_running" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "2065e38cd7e5417abfd0b80116b0d77b", + "name": "Redis: Lazyfree pending objects{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.lazyfree_pending_objects[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of objects waiting to be freed (as a result of calling UNLINK, or FLUSHDB and FLUSHALL with the ASYNC option)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.lazyfree_pending_objects" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "2c5c700b53374dac86d805384b6bc9b0", + "name": "Redis: Max memory{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.maxmemory[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Maximum amount of memory allocated to the Redisdb system", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.maxmemory" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "0f094be6d0fa4afda3aa7916fac4d3a3", + "name": "Redis: Max memory policy{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.maxmemory_policy[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The value of the maxmemory-policy configuration directive", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.maxmemory_policy" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "bf804c6ee44640168e15ca62803b7f10", + "name": "Redis: Total system memory{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.total_system_memory[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The total amount of memory that the Redis host has", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.total_system_memory" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "1c0e0355d5cd429f9a914fb67f29e366", + "name": "Redis: Memory used dataset{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_dataset[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The size in bytes of the dataset", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_dataset" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "4e5937420b3843568d9f36b40c0a3c28", + "name": "Redis: Memory used dataset %{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_dataset_perc[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The percentage of used_memory_dataset out of the net memory usage (used_memory minus used_memory_startup)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_dataset_perc" + ] + }, + { + "type": "REGEX", + "parameters": [ + "(.+)%", + "\\1" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "e085382c18f3473f9d2271024cd61e93", + "name": "Redis: Memory used overhead{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_overhead[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The sum in bytes of all overheads that the server allocated for managing its internal data structures", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_overhead" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "5da63141e8b145a38954736806602b4a", + "name": "Redis: Memory used peak %{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_peak_perc[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The percentage of used_memory_peak out of used_memory", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_peak_perc" + ] + }, + { + "type": "REGEX", + "parameters": [ + "(.+)%", + "\\1" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "dabd2918056b4b999f4b30bd8e64e8a1", + "name": "Redis: Memory used startup{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_startup[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Initial amount of memory consumed by Redis at startup in bytes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_startup" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "9da41967290742cb8daa2f69ac1d6966", + "name": "Redis: AOF last CoW size{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_last_cow_size[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The size in bytes of copy-on-write allocations during the last AOF rewrite operation", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_last_cow_size" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "768839c72e3f4be89e30dd0d140c9d03", + "name": "Redis: RDB last CoW size{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.rdb_last_cow_size[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The size in bytes of copy-on-write allocations during the last RDB save operation", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.rdb_last_cow_size" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "bead155d26054d0487622f29b86dcd2b", + "name": "Redis: Replication second offset{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.second_repl_offset[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "Offset up to which replication IDs are accepted", + "valuemap": { + "name": "Redis repl offset" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.second_repl_offset" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "14d062351a114e8eafa2b2b889317903", + "name": "Redis: Executable path{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.server.executable[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "The path to the server's executable", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.executable" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "5458542148954618a6d22df1effffe57", + "name": "Redis: Active defrag hits{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.active_defrag_hits[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of value reallocations performed by active the defragmentation process", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.active_defrag_hits" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "f8b424743dd24691be2bd07d5538b16a", + "name": "Redis: Active defrag key hits{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.active_defrag_key_hits[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of keys that were actively defragmented", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.active_defrag_key_hits" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "8aba0ad8d7314b6b8cf1e80cb0afb618", + "name": "Redis: Active defrag key misses{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.active_defrag_key_misses[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of keys that were skipped by the active defragmentation process", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.active_defrag_key_misses" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "3c20cca8b4a84c619d90d64a34386dfa", + "name": "Redis: Active defrag misses{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.active_defrag_misses[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of aborted value reallocations started by the active defragmentation process", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.active_defrag_misses" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "a34f4e33a0cb4381b5c3b7a507e90bee", + "name": "Redis: Expired stale %{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.expired_stale_perc[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.expired_stale_perc" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + }, + { + "uuid": "81667ae170b04ac0980e122566c5ed8e", + "name": "Redis: Expired time cap reached count{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.expired_time_cap_reached_count[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.expired_time_cap_reached_count" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cycles" + } + ] + }, + { + "uuid": "93bf8753d6b242f1b8d2288fb926e01b", + "name": "Redis: Slave expires tracked keys{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.stats.slave_expires_tracked_keys[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The number of keys tracked for expiry purposes (applicable only to writable replicas)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Stats.slave_expires_tracked_keys" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "keys" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "0c3560588d2d421c843c006ef5fa4645", + "expression": "last(/Redis by Zabbix agent 2/redis.memory.used_memory)/min(/Redis by Zabbix agent 2/redis.memory.maxmemory[{#SINGLETON}],5m)*100>{$REDIS.MEM.PUSED.MAX.WARN}", + "name": "Redis: Memory usage is too high", + "event_name": "Redis: Memory usage is too high (over {$REDIS.MEM.PUSED.MAX.WARN}% in 5m)", + "priority": "WARNING", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.redis_version" + ] + }, + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(parseInt(value.split('.')[0]) >= 4 ? [{'{#SINGLETON}': ''}] : []);" + ] + } + ] + }, + { + "uuid": "f7a9f1e26bb54cb6adf74ee9f30d88cd", + "name": "Version 5+ metrics discovery", + "type": "DEPENDENT", + "key": "redis.metrics.v5.discovery", + "delay": "0", + "description": "Additional metrics for versions 5+", + "item_prototypes": [ + { + "uuid": "adc25c08108e4fcaa3b41d2897d0a0c6", + "name": "Redis: Allocator active{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_active[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_active" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "81ef89fc751746ac8254a55a2b2e4ea7", + "name": "Redis: Allocator allocated{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_allocated[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_allocated" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "23e034630d7246f7ba993d5c6db2d6bb", + "name": "Redis: Allocator fragmentation bytes{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_frag_bytes[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_frag_bytes" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "690a13b13d134f648b4b8381f6a185f0", + "name": "Redis: Allocator fragmentation ratio{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_frag_ratio[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_frag_ratio" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "0abd6a9adb034536b3a389e0af2af732", + "name": "Redis: Allocator resident{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_resident[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_resident" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "b5ecad496c554ccaad495d2f112b5e2f", + "name": "Redis: Allocator RSS bytes{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_rss_bytes[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_rss_bytes" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "643fe70e1a7f488196b053722a2df9c2", + "name": "Redis: Allocator RSS ratio{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.allocator_rss_ratio[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.allocator_rss_ratio" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "40a639acab5a415a8fb48b7520b7d198", + "name": "Redis: Memory fragmentation bytes{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.fragmentation_bytes[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_fragmentation_bytes" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "70c53f60d020440c8f7cba83b32f58c9", + "name": "Redis: Memory AOF buffer{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.mem_aof_buffer[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Size of the AOF buffer", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_aof_buffer" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "d64718269f20470e9661ff7c479dc300", + "name": "Redis: Memory clients normal{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.mem_clients_normal[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_clients_normal" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "e685ab11ab534f8abd1a7e2ee35839e8", + "name": "Redis: Memory clients slaves{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.mem_clients_slaves[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_clients_slaves" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "f6c9bfda015d47d0b34f466e95356a5d", + "name": "Redis: Memory not counted for evict{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.not_counted_for_evict[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_not_counted_for_evict" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "eaac8b142fc540ad9c7563e145819643", + "name": "Redis: Memory number of cached scripts{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.number_of_cached_scripts[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.number_of_cached_scripts" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "a221fd161be641c1a8091d0bfd1d2157", + "name": "Redis: Memory replication backlog{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.replication_backlog[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.mem_replication_backlog" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "e699ad3b29ca486f91688684ffde6b73", + "name": "Redis: Memory RSS overhead bytes{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.rss_overhead_bytes[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.rss_overhead_bytes" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "d4d51ae4ce214699ba760fcb62289a51", + "name": "Redis: Memory RSS overhead ratio{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.rss_overhead_ratio[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.rss_overhead_ratio" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "e3733b2993cb4199bfac8b0711d4bb72", + "name": "Redis: Memory used scripts{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.memory.used_memory_scripts[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Memory.used_memory_scripts" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Server.redis_version" + ] + }, + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(parseInt(value.split('.')[0]) >= 5 ? [{'{#SINGLETON}': ''}] : []);" + ] + } + ] + }, + { + "uuid": "ac3a22522a2c4fa1a256794dd2292480", + "name": "AOF metrics discovery", + "type": "DEPENDENT", + "key": "redis.persistence.aof.discovery", + "delay": "0", + "description": "If AOF is activated, additional metrics will be added", + "item_prototypes": [ + { + "uuid": "e68a7b6931324bd79268a5151717505e", + "name": "Redis: AOF base size{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_base_size[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "AOF file size on latest startup or rewrite", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_base_size" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "875ace20e5c94044ae63f36d98ac6256", + "name": "Redis: AOF buffer length{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_buffer_length[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Size of the AOF buffer", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_buffer_length" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "679bd919383a4106916a84fae5be47bb", + "name": "Redis: AOF current size{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_current_size[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "AOF current file size", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_current_size" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "ff9955c770aa4e0883cc72bf1d762be7", + "name": "Redis: AOF delayed fsync{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_delayed_fsync[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Delayed fsync counter", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_delayed_fsync" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "0606ef5762b04d91abba95269eb77ae2", + "name": "Redis: AOF pending background I/O fsync{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_pending_bio_fsync[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of fsync pending jobs in background I/O queue", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_pending_bio_fsync" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "194061b8ad6c484ca8c732d69eeb0f1e", + "name": "Redis: AOF pending rewrite{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_pending_rewrite[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Flag indicating an AOF rewrite operation will", + "valuemap": { + "name": "Redis flag" + }, + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_pending_rewrite" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + }, + { + "uuid": "1a39f5854ae948759deadac0ae57e9f7", + "name": "Redis: AOF rewrite buffer length{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.persistence.aof_rewrite_buffer_length[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Size of the AOF rewrite buffer", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Persistence.aof_rewrite_buffer_length" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "persistence" + } + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(JSON.parse(value).Persistence.aof_enabled === '1'\n ? [{'{#SINGLETON}': ''}]\n : []);" + ] + } + ] + }, + { + "uuid": "4379bad5624a4a5db0c86c5332cf5cc9", + "name": "Replication metrics discovery", + "type": "DEPENDENT", + "key": "redis.replication.master.discovery", + "delay": "0", + "description": "If the instance is the master and the slaves are connected, additional metrics are provided", + "item_prototypes": [ + { + "uuid": "2d26ebb0a5024378b59b3f0ee8e7fff4", + "name": "Redis slave {#SLAVE_IP}:{#SLAVE_PORT}: Replication lag in bytes", + "type": "DEPENDENT", + "key": "redis.replication.lag_bytes[\"{#SLAVE_IP}:{#SLAVE_PORT}\"]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "Replication lag in bytes", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var repl = JSON.parse(value).Replication;\nvar res = Object.keys(repl)\n .filter(function (v) {return v.match(/slave\\d+/)})\n .filter(function (v) {return (repl[v].ip === \"{#SLAVE_IP}\" && repl[v].port === \"{#SLAVE_PORT}\")})\n .map(function (v) {return repl[v].offset})[0];\n\nif (res === undefined) {\n throw 'Slave {#SLAVE_IP}:{#SLAVE_PORT} is no longer available.';\n}\n\nreturn res;" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "0bce553a5a1240e2b097754dba8f6939", + "name": "Redis slave {#SLAVE_IP}:{#SLAVE_PORT}: Replication lag bytes", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.replication.lag_bytes[\"{#SLAVE_IP}:{#SLAVE_PORT}\"]" + } + } + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var repl = JSON.parse(value).Replication;\nreturn JSON.stringify(Object.keys(repl)\n .filter(function (v) {return v.match(/slave\\d+/)})\n .map(function (v){\n return {\"{#SLAVE_IP}\": repl[v].ip, \"{#SLAVE_PORT}\": repl[v].port}\n }));" + ] + } + ] + }, + { + "uuid": "ca9296a7acb548789865ac716a54ce10", + "name": "Slave metrics discovery", + "type": "DEPENDENT", + "key": "redis.replication.slave.discovery", + "delay": "0", + "description": "If the instance is a replica, additional metrics are provided", + "item_prototypes": [ + { + "uuid": "92e4b2133a6a4ec28e739bbef94ab992", + "name": "Redis: Master host{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.master_host[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Host or IP address of the master", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.master_host" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "0acbeb8633da41be9bfb56627a946fd9", + "name": "Redis: Master last I/O seconds ago{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.master_last_io_seconds_ago[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "s", + "description": "Number of seconds since the last interaction with master", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.master_last_io_seconds_ago" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "292f477d970d4a138d2d1b2c45d965dd", + "expression": "min(/Redis by Zabbix agent 2/redis.replication.master_last_io_seconds_ago[{#SINGLETON}],5m)>{$REDIS.REPL.LAG.MAX.WARN}", + "name": "Redis: Replication lag with master is too high", + "event_name": "Redis: Replication lag with master is too high (over {$REDIS.REPL.LAG.MAX.WARN} in 5m)", + "priority": "WARNING", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "8024463a9f644e6e91def5a0e88abd4b", + "name": "Redis: Master link status{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.master_link_status[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Status of the link (up/down)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.master_link_status" + ] + }, + { + "type": "BOOL_TO_DECIMAL", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "da63a0b31bed47edaba3f802738fa4fd", + "name": "Redis: Master port{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.master_port[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Master listening TCP port", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.master_port" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "6835a260e66741159ee10046265a1ea4", + "name": "Redis: Master sync in progress{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.master_sync_in_progress[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Indicate the master is syncing to the replica", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.master_sync_in_progress" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "3f92dfa07237495ca7696bb4b078eb93", + "name": "Redis: Slave priority{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.slave_priority[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "The priority of the instance as a candidate for failover", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.slave_priority" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "f38492a49f214ec8b71fdc51d243281e", + "name": "Redis: Slave priority{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.slave_read_only[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Flag indicating if the replica is read-only", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.slave_read_only" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "7eb23d1d96ea489c9e0b39b7839147bd", + "name": "Redis: Slave replication offset{#SINGLETON}", + "type": "DEPENDENT", + "key": "redis.replication.slave_repl_offset[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "units": "B", + "description": "The replication offset of the replica instance", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Replication.slave_repl_offset" + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "bbc5fb3021be4c3381e48fe623b611f0", + "name": "Redis: Replication lag time{#SINGLETON}", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.replication.master_last_io_seconds_ago[{#SINGLETON}]" + } + } + ] + } + ], + "master_item": { + "key": "redis.info[\"{$REDIS.CONN.URI}\"]" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(JSON.parse(value).Replication.role === 'slave'\n ? [{'{#SINGLETON}': ''}]\n : []);" + ] + } + ] + } + ], + "tags": [ + { + "tag": "class", + "value": "database" + }, + { + "tag": "target", + "value": "redis" + } + ], + "macros": [ + { + "macro": "{$REDIS.CLIENTS.PRC.MAX.WARN}", + "value": "80", + "description": "Maximum percentage of connected clients" + }, + { + "macro": "{$REDIS.CONN.URI}", + "value": "tcp://localhost:6379", + "description": "Connection string in the URI format (password is not used). This param overwrites a value configured in the \"Server\" option of the configuration file (if it's set), otherwise, the plugin's default value is used: \"tcp://localhost:6379\"" + }, + { + "macro": "{$REDIS.LLD.FILTER.DB.MATCHES}", + "value": ".*", + "description": "Filter of discoverable databases" + }, + { + "macro": "{$REDIS.LLD.FILTER.DB.NOT_MATCHES}", + "value": "CHANGE_IF_NEEDED", + "description": "Filter to exclude discovered databases" + }, + { + "macro": "{$REDIS.LLD.PROCESS_NAME}", + "value": "redis-server", + "description": "Redis server process name for LLD" + }, + { + "macro": "{$REDIS.MEM.FRAG_RATIO.MAX.WARN}", + "value": "1.7", + "description": "Maximum memory fragmentation ratio" + }, + { + "macro": "{$REDIS.MEM.PUSED.MAX.WARN}", + "value": "90", + "description": "Maximum percentage of memory used" + }, + { + "macro": "{$REDIS.PROCESS_NAME}", + "value": "redis-server", + "description": "Redis server process name" + }, + { + "macro": "{$REDIS.REPL.LAG.MAX.WARN}", + "value": "30s", + "description": "Maximum replication lag in seconds" + }, + { + "macro": "{$REDIS.SLOWLOG.COUNT.MAX.WARN}", + "value": "1", + "description": "Maximum number of slowlog entries per second" + } + ], + "dashboards": [ + { + "uuid": "7c5bdd7bc74648c4891abc6649d105d0", + "name": "Redis overview", + "pages": [ + { + "widgets": [ + { + "type": "graph", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Clients" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Commands" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Persistence" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "15", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Slowlog" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graphprototype", + "y": "20", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Replication lag time{#SINGLETON}" + } + }, + { + "type": "INTEGER", + "name": "rows", + "value": "1" + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "2" + } + ] + }, + { + "type": "graph", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Keyspace" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Expired keys" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Slaves" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "15", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Uptime" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + } + ] + } + ] + }, + { + "uuid": "ee4c29eb7a0f443fafb7e7d3b9df7b24", + "name": "Redis performance", + "pages": [ + { + "widgets": [ + { + "type": "graph", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: CPU" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Memory" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Network" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Redis by Zabbix agent 2", + "name": "Redis: Memory fragmentation" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "82f4dc4ef0c9471d82dbe3605f4f31d0", + "name": "Redis bgsave time", + "mappings": [ + { + "value": "- 1s", + "newvalue": "Inactive" + } + ] + }, + { + "uuid": "098c2240a8e947fc9f6f0a677ffcbc0e", + "name": "Redis bgwrite status", + "mappings": [ + { + "value": "0", + "newvalue": "Error" + }, + { + "value": "1", + "newvalue": "Ok" + } + ] + }, + { + "uuid": "3b6cd97c65d14e10bdabf5c42d767ad9", + "name": "Redis flag", + "mappings": [ + { + "value": "0", + "newvalue": "No" + }, + { + "value": "1", + "newvalue": "Yes" + } + ] + }, + { + "uuid": "47c80efdf46745f1959eee76f68014e7", + "name": "Redis repl offset", + "mappings": [ + { + "value": "-1 B", + "newvalue": "Undefined" + } + ] + }, + { + "uuid": "ae3eec95cd1c440ba6c67ed5d7b7b915", + "name": "Service state", + "mappings": [ + { + "value": "0", + "newvalue": "Down" + }, + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "triggers": [ + { + "uuid": "65e4652dbebe47c4b46e47bb8a17aac6", + "expression": "min(/Redis by Zabbix agent 2/redis.clients.connected,5m)/last(/Redis by Zabbix agent 2/redis.config.maxclients)*100>{$REDIS.CLIENTS.PRC.MAX.WARN}", + "name": "Redis: Total number of connected clients is too high", + "event_name": "Redis: Total number of connected clients is too high (over {$REDIS.CLIENTS.PRC.MAX.WARN}% in 5m)", + "priority": "WARNING", + "description": "When the number of clients reaches the value of the \"maxclients\" parameter, new connections will be rejected.\n\nhttps://redis.io/topics/clients#maximum-number-of-clients", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graphs": [ + { + "uuid": "c04e813d482a4709b13aa2a98911e11d", + "name": "Redis: Clients", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.clients.connected" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.clients.blocked" + } + } + ] + }, + { + "uuid": "8643a1b690dc456b8daacc4b2b0810d4", + "name": "Redis: Commands", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.instantaneous_ops.rate" + } + } + ] + }, + { + "uuid": "765c0125e8d549dc88279f65f38b6ed9", + "name": "Redis: CPU", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.cpu.sys" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.cpu.sys_children" + } + }, + { + "sortorder": "2", + "drawtype": "GRADIENT_LINE", + "color": "F63100", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.cpu.user" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.cpu.user_children" + } + } + ] + }, + { + "uuid": "fd25ac6239064cd29dc1939cd15005de", + "name": "Redis: Expired keys", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.expired_keys" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.evicted_keys" + } + } + ] + }, + { + "uuid": "24cff7af388e41a8899e2916f12224d1", + "name": "Redis: Keyspace", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.keyspace_hits" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.keyspace_misses" + } + } + ] + }, + { + "uuid": "a3ea32878f25481998e0fde7ba00a11b", + "name": "Redis: Memory", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.memory.used_memory" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.memory.used_memory_rss" + } + }, + { + "sortorder": "2", + "drawtype": "BOLD_LINE", + "color": "F63100", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.memory.used_memory_peak" + } + } + ] + }, + { + "uuid": "ff8d6320a8e246a39d35ccb93220eb3a", + "name": "Redis: Memory fragmentation", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.memory.fragmentation_ratio" + } + } + ] + }, + { + "uuid": "b3db4cc8247647faae0d3c2389f37d80", + "name": "Redis: Network", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.instantaneous_input.rate" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.stats.instantaneous_output.rate" + } + } + ] + }, + { + "uuid": "81fde2046d2340119b2002da2b75df16", + "name": "Redis: Persistence", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.persistence.rdb_last_bgsave_time_sec" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "2774A4", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.persistence.aof_last_rewrite_time_sec" + } + } + ] + }, + { + "uuid": "1ace370516b74875977788d44ab478e5", + "name": "Redis: Slaves", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.replication.connected_slaves" + } + } + ] + }, + { + "uuid": "8dd9935cb7a24004b9783c3f1a445f1b", + "name": "Redis: Slowlog", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.slowlog.count[\"{$REDIS.CONN.URI}\"]" + } + } + ] + }, + { + "uuid": "32d954e849e64fe99bd8846b54aadede", + "name": "Redis: Uptime", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Redis by Zabbix agent 2", + "key": "redis.server.uptime" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/apache-zabbix-template.json b/zabbix-templates/6.4/apache-zabbix-template.json new file mode 100644 index 0000000..6866744 --- /dev/null +++ b/zabbix-templates/6.4/apache-zabbix-template.json @@ -0,0 +1,1304 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", + "name": "Nextcloud Installation" + }, + { + "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", + "name": "Templates/Applications" + } + ], + "templates": [ + { + "uuid": "86702e8bc514434e8c914d50c206cb94", + "template": "Apache", + "name": "Apache", + "description": "Get metrics from mod_status module using HTTP agent.\nhttps://httpd.apache.org/docs/current/mod/mod_status.html\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384764-discussion-thread-for-official-zabbix-template-apache\n\nTemplate tooling version used: 0.42", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates/Applications" + } + ], + "items": [ + { + "uuid": "b9fe6f0bbe174e9f81af84a3bc0b0e7c", + "name": "Apache: Total bytes", + "type": "DEPENDENT", + "key": "apache.bytes", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "Total bytes served", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total kBytes\"]" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1024" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "b36010be10874cf188eeacc81f2c366f", + "name": "Apache: Bytes per second", + "type": "DEPENDENT", + "key": "apache.bytes.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "Calculated as change rate for 'Total bytes' stat.\nBytesPerSec is not used, as it counts average since last Apache server start.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total kBytes\"]" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "1024" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "e61be8ad92004100aca55fcedd2a3807", + "name": "Apache: Get status", + "type": "HTTP_AGENT", + "key": "apache.get_status", + "history": "1h", + "trends": "0", + "value_type": "TEXT", + "description": "Getting data from a machine-readable version of the Apache status page.\nhttps://httpd.apache.org/docs/current/mod/mod_status.html", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "// Convert Apache status to JSON\nvar lines = value.split('\\n');\nvar output = {},\n workers = {\n '_': 0, 'S': 0, 'R': 0, 'W': 0,\n 'K': 0, 'D': 0, 'C': 0, 'L': 0,\n 'G': 0, 'I': 0, '.': 0\n };\n\n// Get all \"Key: Value\" pairs as an object\nfor (var i = 0; i < lines.length; i++) {\n var line = lines[i].match(/([A-z0-9 ]+): (.*)/);\n\n if (line !== null) {\n output[line[1]] = isNaN(line[2]) ? line[2] : Number(line[2]);\n }\n}\n\n// Multiversion metrics\noutput.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime;\noutput.ServerVersion = output.ServerVersion || output.Server;\n\n// Parse \"Scoreboard\" to get worker count.\nif (typeof output.Scoreboard === 'string') {\n for (var i = 0; i < output.Scoreboard.length; i++) {\n var char = output.Scoreboard[i];\n\n workers[char]++;\n }\n}\n\n// Add worker data to the output\noutput.Workers = {\n waiting: workers['_'], starting: workers['S'], reading: workers['R'],\n sending: workers['W'], keepalive: workers['K'], dnslookup: workers['D'],\n closing: workers['C'], logging: workers['L'], finishing: workers['G'],\n cleanup: workers['I'], slot: workers['.']\n};\n\n// Return JSON string\nreturn JSON.stringify(output);" + ] + } + ], + "url": "{$APACHE.STATUS.SCHEME}://{HOST.CONN}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}", + "retrieve_mode": "BOTH", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ], + "triggers": [ + { + "uuid": "db396445cc5042f89f31dc12cb99c32e", + "expression": "nodata(/Apache/apache.get_status,30m)=1", + "name": "Apache: Failed to fetch status page", + "event_name": "Apache: Failed to fetch status page (or no data for 30m)", + "priority": "WARNING", + "description": "Zabbix has not received data for items for the last 30 minutes.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Apache: Service is down", + "expression": "last(/Apache/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "5fb5101de70a43fab50d55f418462255", + "name": "Apache: Total requests", + "type": "DEPENDENT", + "key": "apache.requests", + "delay": "0", + "history": "7d", + "description": "A total number of accesses", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total Accesses\"]" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "ee15f4958040459da53251cc3561ed39", + "name": "Apache: Requests per second", + "type": "DEPENDENT", + "key": "apache.requests.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Calculated as change rate for 'Total requests' stat.\nReqPerSec is not used, as it counts average since last Apache server start.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[\"Total Accesses\"]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "3dd8ba505d584b028c7ac08d8b959eb3", + "name": "Apache: Uptime", + "type": "DEPENDENT", + "key": "apache.uptime", + "delay": "0", + "history": "7d", + "units": "uptime", + "description": "Service uptime in seconds", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ServerUptimeSeconds" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "76cfa6ebf39f4c8fbd8fde9e0f36d3ed", + "expression": "last(/Apache/apache.uptime)<10m", + "name": "Apache: has been restarted", + "event_name": "Apache: has been restarted (uptime < 10m)", + "priority": "INFO", + "description": "Uptime is less than 10 minutes.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "fe0de2eb1478482f99b38c13bd20564c", + "name": "Apache: Version", + "type": "DEPENDENT", + "key": "apache.version", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Service version", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ServerVersion" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "5296d69af0704d0e8a07398f0b4c9685", + "expression": "last(/Apache/apache.version,#1)<>last(/Apache/apache.version,#2) and length(last(/Apache/apache.version))>0", + "name": "Apache: Version has changed", + "event_name": "Apache: Version has changed (new version: {ITEM.VALUE})", + "priority": "INFO", + "description": "Apache version has changed. Ack to close.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "f74ffb92e30e48958b5b82f7dfbe5147", + "name": "Apache: Workers idle cleanup", + "type": "DEPENDENT", + "key": "apache.workers.cleanup", + "delay": "0", + "history": "7d", + "description": "Number of workers in cleanup state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.cleanup" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "d664bee9a330480bbaee7273b871a8d3", + "name": "Apache: Workers closing connection", + "type": "DEPENDENT", + "key": "apache.workers.closing", + "delay": "0", + "history": "7d", + "description": "Number of workers in closing state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.closing" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "a6fb3444585749be998ec840cd8e4511", + "name": "Apache: Workers DNS lookup", + "type": "DEPENDENT", + "key": "apache.workers.dnslookup", + "delay": "0", + "history": "7d", + "description": "Number of workers in dnslookup state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.dnslookup" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "fcf771f2a9b64a81a37db679f0494ed3", + "name": "Apache: Workers finishing", + "type": "DEPENDENT", + "key": "apache.workers.finishing", + "delay": "0", + "history": "7d", + "description": "Number of workers in finishing state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.finishing" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "cb81a6a77395444283bc5e065fcbfc2e", + "name": "Apache: Workers keepalive (read)", + "type": "DEPENDENT", + "key": "apache.workers.keepalive", + "delay": "0", + "history": "7d", + "description": "Number of workers in keepalive state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.keepalive" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "7fc0002a279b4541af569a03c1aca2ac", + "name": "Apache: Workers logging", + "type": "DEPENDENT", + "key": "apache.workers.logging", + "delay": "0", + "history": "7d", + "description": "Number of workers in logging state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.logging" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "78b0bd7d8bec49549fc003d460af9177", + "name": "Apache: Workers reading request", + "type": "DEPENDENT", + "key": "apache.workers.reading", + "delay": "0", + "history": "7d", + "description": "Number of workers in reading state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.reading" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "379ac66397b94463ad17b24fbd20c615", + "name": "Apache: Workers sending reply", + "type": "DEPENDENT", + "key": "apache.workers.sending", + "delay": "0", + "history": "7d", + "description": "Number of workers in sending state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.sending" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "1c90055e02a244fc8d18e73b23daa0f1", + "name": "Apache: Workers slot with no current process", + "type": "DEPENDENT", + "key": "apache.workers.slot", + "delay": "0", + "history": "7d", + "description": "Number of slots with no current process", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.slot" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "ae21ea113e8840349aff81ab582d92b4", + "name": "Apache: Workers starting up", + "type": "DEPENDENT", + "key": "apache.workers.starting", + "delay": "0", + "history": "7d", + "description": "Number of workers in starting state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.starting" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "be1a05a6eab84b64ac4d51c966ea91e8", + "name": "Apache: Workers waiting for connection", + "type": "DEPENDENT", + "key": "apache.workers.waiting", + "delay": "0", + "history": "7d", + "description": "Number of workers in waiting state", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Workers.waiting" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "1752b9bcf7b34abbaf105f5261638271", + "name": "Apache: Total workers busy", + "type": "DEPENDENT", + "key": "apache.workers_total.busy", + "delay": "0", + "history": "7d", + "description": "Total number of busy worker threads/processes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.BusyWorkers" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "b1b1c86a12964ae2813c63481e464ec7", + "name": "Apache: Total workers idle", + "type": "DEPENDENT", + "key": "apache.workers_total.idle", + "delay": "0", + "history": "7d", + "description": "Total number of idle worker threads/processes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.IdleWorkers" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "5039d11bc3964d6e9928a0a46dd0b402", + "name": "Apache: Service response time", + "type": "SIMPLE", + "key": "net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "ffbb564032c7462eb0bb9b4c2f700559", + "expression": "min(/Apache/net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"],5m)>{$APACHE.RESPONSE_TIME.MAX.WARN}", + "name": "Apache: Service response time is too high", + "event_name": "Apache: Service response time is too high (over {$APACHE.RESPONSE_TIME.MAX.WARN}s for 5m)", + "priority": "WARNING", + "manual_close": "YES", + "dependencies": [ + { + "name": "Apache: Service is down", + "expression": "last(/Apache/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "fb65918695094026838e2b9e4ca00402", + "name": "Apache: Service ping", + "type": "SIMPLE", + "key": "net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]", + "history": "7d", + "valuemap": { + "name": "Service state" + }, + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "10m" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "afe2fde35d054333adc8369a0f9af778", + "expression": "last(/Apache/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0", + "name": "Apache: Service is down", + "priority": "AVERAGE", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "eee8abd3174d426092e8bca9b3ba982e", + "name": "Event MPM discovery", + "type": "DEPENDENT", + "key": "apache.mpm.event.discovery", + "delay": "0", + "description": "Additional metrics if event MPM is used\nhttps://httpd.apache.org/docs/current/mod/event.html", + "item_prototypes": [ + { + "uuid": "f52700379f9a4ee8b378a2eb9caea070", + "name": "Apache: Bytes per request", + "type": "DEPENDENT", + "key": "apache.bytes[per_request{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "Average number of client requests per second", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.BytesPerReq" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "062d7c941f0c468d8b63fa76ae0610f6", + "name": "Apache: Connections async closing", + "type": "DEPENDENT", + "key": "apache.connections[async_closing{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of async connections in closing state (only applicable to event MPM)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsAsyncClosing" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "6cb8b255ad8343a48e622912bc298366", + "name": "Apache: Connections async keep alive", + "type": "DEPENDENT", + "key": "apache.connections[async_keep_alive{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of async connections in keep-alive state (only applicable to event MPM)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsAsyncKeepAlive" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "997b3452aac24ad6afbad775d649c727", + "name": "Apache: Connections async writing", + "type": "DEPENDENT", + "key": "apache.connections[async_writing{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of async connections in writing state (only applicable to event MPM)", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsAsyncWriting" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "31cb044eed904ca19150921fe36f3285", + "name": "Apache: Connections total", + "type": "DEPENDENT", + "key": "apache.connections[total{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of total connections", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.ConnsTotal" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "connection" + } + ] + }, + { + "uuid": "34555340f3ad4b878504df188f54a9c9", + "name": "Apache: Number of async processes", + "type": "DEPENDENT", + "key": "apache.process[num{#SINGLETON}]", + "delay": "0", + "history": "7d", + "description": "Number of async processes", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.Processes" + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "066b53ed2244414ca3090498eb035c27", + "name": "Apache: Current async connections{#SINGLETON}", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Apache", + "key": "apache.connections[async_closing{#SINGLETON}]" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Apache", + "key": "apache.connections[async_keep_alive{#SINGLETON}]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Apache", + "key": "apache.connections[async_writing{#SINGLETON}]" + } + }, + { + "sortorder": "3", + "drawtype": "BOLD_LINE", + "color": "A54F10", + "item": { + "host": "Apache", + "key": "apache.connections[total{#SINGLETON}]" + } + } + ] + }, + { + "uuid": "dbaa0c2468cc40fca977fb382d19cb78", + "name": "Apache: Current async processes{#SINGLETON}", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Apache", + "key": "apache.process[num{#SINGLETON}]" + } + } + ] + } + ], + "master_item": { + "key": "apache.get_status" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(JSON.parse(value).ServerMPM === 'event'\n ? [{'{#SINGLETON}': ''}] : []);" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "3h" + ] + } + ] + } + ], + "tags": [ + { + "tag": "class", + "value": "software" + }, + { + "tag": "target", + "value": "apache" + } + ], + "macros": [ + { + "macro": "{$APACHE.RESPONSE_TIME.MAX.WARN}", + "value": "10", + "description": "Maximum Apache response time in seconds for trigger expression" + }, + { + "macro": "{$APACHE.STATUS.PATH}", + "value": "server-status?auto", + "description": "The URL path" + }, + { + "macro": "{$APACHE.STATUS.PORT}", + "value": "81", + "description": "The port of Apache status page" + }, + { + "macro": "{$APACHE.STATUS.SCHEME}", + "value": "http", + "description": "Request scheme which may be http or https" + } + ], + "dashboards": [ + { + "uuid": "a328c9e713424465a8e1adec7322b0dc", + "name": "Web Server", + "display_period": "60", + "pages": [ + { + "widgets": [ + { + "type": "graph", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache", + "name": "Apache: Requests per second" + } + } + ] + }, + { + "type": "graph", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache", + "name": "Apache: Bytes per second" + } + } + ] + }, + { + "type": "graph", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache", + "name": "Apache: Service response time" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache", + "name": "Apache: Workers total" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache", + "name": "Apache: Worker states" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Apache", + "name": "Apache: Service ping" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "a5d1f911fb264bd4bc087ea582626d7f", + "name": "Service state", + "mappings": [ + { + "value": "0", + "newvalue": "Down" + }, + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "be2cc04cb0044b7bb4b57295477a0d59", + "name": "Apache: Bytes per second", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Apache", + "key": "apache.bytes.rate" + } + } + ] + }, + { + "uuid": "a3998992f7504a12826e3c4d592836b5", + "name": "Apache: Requests per second", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Apache", + "key": "apache.requests.rate" + } + } + ] + }, + { + "uuid": "ef7cd463999a4b33af49fa3261cd6bf3", + "name": "Apache: Service ping", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Apache", + "key": "net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]" + } + } + ] + }, + { + "uuid": "b1ed1612dc72482f92ce41468499e6a8", + "name": "Apache: Service response time", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Apache", + "key": "net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]" + } + } + ] + }, + { + "uuid": "1629062b5cd74b67af9a60226a79f8f1", + "name": "Apache: Worker states", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Apache", + "key": "apache.workers.dnslookup" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Apache", + "key": "apache.workers.cleanup" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Apache", + "key": "apache.workers.logging" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "Apache", + "key": "apache.workers.reading" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "item": { + "host": "Apache", + "key": "apache.workers.sending" + } + }, + { + "sortorder": "5", + "color": "6C59DC", + "item": { + "host": "Apache", + "key": "apache.workers.starting" + } + }, + { + "sortorder": "6", + "color": "AC8C14", + "item": { + "host": "Apache", + "key": "apache.workers.closing" + } + }, + { + "sortorder": "7", + "color": "611F27", + "item": { + "host": "Apache", + "key": "apache.workers.finishing" + } + }, + { + "sortorder": "8", + "color": "F230E0", + "item": { + "host": "Apache", + "key": "apache.workers.keepalive" + } + }, + { + "sortorder": "9", + "color": "FFAD40", + "item": { + "host": "Apache", + "key": "apache.workers.slot" + } + }, + { + "sortorder": "10", + "color": "40CDFF", + "item": { + "host": "Apache", + "key": "apache.workers.waiting" + } + } + ] + }, + { + "uuid": "78e59f1b5eb747019f92921ac5ef48b0", + "name": "Apache: Workers total", + "type": "STACKED", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Apache", + "key": "apache.workers_total.busy" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Apache", + "key": "apache.workers_total.idle" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/linux-zabbix-template.json b/zabbix-templates/6.4/linux-zabbix-template.json new file mode 100644 index 0000000..e9f0b1e --- /dev/null +++ b/zabbix-templates/6.4/linux-zabbix-template.json @@ -0,0 +1,3184 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", + "name": "Nextcloud Installation" + }, + { + "uuid": "846977d1dfed4968bc5f8bdb363285bc", + "name": "Templates/Operating systems" + } + ], + "templates": [ + { + "uuid": "f8f7908280354f2abeed07dc788c3747", + "template": "Linux", + "name": "Linux", + "description": "Official Linux template. Requires agent of Zabbix 3.0.14, 3.4.5 and 4.0.0 or newer.\n\nKnown Issues:\n\n Description: Network discovery. Zabbix agent as of 4.2 doesn't support items such as net.if.status, net.if.speed.\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux\n\nTemplate tooling version used: 0.42", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates/Operating systems" + } + ], + "items": [ + { + "uuid": "df561a0cece94760a78704edf7da7326", + "name": "Host name of Zabbix agent running", + "type": "ZABBIX_ACTIVE", + "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": "f94f9f4699e94c369e6c98b2a2f485ce", + "name": "Zabbix agent ping", + "type": "ZABBIX_ACTIVE", + "key": "agent.ping", + "history": "7d", + "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" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "27c42cf180b44632b5d9b8b5788165b3", + "name": "Version of Zabbix agent running", + "type": "ZABBIX_ACTIVE", + "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": "ef386d03ff2c42ffa236acd5215ad547", + "name": "Maximum number of open file descriptors", + "type": "ZABBIX_ACTIVE", + "key": "kernel.maxfiles", + "delay": "1h", + "history": "7d", + "description": "It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "b9bdcf42f54a409a9a9a616dbd0eaed2", + "expression": "last(/Linux/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN}", + "name": "Configured max number of open filedescriptors is too low", + "event_name": "Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})", + "priority": "INFO", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "678d70c041954ac8982fb5118b49f6e7", + "name": "Maximum number of processes", + "type": "ZABBIX_ACTIVE", + "key": "kernel.maxproc", + "delay": "1h", + "history": "7d", + "description": "It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "8cf253ca3eea4109a90443f9cb76fc5c", + "expression": "last(/Linux/kernel.maxproc)<{$KERNEL.MAXPROC.MIN}", + "name": "Configured max number of processes is too low", + "event_name": "Configured max number of processes is too low (< {$KERNEL.MAXPROC.MIN})", + "priority": "INFO", + "dependencies": [ + { + "name": "Getting closer to process limit", + "expression": "last(/Linux/proc.num)/last(/Linux/kernel.maxproc)*100>80" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "ab7d0471092544a6a950184d1bac906d", + "name": "Number of processes", + "type": "ZABBIX_ACTIVE", + "key": "proc.num", + "history": "7d", + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "b2637293884d40108f41b11767dd5be0", + "name": "Number of running processes", + "type": "ZABBIX_ACTIVE", + "key": "proc.num[,,run]", + "history": "7d", + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "27cb0f66bb624146acfdd81b58f108a3", + "name": "System boot time", + "type": "ZABBIX_ACTIVE", + "key": "system.boottime", + "delay": "15m", + "history": "7d", + "units": "unixtime", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "5d186a46867b4eaaafd6396d3239dd3b", + "name": "Interrupts per second", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.intr", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "48528aa936a04c8189375a6eae4033da", + "name": "Load average (1m avg)", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.load[all,avg1]", + "history": "7d", + "value_type": "FLOAT", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "953beb580df8418cb88b667b9dd37259", + "name": "Load average (5m avg)", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.load[all,avg5]", + "history": "7d", + "value_type": "FLOAT", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "5716000e38e24dae8ead4ed98ede024b", + "name": "Load average (15m avg)", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.load[all,avg15]", + "history": "7d", + "value_type": "FLOAT", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "f72e115544eb4079b09fec8c3539241c", + "name": "Number of CPUs", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.num", + "history": "7d", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "73e85aa10a704fc7950d2d077f0c54ee", + "name": "Context switches per second", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.switches", + "history": "7d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "ca4235ec7607469cb0124a6253d3c489", + "name": "CPU utilization", + "type": "DEPENDENT", + "key": "system.cpu.util", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The CPU utilization expressed in %.", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "//Calculate utilization\nreturn (100 - value)" + ] + } + ], + "master_item": { + "key": "system.cpu.util[,idle]" + }, + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ], + "triggers": [ + { + "uuid": "b4e904559b694df0ad45bcce7930c3a6", + "expression": "min(/Linux/system.cpu.util,5m)>{$CPU.UTIL.CRIT}", + "name": "High CPU utilization", + "event_name": "High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)", + "opdata": "Current utilization: {ITEM.LASTVALUE1}", + "priority": "WARNING", + "description": "The CPU utilization is too high. The system might be slow to respond.", + "dependencies": [ + { + "name": "Load average is too high", + "expression": "min(/Linux/system.cpu.load[all,avg1],5m)/last(/Linux/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}\nand last(/Linux/system.cpu.load[all,avg5])>0\nand last(/Linux/system.cpu.load[all,avg15])>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "69b187838fb74f319e47c2ff4f99ef54", + "name": "CPU guest time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,guest]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "Guest time - the time spent on running a virtual CPU for a guest operating system.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "a2b07497f2f343a99d26ad77e65bb54f", + "name": "CPU guest nice time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,guest_nice]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "7aad6d159baa4a24901847144f0d231b", + "name": "CPU idle time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,idle]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent doing nothing.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "cc4bc7693ae84f9bb18cee38d0814195", + "name": "CPU interrupt time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,interrupt]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of time the CPU has been servicing hardware interrupts.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "5df67d9162cc437585990cc8708be894", + "name": "CPU iowait time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,iowait]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of time the CPU has been waiting for I/O to complete.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "8ee6e54c86ba44ab88bb9e83c632c1ed", + "name": "CPU nice time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,nice]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent running users' processes that have been niced.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "a949a36004a449c58bef0cdc9d3fafd6", + "name": "CPU softirq time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,softirq]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of time the CPU has been servicing software interrupts.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "3161dbd18e874e69b729c8e903cf7390", + "name": "CPU steal time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,steal]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The amount of 'stolen' CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "d93097ed5ce74d35b6041ef2b5ba18e8", + "name": "CPU system time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,system]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent running the kernel and its processes.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "57f9e2e34fab41e18e2bc93e786c92c6", + "name": "CPU user time", + "type": "ZABBIX_ACTIVE", + "key": "system.cpu.util[,user]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The time the CPU has spent running users' processes that are not niced.", + "tags": [ + { + "tag": "component", + "value": "cpu" + } + ] + }, + { + "uuid": "207341f390134e37ad431e2823666eb9", + "name": "System name", + "type": "ZABBIX_ACTIVE", + "key": "system.hostname", + "delay": "1h", + "history": "2w", + "trends": "0", + "value_type": "CHAR", + "description": "The host name of the system.", + "inventory_link": "NAME", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "12h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "371a12f95a26438d8da659c84364631b", + "expression": "last(/Linux/system.hostname,#1)<>last(/Linux/system.hostname,#2) and length(last(/Linux/system.hostname))>0", + "name": "System name has changed", + "event_name": "System name has changed (new name: {ITEM.VALUE})", + "priority": "INFO", + "description": "The name of the system has changed. Ack to close the problem manually.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + }, + { + "tag": "scope", + "value": "security" + } + ] + } + ] + }, + { + "uuid": "6072902361404672a444841c786875e6", + "name": "System local time", + "type": "ZABBIX_ACTIVE", + "key": "system.localtime", + "history": "7d", + "units": "unixtime", + "description": "The local system time of the host.", + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "fb77b6ac381c4b5289584bd91e7da7d5", + "expression": "fuzzytime(/Linux/system.localtime,{$SYSTEM.FUZZYTIME.MAX})=0", + "name": "System time is out of sync", + "event_name": "System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX}s)", + "priority": "WARNING", + "description": "The host's system time is different from Zabbix server time.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "fd21580a151246b0a340bf924c326aa8", + "name": "Operating system architecture", + "type": "ZABBIX_ACTIVE", + "key": "system.sw.arch", + "delay": "1h", + "history": "2w", + "trends": "0", + "value_type": "CHAR", + "description": "The architecture of the host's operating system.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "os" + } + ] + }, + { + "uuid": "5e4c3d14634843e9b7b182e8fc08efbe", + "name": "Operating system", + "type": "ZABBIX_ACTIVE", + "key": "system.sw.os", + "delay": "1h", + "history": "2w", + "trends": "0", + "value_type": "CHAR", + "inventory_link": "OS", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "os" + } + ], + "triggers": [ + { + "uuid": "b1998f98c06b49dd8d71e1c6df409371", + "expression": "last(/Linux/system.sw.os,#1)<>last(/Linux/system.sw.os,#2) and length(last(/Linux/system.sw.os))>0", + "name": "Operating system description has changed", + "priority": "INFO", + "description": "The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Ack to close the problem manually.", + "manual_close": "YES", + "dependencies": [ + { + "name": "System name has changed", + "expression": "last(/Linux/system.hostname,#1)<>last(/Linux/system.hostname,#2) and length(last(/Linux/system.hostname))>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "58818005e76d46dda14d6592f601ab00", + "name": "Software installed", + "type": "ZABBIX_ACTIVE", + "key": "system.sw.packages", + "delay": "1h", + "history": "2w", + "trends": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "os" + } + ] + }, + { + "uuid": "160b82c121b147cbbf18c34dbb01d3ce", + "name": "Free swap space", + "type": "ZABBIX_ACTIVE", + "key": "system.swap.size[,free]", + "history": "7d", + "units": "B", + "description": "The free space of the swap volume/file expressed in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "storage" + } + ] + }, + { + "uuid": "ca423242172f4b20ba47c26f4a61aee7", + "name": "Free swap space in %", + "type": "ZABBIX_ACTIVE", + "key": "system.swap.size[,pfree]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The free space of the swap volume/file expressed in %.", + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "storage" + } + ] + }, + { + "uuid": "102c81b5523c4be0b4beae3cb88ebde1", + "name": "Total swap space", + "type": "ZABBIX_ACTIVE", + "key": "system.swap.size[,total]", + "history": "7d", + "units": "B", + "description": "The total space of the swap volume/file expressed in bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "storage" + } + ] + }, + { + "uuid": "fc6898682f904c57ba28bcb3748b237f", + "name": "System description", + "type": "ZABBIX_ACTIVE", + "key": "system.uname", + "delay": "15m", + "history": "2w", + "trends": "0", + "value_type": "CHAR", + "description": "The information as normally returned by 'uname -a'.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "12h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "8537f6c6ac6b438c80caf227946df891", + "name": "System uptime", + "type": "ZABBIX_ACTIVE", + "key": "system.uptime", + "delay": "30s", + "history": "2w", + "trends": "0d", + "units": "uptime", + "description": "The system uptime expressed in the following format:'N days, hh:mm:ss'.", + "tags": [ + { + "tag": "component", + "value": "system" + } + ], + "triggers": [ + { + "uuid": "1dbab80d7b6847e5b5a676cffba0fd1d", + "expression": "last(/Linux/system.uptime)<10m", + "name": "has been restarted", + "event_name": "{HOST.NAME} has been restarted (uptime < 10m)", + "priority": "WARNING", + "description": "The host uptime is less than 10 minutes", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "88056b3d2e424d5aba7cabcd4b043c9e", + "name": "Number of logged in users", + "type": "ZABBIX_ACTIVE", + "key": "system.users.num", + "history": "7d", + "description": "The number of users who are currently logged in.", + "tags": [ + { + "tag": "component", + "value": "environment" + } + ] + }, + { + "uuid": "3b93d3590df24a46b29f6eb06f5e2446", + "name": "Checksum of /etc/passwd", + "type": "ZABBIX_ACTIVE", + "key": "vfs.file.cksum[/etc/passwd,sha256]", + "delay": "15m", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "security" + } + ], + "triggers": [ + { + "uuid": "3a764881727b4e7eb01e137ccfc968a2", + "expression": "last(/Linux/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux/vfs.file.cksum[/etc/passwd,sha256],#2)", + "name": "/etc/passwd has been changed", + "priority": "INFO", + "manual_close": "YES", + "dependencies": [ + { + "name": "Operating system description has changed", + "expression": "last(/Linux/system.sw.os,#1)<>last(/Linux/system.sw.os,#2) and length(last(/Linux/system.sw.os))>0" + }, + { + "name": "System name has changed", + "expression": "last(/Linux/system.hostname,#1)<>last(/Linux/system.hostname,#2) and length(last(/Linux/system.hostname))>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "security" + } + ] + } + ] + }, + { + "uuid": "e811e6e2ae84461294e121f12e767b40", + "name": "Available memory", + "type": "ZABBIX_ACTIVE", + "key": "vm.memory.size[available]", + "history": "7d", + "units": "B", + "description": "The available memory:\n - in Linux - available = free + buffers + cache;\n - on other platforms calculation may vary.\nSee also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "20779a4c43374e5f9bea2584e93b85ef", + "name": "Available memory in %", + "type": "ZABBIX_ACTIVE", + "key": "vm.memory.size[pavailable]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The available memory as percentage of the total. See also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "d5c3541a7c0949ce812df1beb0732941", + "name": "Total memory", + "type": "ZABBIX_ACTIVE", + "key": "vm.memory.size[total]", + "history": "7d", + "units": "B", + "description": "The total memory expressed in Bytes.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "403cebed115441369e94d35d070ca7b8", + "name": "Memory utilization", + "type": "DEPENDENT", + "key": "vm.memory.utilization", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The percentage of used memory is calculated as 100-pavailable.", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return (100-value);" + ] + } + ], + "master_item": { + "key": "vm.memory.size[pavailable]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + } + ], + "triggers": [ + { + "uuid": "cfd395b1cde74ef18a5e5f840bd5142a", + "expression": "min(/Linux/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX}", + "name": "High memory utilization", + "event_name": "High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)", + "priority": "AVERAGE", + "description": "The system is running out of free memory.", + "dependencies": [ + { + "name": "Lack of available memory", + "expression": "max(/Linux/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux/vm.memory.size[total])>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "ca48c53be1bf46ae9dd2707158a55139", + "name": "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": "93594214371b4dc88b41663cad8537f0", + "expression": "max(/Linux/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0", + "name": "Zabbix agent is not available", + "event_name": "Zabbix agent is not available (for {$AGENT.TIMEOUT})", + "priority": "AVERAGE", + "description": "For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "acfdea9c46ef48c68e6636f43b8f96a2", + "name": "Network interface discovery", + "key": "net.if.discovery", + "delay": "1h", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#IFNAME}", + "value": "{$NET.IF.IFNAME.MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#IFNAME}", + "value": "{$NET.IF.IFNAME.NOT_MATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + } + ] + }, + "description": "The discovery of network interfaces.", + "item_prototypes": [ + { + "uuid": "4d66608e190e4be7a438ea5d0d26e353", + "name": "Interface {#IFNAME}: Inbound packets discarded", + "key": "net.if.in[\"{#IFNAME}\",dropped]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "ed79960ca91f4e2ca45fed014a02c50b", + "name": "Interface {#IFNAME}: Inbound packets with errors", + "key": "net.if.in[\"{#IFNAME}\",errors]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "c9941a1f8d904309b581cae5ccc1660c", + "name": "Interface {#IFNAME}: Bits received", + "key": "net.if.in[\"{#IFNAME}\"]", + "delay": "3m", + "history": "7d", + "units": "bps", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "8" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "0795a375a41d46a2b5c89547061cec8e", + "name": "Interface {#IFNAME}: Outbound packets discarded", + "key": "net.if.out[\"{#IFNAME}\",dropped]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "f8e8bbc069414e928a5da9817f4599a5", + "name": "Interface {#IFNAME}: Outbound packets with errors", + "key": "net.if.out[\"{#IFNAME}\",errors]", + "delay": "3m", + "history": "7d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "82897d99b0114c67b0f5b449c768c8e7", + "name": "Interface {#IFNAME}: Bits sent", + "key": "net.if.out[\"{#IFNAME}\"]", + "delay": "3m", + "history": "7d", + "units": "bps", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "8" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "3efd24ad36b04eb995cfeab82721c2fe", + "name": "Interface {#IFNAME}: Operational status", + "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"]", + "history": "7d", + "trends": "0", + "description": "Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt", + "valuemap": { + "name": "ifOperStatus" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var newvalue;\nswitch(value) {\n case \"unknown\":\n newvalue = 0;\n break;\n case \"notpresent\":\n newvalue = 1;\n break;\n case \"down\":\n newvalue = 2;\n break;\n case \"lowerlayerdown\":\n newvalue = 3;\n break;\n case \"testing\":\n newvalue = 4;\n break;\n case \"dormant\":\n newvalue = 5;\n break;\n case \"up\":\n newvalue = 6;\n break; default:\n newvalue = \"Problem parsing interface operstate in JS\";\n}\nreturn newvalue;" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ], + "trigger_prototypes": [ + { + "uuid": "4d7f18ca132340b885c0692464dc429f", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0", + "name": "Interface {#IFNAME}: Link down", + "opdata": "Current state: {ITEM.LASTVALUE1}", + "priority": "AVERAGE", + "description": "This trigger expression works as follows:\n1. It can be triggered if the operations status is down.\n2. {$IFCONTROL:\"{#IFNAME}\"}=1 - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down.\n3. {TEMPLATE_NAME:METRIC.diff()}=1) - the trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'ethernal off' interfaces.)\n\nWARNING: if closed manually - it will not fire again on the next poll, because of .diff.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "f4c456e1f9ef4adbbd11f1ee17fa4d76", + "name": "Interface {#IFNAME}: Speed", + "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]", + "delay": "5m", + "history": "7d", + "trends": "0d", + "units": "bps", + "description": "It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec.\nThis attribute is only valid for the interfaces that implement the ethtool get_link_ksettings method (mostly Ethernet).\nReference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net", + "preprocessing": [ + { + "type": "MULTIPLIER", + "parameters": [ + "1000000" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + }, + { + "uuid": "d537e74070c74e4385ad241e8514dd3a", + "name": "Interface {#IFNAME}: Interface type", + "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"]", + "delay": "1h", + "history": "7d", + "trends": "0d", + "description": "It indicates the interface protocol type as a decimal value.\nSee include/uapi/linux/if_arp.h for all possible values.\nReference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net", + "valuemap": { + "name": "Linux::Interface protocol types" + }, + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "network" + }, + { + "tag": "interface", + "value": "{#IFNAME}" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "2ffdc1d5a318492bb497facd263843bd", + "expression": "change(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])<0 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0\nand\n(last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"])=6 or last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"])=1)\nand\n(last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2)", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "(change(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"],#2)>0) or\n(last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2)", + "name": "Interface {#IFNAME}: Ethernet has changed to lower speed than it was before", + "opdata": "Current reported speed: {ITEM.LASTVALUE1}", + "priority": "INFO", + "description": "This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge (Ack) to close the problem manually.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Interface {#IFNAME}: Link down", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "f64186d30b4e4c4281fce84349cbd646", + "expression": "(avg(/Linux/net.if.in[\"{#IFNAME}\"],15m)>({$IF.UTIL.MAX:\"{#IFNAME}\"}/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]) or\navg(/Linux/net.if.out[\"{#IFNAME}\"],15m)>({$IF.UTIL.MAX:\"{#IFNAME}\"}/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])) and\nlast(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "avg(/Linux/net.if.in[\"{#IFNAME}\"],15m)<(({$IF.UTIL.MAX:\"{#IFNAME}\"}-3)/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]) and\navg(/Linux/net.if.out[\"{#IFNAME}\"],15m)<(({$IF.UTIL.MAX:\"{#IFNAME}\"}-3)/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])", + "name": "Interface {#IFNAME}: High bandwidth usage", + "event_name": "Interface {#IFNAME}: High bandwidth usage (>{$IF.UTIL.MAX:\"{#IFNAME}\"}%)", + "opdata": "In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}", + "priority": "WARNING", + "description": "The utilization of the network interface is close to its estimated maximum bandwidth.", + "manual_close": "YES", + "dependencies": [ + { + "name": "Interface {#IFNAME}: Link down", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "ad50aecf8e7746b2a85f24507f1d511d", + "expression": "min(/Linux/net.if.in[\"{#IFNAME}\",errors],5m)>{$IF.ERRORS.WARN:\"{#IFNAME}\"}\nor min(/Linux/net.if.out[\"{#IFNAME}\",errors],5m)>{$IF.ERRORS.WARN:\"{#IFNAME}\"}", + "recovery_mode": "RECOVERY_EXPRESSION", + "recovery_expression": "max(/Linux/net.if.in[\"{#IFNAME}\",errors],5m)<{$IF.ERRORS.WARN:\"{#IFNAME}\"}*0.8\nand max(/Linux/net.if.out[\"{#IFNAME}\",errors],5m)<{$IF.ERRORS.WARN:\"{#IFNAME}\"}*0.8", + "name": "Interface {#IFNAME}: High error rate", + "event_name": "Interface {#IFNAME}: High error rate (>{$IF.ERRORS.WARN:\"{#IFNAME}\"} for 5m)", + "opdata": "errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}", + "priority": "WARNING", + "description": "It recovers when it is below 80% of the {$IF.ERRORS.WARN:\"{#IFNAME}\"} threshold", + "manual_close": "YES", + "dependencies": [ + { + "name": "Interface {#IFNAME}: Link down", + "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", + "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "50ced0f22d9d478eb4b639ef64e242ab", + "name": "Interface {#IFNAME}: Network traffic", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "net.if.in[\"{#IFNAME}\"]" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "net.if.out[\"{#IFNAME}\"]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "yaxisside": "RIGHT", + "item": { + "host": "Linux", + "key": "net.if.out[\"{#IFNAME}\",errors]" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "yaxisside": "RIGHT", + "item": { + "host": "Linux", + "key": "net.if.in[\"{#IFNAME}\",errors]" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "yaxisside": "RIGHT", + "item": { + "host": "Linux", + "key": "net.if.out[\"{#IFNAME}\",dropped]" + } + }, + { + "sortorder": "5", + "color": "6C59DC", + "yaxisside": "RIGHT", + "item": { + "host": "Linux", + "key": "net.if.in[\"{#IFNAME}\",dropped]" + } + } + ] + } + ] + }, + { + "uuid": "2bbdc79f082d4c618e01bec625e9c90a", + "name": "Block devices discovery", + "key": "vfs.dev.discovery", + "delay": "1h", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#DEVNAME}", + "value": "{$VFS.DEV.DEVNAME.MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#DEVNAME}", + "value": "{$VFS.DEV.DEVNAME.NOT_MATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + }, + { + "macro": "{#DEVTYPE}", + "value": "disk", + "formulaid": "C" + } + ] + }, + "item_prototypes": [ + { + "uuid": "5e29abb8d56044f69426ed3594f8ac9f", + "name": "{#DEVNAME}: Disk average queue size (avgqu-sz)", + "type": "DEPENDENT", + "key": "vfs.dev.queue_size[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[10]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "9600208af80e4a6abe55bb5a2240ea8e", + "name": "{#DEVNAME}: Disk read request avg waiting time (r_await)", + "type": "CALCULATED", + "key": "vfs.dev.read.await[{#DEVNAME}]", + "history": "7d", + "value_type": "FLOAT", + "units": "!ms", + "params": "(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)", + "description": "This formula contains two boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "f4b982d8e7ee47adb34d74d817db43a6", + "name": "{#DEVNAME}: Disk read rate", + "type": "DEPENDENT", + "key": "vfs.dev.read.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "!r/s", + "description": "r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[0]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "877a3e892d9e489f98f2f16ea05bfdc2", + "name": "{#DEVNAME}: Disk read time (rate)", + "type": "DEPENDENT", + "key": "vfs.dev.read.time.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The rate of total read time counter; used in r_await calculation.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[3]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "4a3ee3166ee748e1855a2b02d44e9d62", + "name": "{#DEVNAME}: Disk utilization", + "type": "DEPENDENT", + "key": "vfs.dev.util[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "This item is the percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[9]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.1" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "5907708cf4854d48ae3ebf8f0bc41eef", + "name": "{#DEVNAME}: Disk write request avg waiting time (w_await)", + "type": "CALCULATED", + "key": "vfs.dev.write.await[{#DEVNAME}]", + "history": "7d", + "value_type": "FLOAT", + "units": "!ms", + "params": "(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)", + "description": "This formula contains two boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "c4eb904dfddd4b0f8cdee4b2c477e213", + "name": "{#DEVNAME}: Disk write rate", + "type": "DEPENDENT", + "key": "vfs.dev.write.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "!w/s", + "description": "w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[4]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "e828495863304b219e24965f7b91e963", + "name": "{#DEVNAME}: Disk write time (rate)", + "type": "DEPENDENT", + "key": "vfs.dev.write.time.rate[{#DEVNAME}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The rate of total write time counter; used in w_await calculation.", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$[7]" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + } + ], + "master_item": { + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "disk", + "value": "{#DEVNAME}" + } + ] + }, + { + "uuid": "8309fd01a5864ad68866717d0fe67080", + "name": "{#DEVNAME}: Get stats", + "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "description": "The contents of get /sys/block/{#DEVNAME}/stat to get the disk statistics.", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value.trim().split(/ +/));" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "raw" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "eb6230f786d04b658ce62c30a9309a34", + "expression": "min(/Linux/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:\"{#DEVNAME}\"} or min(/Linux/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:\"{#DEVNAME}\"}", + "name": "{#DEVNAME}: Disk read/write request responses are too high", + "event_name": "{#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:\"{#DEVNAME}\"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:\"{#DEVNAME}\"} ms for 15m)", + "priority": "WARNING", + "description": "This trigger might indicate the disk {#DEVNAME} saturation.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "5e9b35b27b90489390d397758fbfdf64", + "name": "{#DEVNAME}: Disk average waiting time", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "vfs.dev.read.await[{#DEVNAME}]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "vfs.dev.write.await[{#DEVNAME}]" + } + } + ] + }, + { + "uuid": "d436d6d5456c44f0a534bf1f681d5039", + "name": "{#DEVNAME}: Disk read/write rates", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "vfs.dev.read.rate[{#DEVNAME}]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "vfs.dev.write.rate[{#DEVNAME}]" + } + } + ] + }, + { + "uuid": "c42e4045e0974e89a306c57fb188c4fa", + "name": "{#DEVNAME}: Disk utilization and queue", + "graph_items": [ + { + "color": "1A7C11", + "yaxisside": "RIGHT", + "item": { + "host": "Linux", + "key": "vfs.dev.queue_size[{#DEVNAME}]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "vfs.dev.util[{#DEVNAME}]" + } + } + ] + } + ], + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ] + }, + { + "uuid": "7d090603037e4defb34ef74021d3adcd", + "name": "Mounted filesystem 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" + } + ] + }, + "description": "The discovery of mounted filesystems with different types.", + "item_prototypes": [ + { + "uuid": "4da7f08a979a46df8b8aeebb42a46207", + "name": "{#FSNAME}: Free inodes in %", + "key": "vfs.fs.inode[{#FSNAME},pfree]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ], + "trigger_prototypes": [ + { + "uuid": "115b2d37807f476faf6d02ef406acabd", + "expression": "min(/Linux/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}", + "name": "{#FSNAME}: Running out of free inodes", + "event_name": "{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}%)", + "opdata": "Free inodes: {ITEM.LASTVALUE1}", + "priority": "AVERAGE", + "description": "It may become impossible to write to a disk if there are no index nodes left.\nFollowing error messages may be returned as symptoms, even though the free space is available:\n - 'No space left on device';\n - 'Disk is full'.", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "ea012c7295344ffe8c66f7ea54d81042", + "expression": "min(/Linux/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:\"{#FSNAME}\"}", + "name": "{#FSNAME}: Running out of free inodes", + "event_name": "{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:\"{#FSNAME}\"}%)", + "opdata": "Free inodes: {ITEM.LASTVALUE1}", + "priority": "WARNING", + "description": "It may become impossible to write to a disk if there are no index nodes left.\nFollowing error messages may be returned as symptoms, even though the free space is available:\n - 'No space left on device';\n - 'Disk is full'.", + "dependencies": [ + { + "name": "{#FSNAME}: Running out of free inodes", + "expression": "min(/Linux/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}" + } + ], + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "61ffe6fcb9d94199aaeb5d568ab74a27", + "name": "{#FSNAME}: Space utilization", + "key": "vfs.fs.size[{#FSNAME},pused]", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "description": "The space utilization expressed in % for {#FSNAME}.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ] + }, + { + "uuid": "a6d90e0bc5ef4fb7acee8682687c485f", + "name": "{#FSNAME}: Total space", + "key": "vfs.fs.size[{#FSNAME},total]", + "history": "7d", + "units": "B", + "description": "The total space expressed in Bytes.", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ] + }, + { + "uuid": "efee06a191aa4e5c8faa2762988b6955", + "name": "{#FSNAME}: Used space", + "key": "vfs.fs.size[{#FSNAME},used]", + "history": "7d", + "units": "B", + "description": "Used storage expressed in Bytes", + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "filesystem", + "value": "{#FSNAME}" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "9abccdfff8be4e14967ac917ca09afe1", + "expression": "last(/Linux/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"} and\n((last(/Linux/vfs.fs.size[{#FSNAME},total])-last(/Linux/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.CRIT:\"{#FSNAME}\"} or timeleft(/Linux/vfs.fs.size[{#FSNAME},pused],1h,100)<1d)", + "name": "{#FSNAME}: Disk space is critically low", + "event_name": "{#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}%)", + "opdata": "Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})", + "priority": "AVERAGE", + "description": "Two conditions should match:\n 1. The first condition - utilization of space should be above {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}.\n 2. The second condition should be one of the following:\n - the disk free space is less than {$VFS.FS.FREE.MIN.CRIT:\"{#FSNAME}\"};\n - the disk will be full in less than 24 hours.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "capacity" + } + ] + }, + { + "uuid": "d6d348ea500c428da6ba718816c4b048", + "expression": "last(/Linux/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"} and\n((last(/Linux/vfs.fs.size[{#FSNAME},total])-last(/Linux/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.WARN:\"{#FSNAME}\"} or timeleft(/Linux/vfs.fs.size[{#FSNAME},pused],1h,100)<1d)", + "name": "{#FSNAME}: Disk space is low", + "event_name": "{#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"}%)", + "opdata": "Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})", + "priority": "WARNING", + "description": "Two conditions should match:\n 1. The first condition - utilization of space should be above {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}.\n 2. The second condition should be one of the following:\n - the disk free space is less than {$VFS.FS.FREE.MIN.WARN:\"{#FSNAME}\"};\n - the disk will be full in less than 24 hours.", + "manual_close": "YES", + "dependencies": [ + { + "name": "{#FSNAME}: Disk space is critically low", + "expression": "last(/Linux/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"} and\n((last(/Linux/vfs.fs.size[{#FSNAME},total])-last(/Linux/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.CRIT:\"{#FSNAME}\"} or timeleft(/Linux/vfs.fs.size[{#FSNAME},pused],1h,100)<1d)" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + }, + { + "tag": "scope", + "value": "capacity" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "1e0889c551584013acbb97c84ae89d1c", + "name": "{#FSNAME}: Disk space usage", + "width": "600", + "height": "340", + "type": "PIE", + "show_3d": "YES", + "graph_items": [ + { + "color": "969696", + "calc_fnc": "LAST", + "type": "GRAPH_SUM", + "item": { + "host": "Linux", + "key": "vfs.fs.size[{#FSNAME},total]" + } + }, + { + "sortorder": "1", + "color": "C80000", + "calc_fnc": "LAST", + "item": { + "host": "Linux", + "key": "vfs.fs.size[{#FSNAME},used]" + } + } + ] + } + ], + "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": "linux" + } + ], + "macros": [ + { + "macro": "{$AGENT.TIMEOUT}", + "value": "3m", + "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)." + }, + { + "macro": "{$CPU.UTIL.CRIT}", + "value": "90" + }, + { + "macro": "{$IF.ERRORS.WARN}", + "value": "2" + }, + { + "macro": "{$IF.UTIL.MAX}", + "value": "90", + "description": "This macro is used as a threshold in the interface utilization trigger." + }, + { + "macro": "{$IFCONTROL}", + "value": "1" + }, + { + "macro": "{$KERNEL.MAXFILES.MIN}", + "value": "256" + }, + { + "macro": "{$KERNEL.MAXPROC.MIN}", + "value": "1024" + }, + { + "macro": "{$LOAD_AVG_PER_CPU.MAX.WARN}", + "value": "1.5", + "description": "CPU load per core is considered sustainable. If necessary, it can be tuned." + }, + { + "macro": "{$MEMORY.AVAILABLE.MIN}", + "value": "20M", + "description": "This macro is used as a threshold in the memory available trigger." + }, + { + "macro": "{$MEMORY.UTIL.MAX}", + "value": "90", + "description": "This macro is used as a threshold in the memory utilization trigger." + }, + { + "macro": "{$NET.IF.IFNAME.MATCHES}", + "value": "^.*$" + }, + { + "macro": "{$NET.IF.IFNAME.NOT_MATCHES}", + "value": "(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})", + "description": "It filters out loopbacks, nulls, docker veth links and docker0 bridge by default." + }, + { + "macro": "{$SWAP.PFREE.MIN.WARN}", + "value": "50" + }, + { + "macro": "{$SYSTEM.FUZZYTIME.MAX}", + "value": "60" + }, + { + "macro": "{$VFS.DEV.DEVNAME.MATCHES}", + "value": ".+", + "description": "This macro is used for a discovery of block devices. It can be overridden on host level or its linked template level." + }, + { + "macro": "{$VFS.DEV.DEVNAME.NOT_MATCHES}", + "value": "^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)", + "description": "This macro is used for a discovery of block devices. It can be overridden on host level or its linked template level." + }, + { + "macro": "{$VFS.DEV.READ.AWAIT.WARN}", + "value": "40", + "description": "The average response time (in ms) of disk read before the trigger would fire." + }, + { + "macro": "{$VFS.DEV.WRITE.AWAIT.WARN}", + "value": "40", + "description": "The average response time (in ms) of disk write before the trigger would fire." + }, + { + "macro": "{$VFS.FS.FREE.MIN.CRIT}", + "value": "5G", + "description": "The critical threshold for utilization of the filesystem." + }, + { + "macro": "{$VFS.FS.FREE.MIN.WARN}", + "value": "10G", + "description": "The warning threshold for utilization of the filesystem." + }, + { + "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." + }, + { + "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." + }, + { + "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." + }, + { + "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." + }, + { + "macro": "{$VFS.FS.INODE.PFREE.MIN.CRIT}", + "value": "10" + }, + { + "macro": "{$VFS.FS.INODE.PFREE.MIN.WARN}", + "value": "20" + }, + { + "macro": "{$VFS.FS.PUSED.MAX.CRIT}", + "value": "90" + }, + { + "macro": "{$VFS.FS.PUSED.MAX.WARN}", + "value": "80" + } + ], + "dashboards": [ + { + "uuid": "14aa11c326a54ec390d4c209d30cc741", + "name": "Network interfaces", + "pages": [ + { + "widgets": [ + { + "type": "graphprototype", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux", + "name": "Interface {#IFNAME}: Network traffic" + } + }, + { + "type": "INTEGER", + "name": "rows", + "value": "1" + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "2" + } + ] + } + ] + } + ] + }, + { + "uuid": "e9ca2f8e715f428b8edc0129aa0c79de", + "name": "System performance", + "pages": [ + { + "widgets": [ + { + "type": "graph", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux", + "name": "System load" + } + } + ] + }, + { + "type": "graph", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux", + "name": "Memory usage" + } + } + ] + }, + { + "type": "graphprototype", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux", + "name": "{#DEVNAME}: Disk read/write rates" + } + } + ] + }, + { + "type": "graphprototype", + "y": "15", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux", + "name": "{#DEVNAME}: Disk utilization and queue" + } + } + ] + }, + { + "type": "graphprototype", + "y": "20", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux", + "name": "{#FSNAME}: Disk space usage" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux", + "name": "CPU usage" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Linux", + "name": "Swap usage" + } + } + ] + }, + { + "type": "graphprototype", + "x": "12", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux", + "name": "{#DEVNAME}: Disk average waiting time" + } + } + ] + }, + { + "type": "graphprototype", + "x": "12", + "y": "15", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Linux", + "name": "Interface {#IFNAME}: Network traffic" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "8c048c6cca8248f2860c208e8db0f59e", + "name": "ifOperStatus", + "mappings": [ + { + "value": "0", + "newvalue": "unknown" + }, + { + "value": "1", + "newvalue": "notpresent" + }, + { + "value": "2", + "newvalue": "down" + }, + { + "value": "3", + "newvalue": "lowerlayerdown" + }, + { + "value": "4", + "newvalue": "testing" + }, + { + "value": "5", + "newvalue": "dormant" + }, + { + "value": "6", + "newvalue": "up" + } + ] + }, + { + "uuid": "044df261808442a8af9e5cda0acaa6a5", + "name": "Linux::Interface protocol types", + "mappings": [ + { + "value": "0", + "newvalue": "from KA9Q: NET/ROM pseudo" + }, + { + "value": "1", + "newvalue": "Ethernet" + }, + { + "value": "2", + "newvalue": "Experimental Ethernet" + }, + { + "value": "3", + "newvalue": "AX.25 Level 2" + }, + { + "value": "4", + "newvalue": "PROnet token ring" + }, + { + "value": "5", + "newvalue": "Chaosnet" + }, + { + "value": "6", + "newvalue": "IEEE 802.2 Ethernet/TR/TB" + }, + { + "value": "7", + "newvalue": "ARCnet" + }, + { + "value": "8", + "newvalue": "APPLEtalk" + }, + { + "value": "15", + "newvalue": "Frame Relay DLCI" + }, + { + "value": "19", + "newvalue": "ATM" + }, + { + "value": "23", + "newvalue": "Metricom STRIP (new IANA id)" + }, + { + "value": "24", + "newvalue": "IEEE 1394 IPv4 - RFC 2734" + }, + { + "value": "27", + "newvalue": "EUI-64" + }, + { + "value": "32", + "newvalue": "InfiniBand" + }, + { + "value": "256", + "newvalue": "ARPHRD_SLIP" + }, + { + "value": "257", + "newvalue": "ARPHRD_CSLIP" + }, + { + "value": "258", + "newvalue": "ARPHRD_SLIP6" + }, + { + "value": "259", + "newvalue": "ARPHRD_CSLIP6" + }, + { + "value": "260", + "newvalue": "Notional KISS type" + }, + { + "value": "264", + "newvalue": "ARPHRD_ADAPT" + }, + { + "value": "270", + "newvalue": "ARPHRD_ROSE" + }, + { + "value": "271", + "newvalue": "CCITT X.25" + }, + { + "value": "272", + "newvalue": "Boards with X.25 in firmware" + }, + { + "value": "280", + "newvalue": "Controller Area Network" + }, + { + "value": "512", + "newvalue": "ARPHRD_PPP" + }, + { + "value": "513", + "newvalue": "Cisco HDLC" + }, + { + "value": "516", + "newvalue": "LAPB" + }, + { + "value": "517", + "newvalue": "Digital's DDCMP protocol" + }, + { + "value": "518", + "newvalue": "Raw HDLC" + }, + { + "value": "519", + "newvalue": "Raw IP" + }, + { + "value": "768", + "newvalue": "IPIP tunnel" + }, + { + "value": "769", + "newvalue": "IP6IP6 tunnel" + }, + { + "value": "770", + "newvalue": "Frame Relay Access Device" + }, + { + "value": "771", + "newvalue": "SKIP vif" + }, + { + "value": "772", + "newvalue": "Loopback device" + }, + { + "value": "773", + "newvalue": "Localtalk device" + }, + { + "value": "774", + "newvalue": "Fiber Distributed Data Interface" + }, + { + "value": "775", + "newvalue": "AP1000 BIF" + }, + { + "value": "776", + "newvalue": "sit0 device - IPv6-in-IPv4" + }, + { + "value": "777", + "newvalue": "IP over DDP tunneller" + }, + { + "value": "778", + "newvalue": "GRE over IP" + }, + { + "value": "779", + "newvalue": "PIMSM register interface" + }, + { + "value": "780", + "newvalue": "High Performance Parallel Interface" + }, + { + "value": "781", + "newvalue": "Nexus 64Mbps Ash" + }, + { + "value": "782", + "newvalue": "Acorn Econet" + }, + { + "value": "783", + "newvalue": "Linux-IrDA" + }, + { + "value": "784", + "newvalue": "Point to point fibrechannel" + }, + { + "value": "785", + "newvalue": "Fibrechannel arbitrated loop" + }, + { + "value": "786", + "newvalue": "Fibrechannel public loop" + }, + { + "value": "787", + "newvalue": "Fibrechannel fabric" + }, + { + "value": "800", + "newvalue": "Magic type ident for TR" + }, + { + "value": "801", + "newvalue": "IEEE 802.11" + }, + { + "value": "802", + "newvalue": "IEEE 802.11 + Prism2 header" + }, + { + "value": "803", + "newvalue": "IEEE 802.11 + radiotap header" + }, + { + "value": "804", + "newvalue": "ARPHRD_IEEE802154" + }, + { + "value": "805", + "newvalue": "IEEE 802.15.4 network monitor" + }, + { + "value": "820", + "newvalue": "PhoNet media type" + }, + { + "value": "821", + "newvalue": "PhoNet pipe header" + }, + { + "value": "822", + "newvalue": "CAIF media type" + }, + { + "value": "823", + "newvalue": "GRE over IPv6" + }, + { + "value": "824", + "newvalue": "Netlink header" + }, + { + "value": "825", + "newvalue": "IPv6 over LoWPAN" + }, + { + "value": "826", + "newvalue": "Vsock monitor header" + } + ] + }, + { + "uuid": "5488e5d78d704b78aee60c60414ce0c3", + "name": "zabbix.host.available", + "mappings": [ + { + "value": "0", + "newvalue": "not available" + }, + { + "value": "1", + "newvalue": "available" + }, + { + "value": "2", + "newvalue": "unknown" + } + ] + }, + { + "uuid": "64faba3a883241a88da8833970ac3ab0", + "name": "Zabbix agent ping status", + "mappings": [ + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "triggers": [ + { + "uuid": "ae5269e17d434927bfd6edc09a9a1f4d", + "expression": "last(/Linux/proc.num)/last(/Linux/kernel.maxproc)*100>80", + "name": "Getting closer to process limit", + "event_name": "Getting closer to process limit (over 80% used)", + "opdata": "{ITEM.LASTVALUE1} active, {ITEM.LASTVALUE2} limit.", + "priority": "WARNING", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "f49fc01c5ac945d59455563bdbcc6469", + "expression": "max(/Linux/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux/system.swap.size[,total])>0", + "name": "High swap space usage", + "event_name": "High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)", + "opdata": "Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}", + "priority": "WARNING", + "description": "If there is no swap configured, this trigger is ignored.", + "dependencies": [ + { + "name": "High memory utilization", + "expression": "min(/Linux/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX}" + }, + { + "name": "Lack of available memory", + "expression": "max(/Linux/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux/vm.memory.size[total])>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "capacity" + } + ] + }, + { + "uuid": "686470cef97f48f6b017e9fc7a078afe", + "expression": "max(/Linux/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux/vm.memory.size[total])>0", + "name": "Lack of available memory", + "event_name": "Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})", + "opdata": "Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}", + "priority": "AVERAGE", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + }, + { + "uuid": "695f0c352377409d95aca3fe76d1cae2", + "expression": "min(/Linux/system.cpu.load[all,avg1],5m)/last(/Linux/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}\nand last(/Linux/system.cpu.load[all,avg5])>0\nand last(/Linux/system.cpu.load[all,avg15])>0", + "name": "Load average is too high", + "event_name": "Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)", + "opdata": "Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}", + "priority": "AVERAGE", + "description": "The load average per CPU is too high. The system may be slow to respond.", + "tags": [ + { + "tag": "scope", + "value": "capacity" + }, + { + "tag": "scope", + "value": "performance" + } + ] + } + ], + "graphs": [ + { + "uuid": "4a72646168d545c398c92e09c975a966", + "name": "CPU jumps", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "system.cpu.switches" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "system.cpu.intr" + } + } + ] + }, + { + "uuid": "f217c30162b24c9190785fad1ec83b73", + "name": "CPU usage", + "type": "STACKED", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "system.cpu.util[,system]" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "system.cpu.util[,user]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Linux", + "key": "system.cpu.util[,nice]" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "Linux", + "key": "system.cpu.util[,iowait]" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "item": { + "host": "Linux", + "key": "system.cpu.util[,steal]" + } + }, + { + "sortorder": "5", + "color": "6C59DC", + "item": { + "host": "Linux", + "key": "system.cpu.util[,interrupt]" + } + }, + { + "sortorder": "6", + "color": "AC8C14", + "item": { + "host": "Linux", + "key": "system.cpu.util[,softirq]" + } + }, + { + "sortorder": "7", + "color": "611F27", + "item": { + "host": "Linux", + "key": "system.cpu.util[,guest]" + } + }, + { + "sortorder": "8", + "color": "F230E0", + "item": { + "host": "Linux", + "key": "system.cpu.util[,guest_nice]" + } + } + ] + }, + { + "uuid": "668ae470ea33444bb40e3b83b97659c3", + "name": "CPU utilization", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "system.cpu.util" + } + } + ] + }, + { + "uuid": "f260a63bc3b04c3b80b47f83bb05ed9c", + "name": "Memory usage", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "drawtype": "BOLD_LINE", + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "vm.memory.size[total]" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "vm.memory.size[available]" + } + } + ] + }, + { + "uuid": "bac7a8fb7e014696b54d262bf40e5b12", + "name": "Memory utilization", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "vm.memory.utilization" + } + } + ] + }, + { + "uuid": "fa49531c9c3d4087b2205bed6ed0469f", + "name": "Processes", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "proc.num" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "proc.num[,,run]" + } + } + ] + }, + { + "uuid": "1ca6e2d883114853bd402110c3fd211e", + "name": "Swap usage", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "system.swap.size[,free]" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "system.swap.size[,total]" + } + } + ] + }, + { + "uuid": "1b8cc9470a5040d79090a3e5dfcb0a76", + "name": "System load", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Linux", + "key": "system.cpu.load[all,avg1]" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "Linux", + "key": "system.cpu.load[all,avg5]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Linux", + "key": "system.cpu.load[all,avg15]" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "yaxisside": "RIGHT", + "item": { + "host": "Linux", + "key": "system.cpu.num" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/lxd-container-zabbix-template.json b/zabbix-templates/6.4/lxd-container-zabbix-template.json new file mode 100644 index 0000000..977569b --- /dev/null +++ b/zabbix-templates/6.4/lxd-container-zabbix-template.json @@ -0,0 +1,1161 @@ +{ + "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]" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/mysql-mariadb-zabbix-template.json b/zabbix-templates/6.4/mysql-mariadb-zabbix-template.json new file mode 100644 index 0000000..e380e5e --- /dev/null +++ b/zabbix-templates/6.4/mysql-mariadb-zabbix-template.json @@ -0,0 +1,2633 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", + "name": "Nextcloud Installation" + }, + { + "uuid": "748ad4d098d447d492bb935c907f652f", + "name": "Templates/Databases" + } + ], + "templates": [ + { + "uuid": "f255e3fc32124b55b2a17ef3c961e5f5", + "template": "MariaDB", + "name": "MariaDB", + "description": "Requirements for template operation:\n1.Install Zabbix agent and MySQL client.\n2.Copy template_db_mysql.conf into folder with Zabbix agent configuration (/etc/zabbix/zabbix_agentd.d/ by default). Don't forget to restart zabbix-agent.\n3.Create MySQL user for monitoring. For example:\nCREATE USER 'zbx_monitor'@'%' IDENTIFIED BY '';\nGRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%';\nFor more information read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/grant.html , please. \n4.Create .my.cnf in home directory of Zabbix agent for Linux (/var/lib/zabbix by default) or my.cnf in c:\\ for Windows. For example:\n[client]\nuser='zbx_monitor'\npassword=''\n\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql\n\nTemplate tooling version used: 0.42", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates/Databases" + } + ], + "items": [ + { + "uuid": "b463e01655bf4dec81d5208f7a75766b", + "name": "MySQL: Aborted clients per second", + "type": "DEPENDENT", + "key": "mysql.aborted_clients.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of connections that were aborted because the client died without closing the connection properly.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Aborted_clients']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "d33a03e48f6d45dca04a505bab07a860", + "name": "MySQL: Aborted connections per second", + "type": "DEPENDENT", + "key": "mysql.aborted_connects.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of failed attempts to connect to the MySQL server.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Aborted_connects']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ], + "triggers": [ + { + "uuid": "e51c9ee3061c4e3889be1666afe6959d", + "expression": "min(/MariaDB/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}", + "name": "MySQL: Server has aborted connections", + "event_name": "MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)", + "priority": "AVERAGE", + "description": "The number of failed attempts to connect to the MySQL server is more than {$MYSQL.ABORTED_CONN.MAX.WARN} in the last 5 minutes.", + "dependencies": [ + { + "name": "MySQL: Refused connections", + "expression": "last(/MariaDB/mysql.connection_errors_max_connections.rate)>0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "75b9c78d76334927a3fc2a4d1322ecc2", + "name": "MySQL: Binlog cache disk use", + "type": "DEPENDENT", + "key": "mysql.binlog_cache_disk_use", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than binlog_cache_size.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Binlog_cache_disk_use']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "cache" + } + ] + }, + { + "uuid": "9a447424aca84124abdfa389865126d4", + "name": "MySQL: Buffer pool efficiency", + "type": "CALCULATED", + "key": "mysql.buffer_pool_efficiency", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "params": "last(//mysql.innodb_buffer_pool_reads) / \n( last(//mysql.innodb_buffer_pool_read_requests) + \n( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * \n( last(//mysql.innodb_buffer_pool_read_requests) > 0 )", + "description": "The item shows how effectively the buffer pool is serving reads.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "9aca02e86e744f43ab48e8ca9453cf77", + "name": "MySQL: Buffer pool utilization", + "type": "CALCULATED", + "key": "mysql.buffer_pool_utilization", + "history": "7d", + "value_type": "FLOAT", + "units": "%", + "params": "( last(//mysql.innodb_buffer_pool_pages_total) - \nlast(//mysql.innodb_buffer_pool_pages_free) ) / \n( last(//mysql.innodb_buffer_pool_pages_total) + \n( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * \n( last(//mysql.innodb_buffer_pool_pages_total) > 0 )", + "description": "Ratio of used to total pages in the buffer pool.", + "tags": [ + { + "tag": "component", + "value": "memory" + } + ], + "triggers": [ + { + "uuid": "0e8ea91d72a64507aaadf9ea5efa6412", + "expression": "max(/MariaDB/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}", + "name": "MySQL: Buffer pool utilization is too low", + "event_name": "MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)", + "priority": "WARNING", + "description": "The buffer pool utilization is less than {$MYSQL.BUFF_UTIL.MIN.WARN}% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "56512a1e89d34826ad261ab27119e80d", + "name": "MySQL: Bytes received", + "type": "DEPENDENT", + "key": "mysql.bytes_received.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "Number of bytes received from all clients.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Bytes_received']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "c4cea16e3dbe4d328d9a50e113f3b904", + "name": "MySQL: Bytes sent", + "type": "DEPENDENT", + "key": "mysql.bytes_sent.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "Bps", + "description": "Number of bytes sent to all clients.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Bytes_sent']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "network" + } + ] + }, + { + "uuid": "24ab8f0bd32a45f591c676ef839876df", + "name": "MySQL: Command Delete per second", + "type": "DEPENDENT", + "key": "mysql.com_delete.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The Com_delete counter variable indicates the number of times the delete statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_delete']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "e48c67c893e5494fb00ea31222bd2caf", + "name": "MySQL: Command Insert per second", + "type": "DEPENDENT", + "key": "mysql.com_insert.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The Com_insert counter variable indicates the number of times the insert statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_insert']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "718c3af61f2645e8ab7d3496d6639c79", + "name": "MySQL: Command Select per second", + "type": "DEPENDENT", + "key": "mysql.com_select.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The Com_select counter variable indicates the number of times the select statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_select']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "e2c3ea26dd34472c9e5f0e48a67da6dd", + "name": "MySQL: Command Update per second", + "type": "DEPENDENT", + "key": "mysql.com_update.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The Com_update counter variable indicates the number of times the update statement has been executed.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Com_update']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "operations" + } + ] + }, + { + "uuid": "bcf8a21aacc54a79a958604b278f9617", + "name": "MySQL: Connections per second", + "type": "DEPENDENT", + "key": "mysql.connections.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of connection attempts (successful or not) to the MySQL server.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connections']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "dc963a1250ab453cb090af0154d745c3", + "name": "MySQL: Connection errors accept per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_accept.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of errors that occurred during calls to accept() on the listening port.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_accept']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "4cff4caf382f4f00b534651212132bd2", + "name": "MySQL: Connection errors internal per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_internal.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_internal']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "3cbc55fc7b764a61baceb11e98fd454c", + "name": "MySQL: Connection errors max connections per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_max_connections.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of refused connections due to the max_connections limit being reached.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_max_connections']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ], + "triggers": [ + { + "uuid": "2ff2d0f399df4cb08b7196d3a4690567", + "expression": "last(/MariaDB/mysql.connection_errors_max_connections.rate)>0", + "name": "MySQL: Refused connections", + "event_name": "MySQL: Refused connections (max_connections limit reached)", + "priority": "AVERAGE", + "description": "Number of refused connections due to the max_connections limit being reached.", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "e577b4b6c553401bbb831b7278dbbcb7", + "name": "MySQL: Connection errors peer address per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_peer_address.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of errors while searching for the connecting client IP address.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_peer_address']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "228aaf5333ce4958aa3a07e0898add63", + "name": "MySQL: Connection errors select per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_select.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of errors during calls to select() or poll() on the listening port. The client would not necessarily have been rejected in these cases.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_select']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "a7632124b2b648bfa80a2e8a0381f4d2", + "name": "MySQL: Connection errors tcpwrap per second", + "type": "DEPENDENT", + "key": "mysql.connection_errors_tcpwrap.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of connections the libwrap library has refused.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Connection_errors_tcpwrap']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "52335a039571454ebaccc9ab103200a3", + "name": "MySQL: Created tmp tables on disk per second", + "type": "DEPENDENT", + "key": "mysql.created_tmp_disk_tables.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of internal on-disk temporary tables created by the server while executing statements.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Created_tmp_disk_tables']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "component", + "value": "tables" + } + ], + "triggers": [ + { + "uuid": "1b8761292e89476e91834f8e567a1dbe", + "expression": "min(/MariaDB/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}", + "name": "MySQL: Number of on-disk temporary tables created per second is high", + "event_name": "MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "Possibly the application using the database is in need of query optimization.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "d1dd183666d44010a5054f2e1cc328de", + "name": "MySQL: Created tmp files on disk per second", + "type": "DEPENDENT", + "key": "mysql.created_tmp_files.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "How many temporary files mysqld has created.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Created_tmp_files']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "storage" + } + ], + "triggers": [ + { + "uuid": "9845d8dc676f4702ae34b626f39d21ac", + "expression": "min(/MariaDB/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}", + "name": "MySQL: Number of temporary files created per second is high", + "event_name": "MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "Possibly the application using the database is in need of query optimization.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "c9a94c3145a643ef8ceec33f63b85ae9", + "name": "MySQL: Created tmp tables on memory per second", + "type": "DEPENDENT", + "key": "mysql.created_tmp_tables.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of internal temporary tables created by the server while executing statements.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Created_tmp_tables']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "memory" + }, + { + "tag": "component", + "value": "tables" + } + ], + "triggers": [ + { + "uuid": "c647a51864e04bc69a1f610b1dec56fe", + "expression": "min(/MariaDB/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}", + "name": "MySQL: Number of internal temporary tables created per second is high", + "event_name": "MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "Possibly the application using the database is in need of query optimization.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "2ba81b425bde4ba5b3f7d00a6c922ed9", + "name": "MySQL: Get status variables", + "type": "ZABBIX_ACTIVE", + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "description": "The item gets server global status information.", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ] + }, + { + "uuid": "a9b965a07b504fa1b4e90acae0156221", + "name": "MySQL: InnoDB buffer pool pages free", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_pages_free", + "delay": "0", + "history": "7d", + "description": "The total size of the InnoDB buffer pool, in pages.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_pages_free']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "efb2450fe30c4ec78b954a35595b7ac7", + "name": "MySQL: InnoDB buffer pool pages total", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_pages_total", + "delay": "0", + "history": "7d", + "description": "The total size of the InnoDB buffer pool, in pages.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_pages_total']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "7738a4480f69427a96d46a9ca5b38d77", + "name": "MySQL: InnoDB buffer pool reads", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_reads", + "delay": "0", + "history": "7d", + "description": "Number of logical reads that InnoDB could not satisfy from the buffer pool, and had to read directly from the disk.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_reads']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "1704fe0bf8de4882a6a16ebd75c4c3bf", + "name": "MySQL: InnoDB buffer pool reads per second", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_reads.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of logical reads per second that InnoDB could not satisfy from the buffer pool, and had to read directly from the disk.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_reads']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "598dcdb7eeec42c78484be70c814cd8a", + "name": "MySQL: InnoDB buffer pool read requests", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_read_requests", + "delay": "0", + "history": "7d", + "description": "Number of logical read requests.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_read_requests']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "3ed432f4e0c949debaed9d60c5d13810", + "name": "MySQL: InnoDB buffer pool read requests per second", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_read_requests.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of logical read requests per second.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_read_requests']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "61db0feae0b440c087177f4312eb6b7a", + "name": "MySQL: Innodb buffer pool wait free", + "type": "DEPENDENT", + "key": "mysql.innodb_buffer_pool_wait_free", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing innodb_buffer_pool_size.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_buffer_pool_wait_free']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "memory" + } + ] + }, + { + "uuid": "e5413d85449e4baea683c6365808cc17", + "name": "MySQL: Calculated value of innodb_log_file_size", + "type": "CALCULATED", + "key": "mysql.innodb_log_file_size", + "history": "7d", + "value_type": "FLOAT", + "params": "(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}", + "description": "Calculated by (innodb_os_log_written-innodb_os_log_written(time shift -1h))/{$MYSQL.INNODB_LOG_FILES} value of the innodb_log_file_size. Innodb_log_file_size is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "2eacd8c07f7148acaaa9b8f8602720ae", + "name": "MySQL: Innodb number open files", + "type": "DEPENDENT", + "key": "mysql.innodb_num_open_files", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of open files held by InnoDB. InnoDB only.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_num_open_files']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "29d3513668ad4bdea28d947d2f983dd2", + "name": "MySQL: Innodb log written", + "type": "DEPENDENT", + "key": "mysql.innodb_os_log_written", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "B", + "description": "Number of bytes written to the InnoDB log.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_os_log_written']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "system" + } + ] + }, + { + "uuid": "3811018fdfaf4d92a5b8ff5d631d0047", + "name": "MySQL: InnoDB row lock time", + "type": "DEPENDENT", + "key": "mysql.innodb_row_lock_time", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "The total time spent in acquiring row locks for InnoDB tables, in milliseconds.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_row_lock_time']/field[@name='Value']/text()" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "579c1ad7680349a3b6a25dd12322fc14", + "name": "MySQL: InnoDB row lock time max", + "type": "DEPENDENT", + "key": "mysql.innodb_row_lock_time_max", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "units": "s", + "description": "The maximum time to acquire a row lock for InnoDB tables, in milliseconds.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_row_lock_time_max']/field[@name='Value']/text()" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "0.001" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "a4618dd9ed1d4ff19f34bc82f41dbbbb", + "name": "MySQL: InnoDB row lock waits", + "type": "DEPENDENT", + "key": "mysql.innodb_row_lock_waits", + "delay": "0", + "history": "7d", + "description": "Number of times operations on InnoDB tables had to wait for a row lock.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Innodb_row_lock_waits']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "innodb" + }, + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "e207dc3c0fe84928a36e643594d8cee5", + "name": "MySQL: Max used connections", + "type": "DEPENDENT", + "key": "mysql.max_used_connections", + "delay": "0", + "history": "7d", + "description": "The maximum number of connections that have been in use simultaneously since the server start.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Max_used_connections']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "connections" + } + ] + }, + { + "uuid": "3dd5ffb7c1cc45a487c5c7cabfa90ca6", + "name": "MySQL: Open tables", + "type": "DEPENDENT", + "key": "mysql.open_tables", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of tables that are open.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Open_tables']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "fe572969a6754248b10a35a5c0afedf3", + "name": "MySQL: Open table definitions", + "type": "DEPENDENT", + "key": "mysql.open_table_definitions", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of cached table definitions.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Open_table_definitions']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "tables" + } + ] + }, + { + "uuid": "41cd6c8c535948f3bde6324e0912f1a8", + "name": "MySQL: Status", + "type": "ZABBIX_ACTIVE", + "key": "mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "history": "7d", + "valuemap": { + "name": "Service state" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return value.indexOf('is alive') !== -1 ? 1 : 0;" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "10m" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + }, + { + "tag": "component", + "value": "health" + } + ], + "triggers": [ + { + "uuid": "e78f07e3e507461f8fe33a31b1bc4eb9", + "expression": "last(/MariaDB/mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"])=0", + "name": "MySQL: Service is down", + "priority": "HIGH", + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + } + ] + }, + { + "uuid": "c11b8c8ec3e843cea63f6cc1d8309ccd", + "name": "MySQL: Queries per second", + "type": "DEPENDENT", + "key": "mysql.queries.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the Questions variable.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Queries']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "queries" + } + ] + }, + { + "uuid": "cd7c5c4e262f4a73975d46d06ed903f9", + "name": "MySQL: Questions per second", + "type": "DEPENDENT", + "key": "mysql.questions.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries variable.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Questions']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "queries" + } + ] + }, + { + "uuid": "a1cfc616f23648e9946f408c7146df0a", + "name": "MySQL: Slow queries per second", + "type": "DEPENDENT", + "key": "mysql.slow_queries.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of queries that have taken more than long_query_time seconds.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Slow_queries']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "queries" + } + ], + "triggers": [ + { + "uuid": "113509b7a7b54a108c1c63346a52bbf2", + "expression": "min(/MariaDB/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}", + "name": "MySQL: Server has slow queries", + "event_name": "MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)", + "priority": "WARNING", + "description": "The number of slow queries is more than {$MYSQL.SLOW_QUERIES.MAX.WARN} in the last 5 minutes.", + "tags": [ + { + "tag": "scope", + "value": "performance" + } + ] + } + ] + }, + { + "uuid": "a9ce1d75a97d4740876fad7b5d569211", + "name": "MySQL: Threads cached", + "type": "DEPENDENT", + "key": "mysql.threads_cached", + "delay": "0", + "history": "7d", + "description": "Number of threads in the thread cache.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_cached']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "a0079f5ffbdc40cc89b35a8b6170c32b", + "name": "MySQL: Threads connected", + "type": "DEPENDENT", + "key": "mysql.threads_connected", + "delay": "0", + "history": "7d", + "description": "Number of currently open connections.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_connected']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "06976fcb42ab4a33b0056a864ecd31e7", + "name": "MySQL: Threads created per second", + "type": "DEPENDENT", + "key": "mysql.threads_created.rate", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of threads created to handle connections. If Threads_created is big, you may want to increase the thread_cache_size value. The cache miss rate can be calculated as Threads_created/Connections.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_created']/field[@name='Value']/text()" + ] + }, + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "255c00a984ba462e84ba46a7430f21c9", + "name": "MySQL: Threads running", + "type": "DEPENDENT", + "key": "mysql.threads_running", + "delay": "0", + "history": "7d", + "description": "Number of threads which are not sleeping.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Threads_running']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "threads" + } + ] + }, + { + "uuid": "6ffa704603014f0f9f765590955fb01c", + "name": "MySQL: Uptime", + "type": "DEPENDENT", + "key": "mysql.uptime", + "delay": "0", + "history": "7d", + "units": "uptime", + "description": "The amount of seconds that the server has been up.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Uptime']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "d3c80c770355464fb5a6be0357d0edca", + "expression": "nodata(/MariaDB/mysql.uptime,30m)=1", + "name": "MySQL: Failed to fetch info data", + "event_name": "MySQL: Failed to fetch info data (or no data for 30m)", + "priority": "INFO", + "description": "Zabbix has not received data for items for the last 30 minutes.", + "dependencies": [ + { + "name": "MySQL: Service is down", + "expression": "last(/MariaDB/mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"])=0" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + }, + { + "uuid": "f02f51c764934cf394c5ad3f9c4e70d2", + "expression": "last(/MariaDB/mysql.uptime)<10m", + "name": "MySQL: Service has been restarted", + "event_name": "MySQL: Service has been restarted (uptime < 10m)", + "priority": "INFO", + "description": "MySQL uptime is less than 10 minutes.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "a5d0f152c3ef4e069c3d5a6a5a9470fe", + "name": "MySQL: Version", + "type": "ZABBIX_ACTIVE", + "key": "mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "delay": "15m", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "preprocessing": [ + { + "type": "REGEX", + "parameters": [ + "(Server version)\\s+(.+)", + "\\2" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "application" + } + ], + "triggers": [ + { + "uuid": "7eab3a7337904ad1b2061d209371543b", + "expression": "last(/MariaDB/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"],#1)<>last(/MariaDB/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"],#2) and length(last(/MariaDB/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]))>0", + "name": "MySQL: Version has changed", + "event_name": "MySQL: Version has changed (new version value received: {ITEM.VALUE})", + "priority": "INFO", + "description": "MySQL version has changed. Ack to close.", + "manual_close": "YES", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "8ceb226f000d48f099ee6e128ad551b5", + "name": "Database discovery", + "type": "ZABBIX_ACTIVE", + "key": "mysql.db.discovery[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "delay": "1h", + "filter": { + "conditions": [ + { + "macro": "{#DBNAME}", + "value": "information_schema", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "A" + } + ] + }, + "description": "Scanning databases in DBMS.", + "item_prototypes": [ + { + "uuid": "dda45077011d4f8fa5c25b1f351179ca", + "name": "MySQL: Size of database {#DBNAME}", + "key": "mysql.dbsize[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#DBNAME}\"]", + "delay": "5m", + "history": "7d", + "value_type": "FLOAT", + "units": "MB", + "preprocessing": [ + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + }, + { + "type": "MULTIPLIER", + "parameters": [ + "9.5367431640625E-7" + ] + } + ], + "tags": [ + { + "tag": "component", + "value": "storage" + }, + { + "tag": "database", + "value": "{#DBNAME}" + } + ] + } + ], + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value.split(\"\\n\").map(function (name) {\n return ({\"{#DBNAME}\": name});\n}));" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ] + }, + { + "uuid": "bc28468760e14d069ef7b47858846a50", + "name": "MariaDB discovery", + "type": "DEPENDENT", + "key": "mysql.extra_metric.discovery", + "delay": "0", + "description": "Additional metrics if MariaDB is used.", + "item_prototypes": [ + { + "uuid": "7743cdbaf71c491189ac1a927409e998", + "name": "MySQL: Binlog commits", + "type": "DEPENDENT", + "key": "mysql.binlog_commits[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Total number of transactions committed to the binary log.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Binlog_commits']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "c897f8f0fb1c4e409dd95305fd221e01", + "name": "MySQL: Binlog group commits", + "type": "DEPENDENT", + "key": "mysql.binlog_group_commits[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Total number of group commits done to the binary log.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Binlog_group_commits']/field[@name='Value']/text()" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "749e72ebd1014f7faee352e23ac3dfdd", + "name": "MySQL: Master GTID wait count", + "type": "DEPENDENT", + "key": "mysql.master_gtid_wait_count[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "The number of times MASTER_GTID_WAIT called.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Master_gtid_wait_count']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "4a4537b0db5b43119af910d0ba421035", + "name": "MySQL: Master GTID wait timeouts", + "type": "DEPENDENT", + "key": "mysql.master_gtid_wait_timeouts[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Number of timeouts occurring in MASTER_GTID_WAIT.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Master_gtid_wait_timeouts']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + }, + { + "uuid": "c1e95abc88cf486a9226bf760254f797", + "name": "MySQL: Master GTID wait time", + "type": "DEPENDENT", + "key": "mysql.master_gtid_wait_time[{#SINGLETON}]", + "delay": "0", + "history": "7d", + "value_type": "FLOAT", + "description": "Total number of time spent in MASTER_GTID_WAIT.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Master_gtid_wait_time']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "transactions" + } + ] + } + ], + "master_item": { + "key": "mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" + }, + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "return JSON.stringify(value.search('MariaDB')>-1 ? [{'{#SINGLETON}': ''}] : []);" + ] + } + ] + }, + { + "uuid": "aed60b7ae3794d0ba25ad82da12b8966", + "name": "Replication discovery", + "type": "ZABBIX_ACTIVE", + "key": "mysql.replication.discovery[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", + "delay": "1h", + "description": "If \"show slave status\" returns Master_Host, \"Replication: *\" items are created.", + "item_prototypes": [ + { + "uuid": "48555d71074f4cd4a61dca6187c8b29a", + "name": "MySQL: Replication Seconds Behind Master {#MASTERHOST}", + "type": "DEPENDENT", + "key": "mysql.seconds_behind_master[\"{#MASTERHOST}\"]", + "delay": "0", + "history": "7d", + "units": "s", + "description": "The number of seconds that the slave SQL thread is behind processing the master binary log.\nA high number (or an increasing one) can indicate that the slave is unable to handle events\nfrom the master in a timely fashion.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row/field[@name='Seconds_Behind_Master']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + }, + { + "type": "NOT_MATCHES_REGEX", + "parameters": [ + "null" + ], + "error_handler": "CUSTOM_ERROR", + "error_handler_params": "Replication is not performed." + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "a5c91da088414d279f5ea3cd59093ce9", + "expression": "min(/MariaDB/mysql.seconds_behind_master[\"{#MASTERHOST}\"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}", + "name": "MySQL: Replication lag is too high", + "event_name": "MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)", + "priority": "WARNING", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "1c075f4785604d92a33a868e213070d8", + "name": "MySQL: Replication Slave IO Running {#MASTERHOST}", + "type": "DEPENDENT", + "key": "mysql.slave_io_running[\"{#MASTERHOST}\"]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Whether the I/O thread for reading the master's binary log is running.\nNormally, you want this to be Yes unless you have not yet started replication or have\nexplicitly stopped it with STOP SLAVE.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row/field[@name='Slave_IO_Running']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "8ee45932311443cb906306b1d2c99b19", + "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"ne\",\"Yes\")=1", + "name": "MySQL: The slave I/O thread is not connected to a replication master", + "priority": "WARNING", + "dependencies": [ + { + "name": "MySQL: The slave I/O thread is not running", + "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1" + } + ], + "tags": [ + { + "tag": "scope", + "value": "availability" + } + ] + }, + { + "uuid": "4c8ca45f26254d9a9a1c9248f1fa1537", + "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1", + "name": "MySQL: The slave I/O thread is not running", + "priority": "AVERAGE", + "description": "Whether the I/O thread for reading the master's binary log is running.", + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "967c6fd13cc04562a9fea174bd90b8c4", + "name": "MySQL: Replication Slave SQL Running {#MASTERHOST}", + "type": "DEPENDENT", + "key": "mysql.slave_sql_running[\"{#MASTERHOST}\"]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "CHAR", + "description": "Whether the SQL thread for executing events in the relay log is running.\nAs with the I/O thread, this should normally be Yes.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row/field[@name='Slave_SQL_Running']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1h" + ] + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ], + "trigger_prototypes": [ + { + "uuid": "bd0d20c05e3b46b6a7c341e5d122208b", + "expression": "count(/MariaDB/mysql.slave_sql_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1", + "name": "MySQL: The SQL thread is not running", + "priority": "WARNING", + "description": "Whether the SQL thread for executing events in the relay log is running.", + "dependencies": [ + { + "name": "MySQL: The slave I/O thread is not running", + "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1" + } + ], + "tags": [ + { + "tag": "scope", + "value": "notice" + } + ] + } + ] + }, + { + "uuid": "27e807d840d4474484c2e1f896726b6b", + "name": "MySQL: Replication Slave SQL Running State {#MASTER_HOST}", + "type": "DEPENDENT", + "key": "mysql.slave_sql_running_state[\"{#MASTER_HOST}\"]", + "delay": "0", + "history": "7d", + "trends": "0", + "value_type": "TEXT", + "description": "This shows the state of the SQL driver threads.", + "preprocessing": [ + { + "type": "XMLPATH", + "parameters": [ + "/resultset/row[field/text()='Slave_SQL_Running_State']/field[@name='Value']/text()" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "6h" + ] + } + ], + "master_item": { + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" + }, + "tags": [ + { + "tag": "component", + "value": "replication" + } + ] + }, + { + "uuid": "d87c7c03e5884a43912f60ad91c3b46f", + "name": "MySQL: Replication Slave status {#MASTERHOST}", + "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "description": "The item gets status information on the essential parameters of the slave threads.", + "tags": [ + { + "tag": "component", + "value": "raw" + } + ] + } + ], + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "var matches = value.match(/Master_Host.*>(.*)<.*/);\nif (matches) {\n return JSON.stringify([{\"{#MASTERHOST}\": matches[1]}]);\n}\n\nreturn '[]';" + ] + }, + { + "type": "DISCARD_UNCHANGED_HEARTBEAT", + "parameters": [ + "1d" + ] + } + ] + } + ], + "tags": [ + { + "tag": "class", + "value": "database" + }, + { + "tag": "target", + "value": "mysql" + } + ], + "macros": [ + { + "macro": "{$MYSQL.ABORTED_CONN.MAX.WARN}", + "value": "3", + "description": "The number of failed attempts to connect to the MySQL server for trigger expression." + }, + { + "macro": "{$MYSQL.BUFF_UTIL.MIN.WARN}", + "value": "50", + "description": "The minimum buffer pool utilization in percentage for trigger expression." + }, + { + "macro": "{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}", + "value": "10", + "description": "The maximum number of created tmp tables on a disk per second for trigger expressions." + }, + { + "macro": "{$MYSQL.CREATED_TMP_FILES.MAX.WARN}", + "value": "10", + "description": "The maximum number of created tmp files on a disk per second for trigger expressions." + }, + { + "macro": "{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}", + "value": "30", + "description": "The maximum number of created tmp tables in memory per second for trigger expressions." + }, + { + "macro": "{$MYSQL.HOST}", + "value": "127.0.0.1", + "description": "Hostname or IP of MySQL host or container." + }, + { + "macro": "{$MYSQL.INNODB_LOG_FILES}", + "value": "2", + "description": "Number of physical files in the InnoDB redo log for calculating innodb_log_file_size." + }, + { + "macro": "{$MYSQL.PORT}", + "value": "3306", + "description": "MySQL service port." + }, + { + "macro": "{$MYSQL.REPL_LAG.MAX.WARN}", + "value": "30m", + "description": "The lag of slave from master for trigger expression." + }, + { + "macro": "{$MYSQL.SLOW_QUERIES.MAX.WARN}", + "value": "3", + "description": "The number of slow queries for trigger expression." + } + ], + "dashboards": [ + { + "uuid": "ce2f9d7bb18e469f97e692baee02841d", + "name": "Database", + "display_period": "60", + "pages": [ + { + "widgets": [ + { + "type": "graph", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MariaDB", + "name": "MySQL: Operations" + } + } + ] + }, + { + "type": "graph", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MariaDB", + "name": "MySQL: Connections" + } + } + ] + }, + { + "type": "graph", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MariaDB", + "name": "MySQL: InnoDB buffer pool" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MariaDB", + "name": "MySQL: Queries" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MariaDB", + "name": "MySQL: Bandwidth" + } + } + ] + }, + { + "type": "graph", + "x": "12", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "MariaDB", + "name": "MySQL: Threads" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "4f2d7ca3c89246c6b691557447230031", + "name": "Service state", + "mappings": [ + { + "value": "0", + "newvalue": "Down" + }, + { + "value": "1", + "newvalue": "Up" + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "6ebb6f300b4a4ada80908ce11cae9e95", + "name": "MySQL: Bandwidth", + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "1A7C11", + "item": { + "host": "MariaDB", + "key": "mysql.bytes_received.rate" + } + }, + { + "sortorder": "1", + "drawtype": "GRADIENT_LINE", + "color": "2774A4", + "item": { + "host": "MariaDB", + "key": "mysql.bytes_sent.rate" + } + } + ] + }, + { + "uuid": "ea03bd4cc0f948f38ea638fe93f2ac69", + "name": "MySQL: Connections", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "MariaDB", + "key": "mysql.aborted_clients.rate" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "MariaDB", + "key": "mysql.aborted_connects.rate" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "MariaDB", + "key": "mysql.connections.rate" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "MariaDB", + "key": "mysql.max_used_connections" + } + } + ] + }, + { + "uuid": "ee3890503acf44c58fcfedf3c5008656", + "name": "MySQL: InnoDB buffer pool", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "MariaDB", + "key": "mysql.innodb_buffer_pool_pages_free" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "MariaDB", + "key": "mysql.innodb_buffer_pool_pages_total" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "MariaDB", + "key": "mysql.innodb_buffer_pool_read_requests.rate" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "MariaDB", + "key": "mysql.innodb_buffer_pool_reads.rate" + } + } + ] + }, + { + "uuid": "a6296310a0cf4ffcad7b119c5089ef1f", + "name": "MySQL: Operations", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "MariaDB", + "key": "mysql.com_delete.rate" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "MariaDB", + "key": "mysql.com_insert.rate" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "MariaDB", + "key": "mysql.com_select.rate" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "MariaDB", + "key": "mysql.com_update.rate" + } + } + ] + }, + { + "uuid": "ce723556c4974152a8eda029dbdad1bc", + "name": "MySQL: Queries", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "MariaDB", + "key": "mysql.queries.rate" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "MariaDB", + "key": "mysql.questions.rate" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "MariaDB", + "key": "mysql.slow_queries.rate" + } + } + ] + }, + { + "uuid": "e7653013a2d94596a89c93f5352220df", + "name": "MySQL: Threads", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "MariaDB", + "key": "mysql.threads_cached" + } + }, + { + "sortorder": "1", + "color": "2774A4", + "item": { + "host": "MariaDB", + "key": "mysql.threads_connected" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "MariaDB", + "key": "mysql.threads_created.rate" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "item": { + "host": "MariaDB", + "key": "mysql.threads_running" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/nextcloud-zabbix-template.json b/zabbix-templates/6.4/nextcloud-zabbix-template.json new file mode 100644 index 0000000..61149e2 --- /dev/null +++ b/zabbix-templates/6.4/nextcloud-zabbix-template.json @@ -0,0 +1,1926 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", + "name": "Nextcloud Installation" + }, + { + "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", + "name": "Templates/Applications" + } + ], + "templates": [ + { + "uuid": "eddea30a51d94d56875d2dd78fab8120", + "template": "Nextcloud", + "name": "Nextcloud", + "description": "Nextcloud by RCA Systems", + "vendor": { + "name": "RCA Systems", + "version": "6.4-0.1" + }, + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates/Applications" + } + ], + "items": [ + { + "uuid": "b7dac9facd27414da6710117d61ba6af", + "name": "Database Full Version", + "type": "ZABBIX_ACTIVE", + "key": "db_full_version", + "delay": "1d", + "trends": "0", + "value_type": "TEXT" + }, + { + "uuid": "8bfc17be6a414c5ca715e46ebca038f8", + "name": "Number of Users - Active in Last Hour", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.activeUsers.last1hour]", + "delay": "1h", + "description": "Active users in the last hour" + }, + { + "uuid": "280c9c2ea30f4f97b1167e7d07cb7c0f", + "name": "Number of Users - Active in Last 5 Minutes", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]", + "delay": "5m", + "description": "Active users in the last 5 minutes" + }, + { + "uuid": "cae212b94b404cb1b816825839a6643e", + "name": "Number of Users - Active in Last 24 Hours", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.activeUsers.last24hours]", + "delay": "1d", + "description": "Active users in the last 24 hours" + }, + { + "uuid": "dd6ca0d93db54819811a7d07d5c06981", + "name": "Number of Shares", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]", + "delay": "5m", + "description": "Total number of shares" + }, + { + "uuid": "4f732d5bcc504eed92b6402cfd2e4e06", + "name": "Number of Group Shares", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]", + "delay": "5m", + "description": "Number of shares (group)" + }, + { + "uuid": "66db9033e1a34bfba2fd81575bab9544", + "name": "Number of Shares by Link", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]", + "delay": "5m", + "description": "Number of shares (link)" + }, + { + "uuid": "415b19a45d5c47d6835bc2dbdcfe4c51", + "name": "Number of Shares by Email", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]", + "delay": "5m", + "description": "Number of shares (mail)" + }, + { + "uuid": "c60c6369bda4415e924d49211f9e79f6", + "name": "Number of Shares in Talk Room", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]", + "delay": "5m", + "description": "Number of shares (room)" + }, + { + "uuid": "648dff6d0c594164b1fdd2635e3c1d9c", + "name": "Number of Shares with user", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]", + "delay": "5m", + "description": "Number of Shares (User)" + }, + { + "uuid": "169a4440fd86493e97dc15821a89458c", + "name": "Number of Files", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.storage.num_files]", + "delay": "3h", + "description": "Total number of files" + }, + { + "uuid": "2e7c235636db40dc9299854cfb8170c6", + "name": "Number of Storage Areas", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]", + "delay": "3h", + "description": "Number of Storages" + }, + { + "uuid": "4948262dfc4645a7bd0b71d2ba62477f", + "name": "Number of Storage Homes", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]", + "delay": "3h", + "description": "Number of Storages (Home)" + }, + { + "uuid": "4b1f627d3d404a839c15e68aa6fad8eb", + "name": "Number of Local Storage Areas", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]", + "delay": "3h", + "description": "Number of Storages (Local)" + }, + { + "uuid": "538fa8eb57d744b9a9bf021b69383d80", + "name": "Number of External Storage Areas", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]", + "delay": "3h", + "description": "Number of Storages (Other)" + }, + { + "uuid": "d15f720b1d1e49cbaaa8220f094cc5ec", + "name": "Number of Users - Total", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.storage.num_users]", + "delay": "3h" + }, + { + "uuid": "cca6fc0764e542afa65c3296311be7bc", + "name": "Number of Installed Applications", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.system.apps.num_installed]", + "delay": "1d", + "description": "Number of installed applications" + }, + { + "uuid": "eaa4b90fbac849108b95cd553798900c", + "name": "Nextcloud Server Version", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.nextcloud.system.version]", + "delay": "24h", + "trends": "0", + "value_type": "TEXT", + "description": "Nextcloud Server Version" + }, + { + "uuid": "30b554fb5c2845439e3486b6a0927c1a", + "name": "Database Size (reported by Nextcloud)", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.server.database.size]", + "delay": "1h", + "value_type": "FLOAT", + "description": "Database Size (in bytes)", + "preprocessing": [ + { + "type": "MULTIPLIER", + "parameters": [ + "9.5367431640625E-7" + ] + } + ] + }, + { + "uuid": "209893b4f7764f45a26afcf055dbd5cd", + "name": "Database (reported by Nextcloud)", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.server.database.type]", + "delay": "1d", + "trends": "0", + "value_type": "TEXT", + "description": "Database Type" + }, + { + "uuid": "f8b1b78f1ed7472ba73e5bdb031577a2", + "name": "Database Version (reported by Nextcloud)", + "type": "ZABBIX_ACTIVE", + "key": "nc_metric[ocs.data.server.database.version]", + "delay": "1d", + "trends": "0", + "value_type": "TEXT", + "description": "Database Version" + }, + { + "uuid": "89a9b0105a594908abe43d106e1ddf6b", + "name": "PHP Version", + "key": "nc_metric[ocs.data.server.php.version]", + "delay": "24h", + "trends": "0", + "value_type": "TEXT", + "description": "PHP Version" + }, + { + "uuid": "3aff68035b0b4283b990a34b662222cd", + "name": "Web Server (reported by Nextcloud)", + "key": "nc_metric[ocs.data.server.webserver]", + "delay": "24h", + "trends": "0", + "value_type": "TEXT", + "description": "Web Server (reported by Nextcloud)" + }, + { + "uuid": "469923464ff240988bccddba5671b9d5", + "name": "Storage Quota (GB) - Assigned Total", + "type": "ZABBIX_ACTIVE", + "key": "nc_quota_metric[total_assigned_quota_gb]", + "delay": "1d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.total_assigned_quota_gb" + ] + } + ] + }, + { + "uuid": "fdcdce5456c449b5a153c07b12cd86b9", + "name": "Storage Quota (GB) - Used Total", + "type": "ZABBIX_ACTIVE", + "key": "nc_quota_metric[total_used_quota_gb]", + "delay": "1d", + "value_type": "FLOAT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$.total_used_quota_gb" + ] + } + ] + }, + { + "uuid": "2cc43d1dbefd4a109ec8406e2899654b", + "name": "Data Directory Size (GB)", + "type": "ZABBIX_ACTIVE", + "key": "storage_metric[datadirectory_total_size_gb]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Nextcloud data directory storage size (in Gigabytes)" + }, + { + "uuid": "31d1b9ba4d1c498a8bd5f8ea534c661e", + "name": "Data Directory Partition - Available Capacity (GB)", + "type": "ZABBIX_ACTIVE", + "key": "storage_metric[partition_available_capacity_gb]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Available capacity of the partition hosting the Nextcloud data directory (in Gigabytes)" + }, + { + "uuid": "a0d9063f0bef46f7935d8cdc36284386", + "name": "Data Directory Partition - Total Capacity (GB)", + "type": "ZABBIX_ACTIVE", + "key": "storage_metric[partition_total_capacity_gb]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Total capacity of the partition hosting the Nextcloud data directory (in Gigabytes)" + }, + { + "uuid": "a47c3d652e034eea840663b5ee0d533e", + "name": "Data Directory Partition - Used Capacity (%)", + "type": "ZABBIX_ACTIVE", + "key": "storage_metric[partition_used_capacity_percent]", + "delay": "10m", + "value_type": "FLOAT", + "description": "Used capacity of the partition hosting the Nextcloud data directory (in percentage)" + } + ], + "discovery_rules": [ + { + "uuid": "632921baa9b4466abea5285b5113c0ac", + "name": "HTTP Agent Request Count", + "type": "ZABBIX_ACTIVE", + "key": "apache2_user_agent_metric_discovery", + "delay": "1d", + "item_prototypes": [ + { + "uuid": "4eba013ed08f4e5a9b71605b316ccf17", + "name": "Number of requests in last natural day - {#NORM_USER_AGENT}", + "type": "ZABBIX_ACTIVE", + "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]", + "delay": "1d" + } + ], + "graph_prototypes": [ + { + "uuid": "a5fc2578020e4b3cbf5a32173d6eb0af", + "name": "Number of requests in last natural day - {#NORM_USER_AGENT}", + "show_work_period": "NO", + "show_triggers": "NO", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]" + } + } + ] + } + ] + }, + { + "uuid": "3f2820db83ff4b2fb87013d3d6fcd0be", + "name": "Largest database tables", + "type": "ZABBIX_ACTIVE", + "key": "db_metric_discovery", + "delay": "1h", + "item_prototypes": [ + { + "uuid": "1e53988836eb465eb220402a6721df4d", + "name": "Number of rows {#TABLENAME}", + "type": "ZABBIX_ACTIVE", + "key": "db_metric[{#TABLENAME},nr_rows]", + "delay": "1h" + }, + { + "uuid": "6d82cf7849154cb3859001cfa86fff9c", + "name": "Size of {#TABLENAME}", + "type": "ZABBIX_ACTIVE", + "key": "db_metric[{#TABLENAME},size_mb]", + "delay": "1h", + "value_type": "FLOAT" + } + ], + "graph_prototypes": [ + { + "uuid": "bc89e54de2e143d19b5623c40cbb666f", + "name": "Number of rows in {#TABLENAME}", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "db_metric[{#TABLENAME},nr_rows]" + } + } + ] + }, + { + "uuid": "1eb51c1032034c50b2b887ebc31f660e", + "name": "Size of {#TABLENAME} in MB", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "db_metric[{#TABLENAME},size_mb]" + } + } + ] + } + ] + } + ], + "dashboards": [ + { + "uuid": "e7808bdb7dc64e23a3d5e8edd8ac4e59", + "name": "Application", + "display_period": "60", + "pages": [ + { + "name": "Application", + "widgets": [ + { + "type": "item", + "name": "Nextcloud Server Version", + "width": "4", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "STRING", + "name": "description", + "value": "Nextcloud Server Version" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.system.version]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Total Number of Shares", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Shares" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "graph", + "name": "Users", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Users" + } + } + ] + }, + { + "type": "graph", + "y": "10", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Storage Areas" + } + } + ] + }, + { + "type": "graphprototype", + "name": "HTTP Agents - Number of requests in previous day", + "y": "15", + "width": "12", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "ITEM_PROTOTYPE", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]" + } + }, + { + "type": "INTEGER", + "name": "show_legend", + "value": "0" + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "3" + } + ] + }, + { + "type": "item", + "name": "Total Number of Files", + "x": "3", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Files\n(incl. previews and folders)" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "PHP Version", + "x": "4", + "width": "4", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "STRING", + "name": "description", + "value": "PHP Version" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.php.version]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Total Storage in Data Directory", + "x": "6", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Storage \nin Data Directory" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "storage_metric[datadirectory_total_size_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Web Server", + "x": "8", + "width": "4", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "STRING", + "name": "description", + "value": "Web Server" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.webserver]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Total Assigned Storage Quota", + "x": "9", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Assigned \nStorage Quota" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_assigned_quota_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "item", + "name": "Total Used Storage Quota", + "x": "12", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Used \nStorage Quota" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_quota_metric[total_used_quota_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "graph", + "name": "Number of Files", + "x": "12", + "y": "5", + "width": "12", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Files" + } + } + ] + }, + { + "type": "graph", + "name": "Number of Shares (by type)", + "x": "12", + "y": "10", + "width": "4", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type)" + } + } + ] + }, + { + "type": "item", + "name": "Total Capacity of Data Directory Partition", + "x": "15", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Capacity of \nData Directory Partition" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "storage_metric[partition_total_capacity_gb]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "GB" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "graph", + "x": "16", + "y": "10", + "width": "4", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type) - Last Value - Pie Chart" + } + } + ] + }, + { + "type": "item", + "name": "Used Capacity of Data Directory Partition", + "x": "18", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Used Capacity of \nData Directory Partition" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "storage_metric[partition_used_capacity_percent]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "%" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + }, + { + "type": "graph", + "name": "Number of Shares (by Type) - Average Value - Pie Chart", + "x": "20", + "y": "10", + "width": "4", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of Shares (by Type) - Average Value - Pie Chart" + } + } + ] + }, + { + "type": "clock", + "name": "clock", + "x": "21", + "width": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "clock_type", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "3" + }, + { + "type": "INTEGER", + "name": "time_size", + "value": "20" + } + ] + }, + { + "type": "item", + "name": "Total Number of Users", + "x": "21", + "y": "2", + "width": "3", + "height": "3", + "hide_header": "YES", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "STRING", + "name": "description", + "value": "Total Number of Users" + }, + { + "type": "INTEGER", + "name": "desc_size", + "value": "10" + }, + { + "type": "INTEGER", + "name": "desc_v_pos", + "value": "0" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_users]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "1" + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + } + ] + }, + { + "name": "Database", + "widgets": [ + { + "type": "item", + "name": "Database Version", + "width": "12", + "height": "3", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "10" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "db_full_version" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "units_bold", + "value": "0" + }, + { + "type": "INTEGER", + "name": "units_show", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_h_pos", + "value": "0" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "15" + } + ] + }, + { + "type": "graphprototype", + "name": "Number of rows in {#TABLENAME}", + "y": "4", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "5" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Number of rows in {#TABLENAME}" + } + } + ] + }, + { + "type": "graphprototype", + "name": "Size of {#TABLENAME}", + "y": "10", + "width": "24", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "5" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "Nextcloud", + "name": "Size of {#TABLENAME} in MB" + } + } + ] + }, + { + "type": "item", + "name": "Database Size", + "x": "12", + "width": "4", + "height": "3", + "fields": [ + { + "type": "INTEGER", + "name": "adv_conf", + "value": "1" + }, + { + "type": "INTEGER", + "name": "decimal_places", + "value": "0" + }, + { + "type": "INTEGER", + "name": "decimal_size", + "value": "25" + }, + { + "type": "ITEM", + "name": "itemid", + "value": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.database.size]" + } + }, + { + "type": "INTEGER", + "name": "show", + "value": "2" + }, + { + "type": "INTEGER", + "name": "show", + "value": "4" + }, + { + "type": "STRING", + "name": "units", + "value": "MB" + }, + { + "type": "INTEGER", + "name": "units_size", + "value": "25" + }, + { + "type": "INTEGER", + "name": "value_size", + "value": "25" + } + ] + } + ] + } + ] + } + ] + } + ], + "graphs": [ + { + "uuid": "00e76bf39d854e09bd19bb3dea9f616f", + "name": "Active users in the last 5 minutes", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]" + } + } + ] + }, + { + "uuid": "ed6d0e653d4a43ecbc06c393c0c396d8", + "name": "Active users in the last 24 hours", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last24hours]" + } + } + ] + }, + { + "uuid": "287f84b0347a42179c137019e4f9f6e5", + "name": "Active users in the last hour", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last1hour]" + } + } + ] + }, + { + "uuid": "4c5580f5314a4ad58e327f7d47ca4301", + "name": "Database size", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.server.database.size]" + } + } + ] + }, + { + "uuid": "015188c05e794bf08643394ab9fa7e53", + "name": "Number of Files", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" + } + } + ] + }, + { + "uuid": "ad1a59aeb6464aca86c7d7249752dcc1", + "name": "Number of Shares", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" + } + } + ] + }, + { + "uuid": "0a408360b58246d1b74caedb3216b969", + "name": "Number of Shares (by Type)", + "graph_items": [ + { + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" + } + }, + { + "sortorder": "2", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" + } + }, + { + "sortorder": "3", + "color": "A54F10", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" + } + }, + { + "sortorder": "4", + "color": "FC6EA3", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" + } + } + ] + }, + { + "uuid": "0f40359cd9b6470d85c277015346ab27", + "name": "Number of Shares (by Type) - Average Value - Pie Chart", + "yaxismax": "0", + "show_work_period": "NO", + "show_triggers": "NO", + "type": "EXPLODED", + "show_3d": "YES", + "graph_items": [ + { + "color": "1A7C11", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" + } + }, + { + "sortorder": "1", + "color": "274482", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" + } + }, + { + "sortorder": "4", + "color": "A54F10", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" + } + } + ] + }, + { + "uuid": "d709c34ece094f8d815cd5d8169287aa", + "name": "Number of Shares (by Type) - Last Value - Pie Chart", + "yaxismax": "0", + "show_work_period": "NO", + "show_triggers": "NO", + "type": "EXPLODED", + "show_3d": "YES", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" + } + }, + { + "sortorder": "4", + "color": "A54F10", + "calc_fnc": "LAST", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" + } + } + ] + }, + { + "uuid": "628b4299c4a9492682f76dd9747da276", + "name": "Number of Storage Areas", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]" + } + } + ] + }, + { + "uuid": "20779ff8bc3346fe8b9af74240d515d3", + "name": "Users", + "graph_items": [ + { + "color": "1A7C11", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last1hour]" + } + }, + { + "sortorder": "1", + "color": "274482", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last5minutes]" + } + }, + { + "sortorder": "2", + "color": "F63100", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.activeUsers.last24hours]" + } + }, + { + "sortorder": "3", + "color": "2774A4", + "calc_fnc": "ALL", + "item": { + "host": "Nextcloud", + "key": "nc_metric[ocs.data.nextcloud.storage.num_users]" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/redis-zabbix-allenta-consulting-template.json b/zabbix-templates/6.4/redis-zabbix-allenta-consulting-template.json new file mode 100644 index 0000000..1a1d595 --- /dev/null +++ b/zabbix-templates/6.4/redis-zabbix-allenta-consulting-template.json @@ -0,0 +1,1511 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "7df96b18c230490a9a0a9e2307226338", + "name": "Templates" + } + ], + "templates": [ + { + "uuid": "0985c017179b4925a39859b210f8068e", + "template": "Template App Redis Server", + "name": "Template App Redis Server", + "description": "Template App Redis Server v14.0", + "vendor": { + "name": "Allenta Consulting S.L.", + "version": "6.4-14.0" + }, + "groups": [ + { + "name": "Templates" + } + ], + "items": [ + { + "uuid": "0dd210187c7e4086af924495bf3215b9", + "name": "Redis Server - $1 processes", + "key": "proc.num[redis-server]", + "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "triggers": [ + { + "uuid": "4a0ea180d9124067be6d1f4e46421773", + "expression": "last(/Template App Redis Server/proc.num[redis-server])<{$REDIS_SERVER.PROCESSES.MIN}", + "name": "Redis Server is not running", + "priority": "DISASTER" + } + ] + }, + { + "uuid": "b4a345736aec44bdbde03ce96b338994", + "name": "Redis Server - stats", + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]", + "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "history": "0", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "\n var exclusions = '{$REDIS_SERVER.EXCLUDED_STATS}'.trim();\n\n // This check is not just a simple optimization to avoid using never matching\n // regexps like '^(?!)' when filtering is not needed. JavaScript based filtering\n // effectively limits precision of numeric values and it could trigger rendering\n // of values using scientific notation.\n if (exclusions !== '') {\n exclusions = new RegExp(exclusions);\n\n var stats = JSON.parse(value);\n\n Object.keys(stats).forEach(function(key) {\n var name = key.replace(/^[^.]*[.]/, '');\n if (exclusions.test(name)) {\n delete stats[key];\n }\n });\n\n return JSON.stringify(stats);\n } else {\n return value;\n }\n " + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "2a82dc028a7e449690f7717e7f89aa3b", + "name": "Commandstats discovery", + "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"commandstats\"]", + "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"commandstats\"}", + "filter": { + "conditions": [ + { + "macro": "{#SUBJECT}", + "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"commandstats\"}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "A" + } + ] + }, + "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"commandstats\"}", + "item_prototypes": [ + { + "uuid": "bcd9f65b5a5b452189b7ccf0adbd78c8", + "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:calls", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:calls\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:calls']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "7b6c45697ba14f10bd7164dc27c01090", + "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:usec_per_call", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:usec_per_call\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:usec_per_call']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ] + }, + { + "uuid": "e8dd71a33888412dbbd3ff3f3307b9c6", + "name": "Items discovery", + "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"items\"]", + "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"items\"}", + "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"items\"}", + "item_prototypes": [ + { + "uuid": "39475ca0c1464d3e9cbe7b85d3d81085", + "name": "Redis Server[{#LOCATION}] - clients:blocked_clients", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:blocked_clients\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.clients:blocked_clients']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "327f368c4eff4b68bd1b8e1f6d5e6934", + "name": "Redis Server[{#LOCATION}] - clients:connected_clients", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:connected_clients\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.clients:connected_clients']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "42093af8dbca40ae8eaf342b4307e4ae", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_known_nodes", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_known_nodes\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_known_nodes']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "b2cd47874a774d3c9bd8b0b071a39b38", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_size", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_size\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_size']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "581ecf808c544e28a9f070c3bf74d5e4", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_assigned", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_assigned\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_assigned']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "0671752af70d4ec89e755497d7017ae1", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_fail", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_fail\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_fail']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "e08e2f608ff2439da9093a9d42fb6aea", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_ok", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_ok\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_ok']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "37457455be4f49d888ff64118a2fe5ab", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_pfail", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_pfail\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_slots_pfail']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "5ed9c084254c487bb86ba5fefb96d4f5", + "name": "Redis Server[{#LOCATION}] - cluster:cluster_state", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_state\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cluster:cluster_state']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "5921de15169a43a6952552c795c3a3af", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_sys']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "84307066f3f04a758c94e5ee01c7938e", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys_children", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys_children\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_sys_children']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "6c410ba56ead40858decab4c84e9b998", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_user']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "21254c91ddb74bfe9eee9d82607328cd", + "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user_children", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user_children\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.cpu:used_cpu_user_children']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "fac4af3cc8f1441389d386c62447af18", + "name": "Redis Server[{#LOCATION}] - hit_ratio", + "type": "CALCULATED", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"hit_ratio\"]", + "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "%", + "params": "100*last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])/(last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])+last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"])+(count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"],#1,\"eq\",0)*count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"],#1,\"eq\",0)))", + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2328c03f4b444f82a9a19e7246d883ad", + "name": "Redis Server[{#LOCATION}] - memory:mem_fragmentation_ratio", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:mem_fragmentation_ratio\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:mem_fragmentation_ratio']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "421ae72f90fe46b4929112df5de1222c", + "name": "Redis Server[{#LOCATION}] - memory:used_memory", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:used_memory']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "bfa68004441b4705a18ef68c7a6f8bb6", + "name": "Redis Server[{#LOCATION}] - memory:used_memory_lua", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_lua\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:used_memory_lua']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "9edf931c27e94de1a0f029a9d5833b36", + "name": "Redis Server[{#LOCATION}] - memory:used_memory_rss", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_rss\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "B", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.memory:used_memory_rss']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2f2b46643e504baeab282528fbc155cf", + "name": "Redis Server[{#LOCATION}] - persistence:aof_last_bgrewrite_status", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_bgrewrite_status\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:aof_last_bgrewrite_status']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "91978c3c77ef489fa65c75f1a22548a6", + "name": "Redis Server[{#LOCATION}] - persistence:aof_last_rewrite_time_sec", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_rewrite_time_sec\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:aof_last_rewrite_time_sec']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2a55fc618e294ce3a305a8e5271d6154", + "name": "Redis Server[{#LOCATION}] - persistence:aof_last_write_status", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_write_status\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:aof_last_write_status']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "a7dd0f15e8f9483e8a41d4eaeeaff532", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_changes_since_last_save", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_changes_since_last_save\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_changes_since_last_save']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "488ada8c369a474da74dce54d6d85493", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_status", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_status\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_status']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "9968741069d74a62a2efcce2025957e5", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_time_sec", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_time_sec\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_time_sec']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "5fbca013a8ca4051b49d4f2be670dd04", + "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_save_time", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_save_time\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "unixtime", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.persistence:rdb_last_save_time']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "64186f3afffe4c0c90fd81b56b4c58e1", + "name": "Redis Server[{#LOCATION}] - replication:connected_slaves", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.replication:connected_slaves']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "dfaa1031d4e641c9aac23efc1c2b3e84", + "name": "Redis Server[{#LOCATION}] - replication:role", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "TEXT", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.replication:role']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "eaaab8c393c34910930c20b1957dfd81", + "name": "Redis Server[{#LOCATION}] - server:uptime_in_seconds", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "uptime", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.server:uptime_in_seconds']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "trigger_prototypes": [ + { + "uuid": "e0e532c83c8b4a78aaa620a80358085d", + "expression": "last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"])<{$REDIS_SERVER.UPTIME.MIN:\"{#LOCATION_ID}\"}", + "name": "Redis Server[{#LOCATION}] has been restarted", + "priority": "HIGH" + } + ] + }, + { + "uuid": "ac8c032105934030a2ae11ba8a4fb1f5", + "name": "Redis Server[{#LOCATION}] - stats:evicted_keys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:evicted_keys']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "trigger_prototypes": [ + { + "uuid": "ee545f84145049b0acef45ce5868ca5e", + "expression": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED:\"{#LOCATION_ID}\"} and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"])>{$REDIS_SERVER.EVICTED_KEYS.MAX:\"{#LOCATION_ID}\"}", + "name": "Redis Server[{#LOCATION}] is evicting keys", + "priority": "HIGH" + } + ] + }, + { + "uuid": "33c508f4f12d4396a257259a642fe06f", + "name": "Redis Server[{#LOCATION}] - stats:expired_keys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:expired_keys\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:expired_keys']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "fe11dd3f19c04aae885a5e65be84ac44", + "name": "Redis Server[{#LOCATION}] - stats:keyspace_hits", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:keyspace_hits']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "2ca4880622a84537afb2e152e90d9b0e", + "name": "Redis Server[{#LOCATION}] - stats:keyspace_misses", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:keyspace_misses']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "d3c74496265344908c67fc707c5574a0", + "name": "Redis Server[{#LOCATION}] - stats:pubsub_channels", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_channels\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:pubsub_channels']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "1da281315beb42cdb47a46bd04705279", + "name": "Redis Server[{#LOCATION}] - stats:pubsub_patterns", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_patterns\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:pubsub_patterns']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "b30b5ebbba5a4fb283d8555e4f31e6db", + "name": "Redis Server[{#LOCATION}] - stats:rejected_connections", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:rejected_connections\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:rejected_connections']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "72a93e5d77da499da6fa35a449f8bdab", + "name": "Redis Server[{#LOCATION}] - stats:sync_full", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_full\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:sync_full']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "de56a2ed709442f38c7ee2b1062e71f7", + "name": "Redis Server[{#LOCATION}] - stats:sync_partial_err", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_err\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:sync_partial_err']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "694a8e6cbf1046908889b5f01f2fe833", + "name": "Redis Server[{#LOCATION}] - stats:sync_partial_ok", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_ok\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:sync_partial_ok']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "41e203934ce34e1d9c60e944f71cd157", + "name": "Redis Server[{#LOCATION}] - stats:total_commands_processed", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_commands_processed\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_commands_processed']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "6d3bbd28afea4972b04d21e2514d630a", + "name": "Redis Server[{#LOCATION}] - stats:total_connections_received", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_connections_received\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "eps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_connections_received']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "0363d2b2013e4b1e9128f4aef5ee98f9", + "name": "Redis Server[{#LOCATION}] - stats:total_net_input_bytes", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_input_bytes\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "Bps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_net_input_bytes']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "3353518069404f049df2323c464e827c", + "name": "Redis Server[{#LOCATION}] - stats:total_net_output_bytes", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_output_bytes\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value_type": "FLOAT", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "units": "Bps", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.stats:total_net_output_bytes']" + ], + "error_handler": "DISCARD_VALUE" + }, + { + "type": "CHANGE_PER_SECOND" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "9f2a6de254b143a0abf7e7e0d7a8f672", + "expression": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED:\"{#LOCATION_ID}\"} and find(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"],,\"eq\",\"master\")=1 and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"])=0", + "name": "Redis Server[{#LOCATION}] is a master without slaves", + "priority": "HIGH" + } + ] + }, + { + "uuid": "0ab4e802e3f74f45a5e07cc7cdba333b", + "name": "Keyspace discovery", + "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"keyspace\"]", + "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"keyspace\"}", + "filter": { + "conditions": [ + { + "macro": "{#SUBJECT}", + "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"keyspace\"}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "A" + } + ] + }, + "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"keyspace\"}", + "item_prototypes": [ + { + "uuid": "d0ce35df09b2476b86ca8fc486a3b0e8", + "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:avg_ttl", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:avg_ttl\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:avg_ttl']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "390d42e974e044e4bc0069b87588e6e8", + "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:expires", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:expires\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:expires']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + }, + { + "uuid": "9d67ee3b117b479ca89876103ffddbeb", + "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:keys", + "type": "DEPENDENT", + "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:keys\"]", + "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "preprocessing": [ + { + "type": "JSONPATH", + "parameters": [ + "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:keys']" + ], + "error_handler": "DISCARD_VALUE" + } + ], + "master_item": { + "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" + }, + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ] + } + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "Redis Server" + } + ], + "macros": [ + { + "macro": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED}", + "value": "1" + }, + { + "macro": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED}", + "value": "1" + }, + { + "macro": "{$REDIS_SERVER.EVICTED_KEYS.MAX}", + "value": "0.0" + }, + { + "macro": "{$REDIS_SERVER.EXCLUDED_STATS}" + }, + { + "macro": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", + "value": "30d" + }, + { + "macro": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", + "value": "365d" + }, + { + "macro": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", + "value": "1m" + }, + { + "macro": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS}", + "value": "^(?!)" + }, + { + "macro": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD}", + "value": "30d" + }, + { + "macro": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL}", + "value": "1h" + }, + { + "macro": "{$REDIS_SERVER.LOCATIONS}" + }, + { + "macro": "{$REDIS_SERVER.PROCESSES.MIN}", + "value": "1" + }, + { + "macro": "{$REDIS_SERVER.UPTIME.MIN}", + "value": "10m" + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/6.4/zfs-zabbix-template.json b/zabbix-templates/6.4/zfs-zabbix-template.json new file mode 100644 index 0000000..82ae801 --- /dev/null +++ b/zabbix-templates/6.4/zfs-zabbix-template.json @@ -0,0 +1,1615 @@ +{ + "zabbix_export": { + "version": "6.4", + "template_groups": [ + { + "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", + "name": "Nextcloud Installation" + }, + { + "uuid": "7df96b18c230490a9a0a9e2307226338", + "name": "Templates" + } + ], + "templates": [ + { + "uuid": "47d3c2ff933947368d4bee4b1184d69b", + "template": "ZFS", + "name": "ZFS", + "groups": [ + { + "name": "Nextcloud Installation" + }, + { + "name": "Templates" + } + ], + "items": [ + { + "uuid": "4ecabdcb2104460f83c2ad5f18fd98f9", + "name": "ZFS on Linux version", + "type": "ZABBIX_ACTIVE", + "key": "vfs.file.contents[/sys/module/zfs/version]", + "delay": "1h", + "history": "30d", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + } + ], + "triggers": [ + { + "uuid": "879881de9f8b4b97b5270df192d86850", + "expression": "(last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#1)<>last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#2))>0", + "name": "Version of ZoL is now {ITEM.VALUE} on {HOST.NAME}", + "priority": "INFO" + } + ] + }, + { + "uuid": "6b5fc935fe194d30badea64eaf3f317f", + "name": "ZFS ARC stat \"arc_dnode_limit\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[arc_dnode_limit]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "0b7d673688e3429d92aa349762729f83", + "name": "ZFS ARC stat \"arc_meta_limit\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[arc_meta_limit]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "b0b5004458494182bf874545f8eb4e41", + "name": "ZFS ARC stat \"arc_meta_used\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[arc_meta_used]", + "history": "30d", + "units": "B", + "description": "arc_meta_used = hdr_size + metadata_size + dbuf_size + dnode_size + bonus_size", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "795ab079ba13461c872ee1d5c0295704", + "name": "ZFS ARC stat \"bonus_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[bonus_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "34a1fb79b2b64ce08ec5b377211372d7", + "name": "ZFS ARC max size", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[c_max]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "d60b8e4f7a3d4bea972e7fe04c3bb5ca", + "name": "ZFS ARC minimum size", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[c_min]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "5e12dd98f1644f5a87cc5ded5d2e55d8", + "name": "ZFS ARC stat \"data_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[data_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "522a0f33c90047bab4f55b7214f51dea", + "name": "ZFS ARC stat \"dbuf_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[dbuf_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "a3d10ebb57984a829f780a229fc9617c", + "name": "ZFS ARC stat \"dnode_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[dnode_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "184eef57aa034cf8acaf6a8f0e02395b", + "name": "ZFS ARC stat \"hdr_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[hdr_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "cb7bcc02dfc14329a361e194145871c0", + "name": "ZFS ARC stat \"hits\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[hits]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "8df273b6e0904c9ab140f8f13f6ca973", + "name": "ZFS ARC stat \"metadata_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[metadata_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "dcd96743ed984018bff5d16105693606", + "name": "ZFS ARC stat \"mfu_hits\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mfu_hits]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "1015ebe8ef6f4626ae7967bf6358f1b3", + "name": "ZFS ARC stat \"mfu_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mfu_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "1298a265a6784e63a166b768e1faf67e", + "name": "ZFS ARC stat \"misses\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[misses]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "c85d0e9e1b464748a20148e2f2507609", + "name": "ZFS ARC stat \"mru_hits\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mru_hits]", + "history": "30d", + "preprocessing": [ + { + "type": "CHANGE_PER_SECOND", + "parameters": [ + "" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "50954c7b43d745d09990011df4d7448c", + "name": "ZFS ARC stat \"mru_size\"", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[mru_size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "cd225da5a02346a58dbe0c9808a628eb", + "name": "ZFS ARC current size", + "type": "ZABBIX_ACTIVE", + "key": "zfs.arcstats[size]", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "8c8129f814fe47ae9c71e636599acd90", + "name": "ZFS ARC Cache Hit Ratio", + "type": "CALCULATED", + "key": "zfs.arcstats_hit_ratio", + "history": "30d", + "value_type": "FLOAT", + "units": "%", + "params": "100*(last(//zfs.arcstats[hits])/(last(//zfs.arcstats[hits])+count(//zfs.arcstats[hits],#1,,\"0\")+last(//zfs.arcstats[misses])))", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "e644390a9c9743f2844dbc9ef8806a8f", + "name": "ZFS ARC total read", + "type": "CALCULATED", + "key": "zfs.arcstats_total_read", + "history": "30d", + "units": "B", + "params": "last(//zfs.arcstats[hits])+last(//zfs.arcstats[misses])", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "ebfb742fb123451c9632d12bde0957c4", + "name": "ZFS parameter zfs_arc_dnode_limit_percent", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.param[zfs_arc_dnode_limit_percent]", + "delay": "1h", + "history": "30d", + "units": "%", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + }, + { + "uuid": "18d8b817852848929f4e0b421cb21532", + "name": "ZFS parameter zfs_arc_meta_limit_percent", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.param[zfs_arc_meta_limit_percent]", + "delay": "1h", + "history": "30d", + "units": "%", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS ARC" + } + ] + } + ], + "discovery_rules": [ + { + "uuid": "a82a1b7067904fecb06bcf5b88457192", + "name": "Zfs Dataset discovery", + "type": "ZABBIX_ACTIVE", + "key": "zfs.fileset.discovery", + "delay": "30m", + "status": "DISABLED", + "filter": { + "evaltype": "AND", + "conditions": [ + { + "macro": "{#FILESETNAME}", + "value": "{$ZFS_FSNAME_MATCHES}", + "formulaid": "A" + }, + { + "macro": "{#FILESETNAME}", + "value": "{$ZFS_FSNAME_NOTMATCHES}", + "operator": "NOT_MATCHES_REGEX", + "formulaid": "B" + } + ] + }, + "lifetime": "2d", + "description": "Discover ZFS dataset. Dataset names must contain a \"/\" else it's a zpool.", + "item_prototypes": [ + { + "uuid": "4d7c96bd10b44754b2c8790b90c12046", + "name": "Zfs dataset {#FILESETNAME} compressratio", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.compressratio[{#FILESETNAME}]", + "delay": "30m", + "history": "30d", + "value_type": "FLOAT", + "units": "%", + "preprocessing": [ + { + "type": "MULTIPLIER", + "parameters": [ + "100" + ] + } + ], + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "e9df401ae71e45c8a3fdbbd146cdd57b", + "name": "Zfs dataset {#FILESETNAME} available", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},available]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "ed63bb6942364281bcea80c54b6f8fcc", + "name": "Zfs dataset {#FILESETNAME} referenced", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},referenced]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "7ef4530ddf464defb2a64ce674a82c8c", + "name": "Zfs dataset {#FILESETNAME} usedbychildren", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "3c7f982147be49629c78aa67a1d8d56e", + "name": "Zfs dataset {#FILESETNAME} usedbydataset", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]", + "delay": "1h", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "cc0e02c58b28443eb78eeacc81095966", + "name": "Zfs dataset {#FILESETNAME} usedbysnapshots", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + }, + { + "uuid": "a54feffafdb34ba08f1474ab4710088d", + "name": "Zfs dataset {#FILESETNAME} used", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#FILESETNAME},used]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS dataset" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "cc0b0756d2fe42779b62adf63e38681d", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_AVERAGE_ALERT}/100)", + "name": "More than {$ZFS_AVERAGE_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "priority": "AVERAGE", + "dependencies": [ + { + "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)" + } + ] + }, + { + "uuid": "8bfb157ac42845c0b340e28ae510833c", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)", + "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "priority": "DISASTER" + }, + { + "uuid": "9b592a2cba084bec9ceb4f82367e758b", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)", + "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "priority": "HIGH", + "dependencies": [ + { + "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "5213684719404718b8956d6faf0e6b71", + "name": "ZFS dataset {#FILESETNAME} usage", + "type": "STACKED", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "sortorder": "1", + "color": "3333FF", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]" + } + }, + { + "sortorder": "2", + "color": "FF33FF", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]" + } + }, + { + "sortorder": "3", + "color": "FF3333", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]" + } + }, + { + "sortorder": "4", + "color": "33FF33", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#FILESETNAME},available]" + } + } + ] + } + ] + }, + { + "uuid": "08039e570bd7417294d043f4f7bf960f", + "name": "Zfs Pool discovery", + "type": "ZABBIX_ACTIVE", + "key": "zfs.pool.discovery", + "delay": "1h", + "lifetime": "3d", + "item_prototypes": [ + { + "uuid": "9f889e9529934fdfbf47a29de32468f0", + "name": "Zpool {#POOLNAME} available", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#POOLNAME},available]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "1993c04b00bc428bbdf43c909967afd2", + "name": "Zpool {#POOLNAME} used", + "type": "ZABBIX_ACTIVE", + "key": "zfs.get.fsinfo[{#POOLNAME},used]", + "delay": "5m", + "history": "30d", + "units": "B", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "472e21c79759476984cbf4ce9f12580a", + "name": "Zpool {#POOLNAME} Health", + "type": "ZABBIX_ACTIVE", + "key": "zfs.zpool.health[{#POOLNAME}]", + "delay": "5m", + "history": "30d", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ], + "trigger_prototypes": [ + { + "uuid": "4855fe0ed61b444daad73aa6090b46af", + "expression": "find(/ZFS/zfs.zpool.health[{#POOLNAME}],,\"like\",\"ONLINE\")=0", + "name": "Zpool {#POOLNAME} is {ITEM.VALUE} on {HOST.NAME}", + "priority": "HIGH" + } + ] + }, + { + "uuid": "3207e6ffd0fa40c4a1d6e607e4e12375", + "name": "Zpool {#POOLNAME} read throughput", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.nread[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "Bps", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[5];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "78b418605f9b45b29bbd33b93a6b2e82", + "name": "Zpool {#POOLNAME} write throughput", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "Bps", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[6];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "6b35bf06bf4542318a7999ac4d7952f7", + "name": "Zpool {#POOLNAME} IOPS: reads", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.reads[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "iops", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[3];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "b99d5ab922324536bc2e013ac1fca306", + "name": "Zpool {#POOLNAME} IOPS: writes", + "type": "DEPENDENT", + "key": "zfs.zpool.iostat.writes[{#POOLNAME}]", + "delay": "0", + "history": "30d", + "value_type": "FLOAT", + "units": "iops", + "preprocessing": [ + { + "type": "JAVASCRIPT", + "parameters": [ + "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[4];" + ] + } + ], + "master_item": { + "key": "zfs.zpool.iostat[{#POOLNAME}]" + }, + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "7142e6f1eceb4dc29e3a03d494230564", + "name": "Zpool {#POOLNAME}: Get iostats", + "type": "ZABBIX_ACTIVE", + "key": "zfs.zpool.iostat[{#POOLNAME}]", + "history": "0", + "trends": "0", + "value_type": "TEXT", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ] + }, + { + "uuid": "867075d6eb1743069be868007472192b", + "name": "Zpool {#POOLNAME} scrub status", + "type": "ZABBIX_ACTIVE", + "key": "zfs.zpool.scrub[{#POOLNAME}]", + "delay": "5m", + "history": "30d", + "description": "Detect if the pool is currently scrubbing itself.\n\nThis is not a bad thing itself, but it slows down the entire pool and should be terminated when on production server during business hours if it causes a noticeable slowdown.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS zpool" + } + ], + "trigger_prototypes": [ + { + "uuid": "792be07c555c4ae6a9819d69d332357b", + "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],12h)=0", + "name": "Zpool {#POOLNAME} is scrubbing for more than 12h on {HOST.NAME}", + "priority": "AVERAGE", + "dependencies": [ + { + "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", + "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0" + } + ] + }, + { + "uuid": "04cac9633f164227b1f9b2fe26923609", + "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0", + "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", + "priority": "HIGH" + } + ] + } + ], + "trigger_prototypes": [ + { + "uuid": "82fce07b30114c7e8645689317e2c1b4", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_AVERAGE_ALERT}/100)", + "name": "More than {$ZPOOL_AVERAGE_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "priority": "AVERAGE", + "dependencies": [ + { + "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)" + } + ] + }, + { + "uuid": "ab56a2a8eb3d4b4294707e2a8aa94e22", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)", + "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "priority": "DISASTER" + }, + { + "uuid": "c9c22e6617af4ad09970d2988c4a7fe7", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)", + "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "priority": "HIGH", + "dependencies": [ + { + "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", + "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)" + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "926abae3e18144f0899711fdfd16e808", + "name": "ZFS zpool {#POOLNAME} IOPS", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "sortorder": "1", + "color": "5C6BC0", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.reads[{#POOLNAME}]" + } + }, + { + "sortorder": "2", + "color": "EF5350", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.writes[{#POOLNAME}]" + } + } + ] + }, + { + "uuid": "63ae2d7acd4d4d15b4c5e7a5a90a063a", + "name": "ZFS zpool {#POOLNAME} space usage", + "type": "STACKED", + "graph_items": [ + { + "sortorder": "1", + "color": "00EE00", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#POOLNAME},available]" + } + }, + { + "sortorder": "2", + "color": "EE0000", + "item": { + "host": "ZFS", + "key": "zfs.get.fsinfo[{#POOLNAME},used]" + } + } + ] + }, + { + "uuid": "aa35d164bacd45c5983fd2856781da88", + "name": "ZFS zpool {#POOLNAME} throughput", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "sortorder": "1", + "color": "5C6BC0", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.nread[{#POOLNAME}]" + } + }, + { + "sortorder": "2", + "drawtype": "BOLD_LINE", + "color": "EF5350", + "item": { + "host": "ZFS", + "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]" + } + } + ] + } + ] + }, + { + "uuid": "6c96e092f08f4b98af9a377782180689", + "name": "Zfs vdev discovery", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.discovery", + "delay": "1h", + "lifetime": "3d", + "item_prototypes": [ + { + "uuid": "9f63161726774a28905c87aac92cf1e9", + "name": "vdev {#VDEV}: CHECKSUM error counter", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.error_counter.cksum[{#VDEV}]", + "delay": "5m", + "history": "30d", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ] + }, + { + "uuid": "48a02eb060fd4b73bdde08a2795c4717", + "name": "vdev {#VDEV}: READ error counter", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.error_counter.read[{#VDEV}]", + "delay": "5m", + "history": "30d", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ] + }, + { + "uuid": "15953ba38fde4b8c8681955a27d9204a", + "name": "vdev {#VDEV}: WRITE error counter", + "type": "ZABBIX_ACTIVE", + "key": "zfs.vdev.error_counter.write[{#VDEV}]", + "delay": "5m", + "history": "30d", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ] + }, + { + "uuid": "3e64a59d2a154a89a3bc43483942302d", + "name": "vdev {#VDEV}: total number of errors", + "type": "CALCULATED", + "key": "zfs.vdev.error_total[{#VDEV}]", + "delay": "5m", + "history": "30d", + "params": "last(//zfs.vdev.error_counter.cksum[{#VDEV}])+last(//zfs.vdev.error_counter.read[{#VDEV}])+last(//zfs.vdev.error_counter.write[{#VDEV}])", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", + "tags": [ + { + "tag": "Application", + "value": "ZFS" + }, + { + "tag": "Application", + "value": "ZFS vdev" + } + ], + "trigger_prototypes": [ + { + "uuid": "44f7667c275d4a04891bc4f1d00e668b", + "expression": "last(/ZFS/zfs.vdev.error_total[{#VDEV}])>0", + "name": "vdev {#VDEV} has encountered {ITEM.VALUE} errors on {HOST.NAME}", + "priority": "HIGH", + "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.\n\nYou may also run a zpool scrub to check if some other undetected errors are present on this vdev." + } + ] + } + ], + "graph_prototypes": [ + { + "uuid": "ab78dba991ba4311a04740fc69b30381", + "name": "ZFS vdev {#VDEV} errors", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "CC00CC", + "item": { + "host": "ZFS", + "key": "zfs.vdev.error_counter.cksum[{#VDEV}]" + } + }, + { + "sortorder": "1", + "color": "F63100", + "item": { + "host": "ZFS", + "key": "zfs.vdev.error_counter.read[{#VDEV}]" + } + }, + { + "sortorder": "2", + "color": "BBBB00", + "item": { + "host": "ZFS", + "key": "zfs.vdev.error_counter.write[{#VDEV}]" + } + } + ] + } + ] + } + ], + "macros": [ + { + "macro": "{$ZFS_ARC_META_ALERT}", + "value": "90" + }, + { + "macro": "{$ZFS_AVERAGE_ALERT}", + "value": "90" + }, + { + "macro": "{$ZFS_DISASTER_ALERT}", + "value": "99" + }, + { + "macro": "{$ZFS_FSNAME_MATCHES}", + "value": "/", + "description": "Use this to determine the datasets to autodiscover defaults to all datasets with a '/' in the name" + }, + { + "macro": "{$ZFS_FSNAME_NOTMATCHES}", + "value": "([a-z-0-9]{64}$|[a-z-0-9]{64}-init$)", + "description": "Use this to determine the datasets to not autodiscover. Ignore docker created datasets by default" + }, + { + "macro": "{$ZFS_HIGH_ALERT}", + "value": "95" + }, + { + "macro": "{$ZPOOL_AVERAGE_ALERT}", + "value": "85" + }, + { + "macro": "{$ZPOOL_DISASTER_ALERT}", + "value": "99" + }, + { + "macro": "{$ZPOOL_HIGH_ALERT}", + "value": "90" + } + ], + "dashboards": [ + { + "uuid": "180e8c0dc05946e4b8552e3a01df347f", + "name": "ZFS ARC", + "pages": [ + { + "widgets": [ + { + "type": "graph", + "width": "24", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS ARC memory usage" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "5", + "width": "24", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS ARC Cache Hit Ratio" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "10", + "width": "24", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS ARC breakdown" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + }, + { + "type": "graph", + "y": "15", + "width": "24", + "height": "5", + "fields": [ + { + "type": "GRAPH", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS ARC arc_meta_used breakdown" + } + }, + { + "type": "INTEGER", + "name": "source_type", + "value": "0" + } + ] + } + ] + } + ] + }, + { + "uuid": "442dda5c36c04fc78c3a73eacf26bc7f", + "name": "ZFS zpools", + "pages": [ + { + "widgets": [ + { + "type": "graphprototype", + "width": "8", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS zpool {#POOLNAME} IOPS" + } + } + ] + }, + { + "type": "graphprototype", + "x": "8", + "width": "8", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS zpool {#POOLNAME} throughput" + } + } + ] + }, + { + "type": "graphprototype", + "x": "16", + "width": "8", + "height": "5", + "fields": [ + { + "type": "INTEGER", + "name": "columns", + "value": "1" + }, + { + "type": "GRAPH_PROTOTYPE", + "name": "graphid", + "value": { + "host": "ZFS", + "name": "ZFS zpool {#POOLNAME} space usage" + } + } + ] + } + ] + } + ] + } + ], + "valuemaps": [ + { + "uuid": "d1d7b0898d06481dbcec8b02d915fb1c", + "name": "ZFS zpool scrub status", + "mappings": [ + { + "value": "0", + "newvalue": "Scrub in progress" + }, + { + "value": "1", + "newvalue": "No scrub in progress" + } + ] + } + ] + } + ], + "triggers": [ + { + "uuid": "1daac44b853b4b6da767c9c3af96b774", + "expression": "last(/ZFS/zfs.arcstats[dnode_size])>(last(/ZFS/zfs.arcstats[arc_dnode_limit])*0.9)", + "name": "ZFS ARC dnode size > 90% dnode max size on {HOST.NAME}", + "priority": "HIGH" + }, + { + "uuid": "69c18b7ceb3d4da2bda0e05f9a12453f", + "expression": "last(/ZFS/zfs.arcstats[arc_meta_used])>(last(/ZFS/zfs.arcstats[arc_meta_limit])*0.01*{$ZFS_ARC_META_ALERT})", + "name": "ZFS ARC meta size > {$ZFS_ARC_META_ALERT}% meta max size on {HOST.NAME}", + "priority": "HIGH" + } + ], + "graphs": [ + { + "uuid": "1510111dc5414e6d80a5230ce6a81f1d", + "name": "ZFS ARC arc_meta_used breakdown", + "type": "STACKED", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "3333FF", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[metadata_size]" + } + }, + { + "sortorder": "1", + "color": "00EE00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dnode_size]" + } + }, + { + "sortorder": "2", + "color": "EE0000", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[hdr_size]" + } + }, + { + "sortorder": "3", + "color": "EEEE00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dbuf_size]" + } + }, + { + "sortorder": "4", + "color": "EE00EE", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[bonus_size]" + } + } + ] + }, + { + "uuid": "203eeeaadc9444ccbbc31cf043e836cb", + "name": "ZFS ARC breakdown", + "type": "STACKED", + "ymin_type_1": "FIXED", + "graph_items": [ + { + "color": "3333FF", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[data_size]" + } + }, + { + "sortorder": "1", + "color": "00AA00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[metadata_size]" + } + }, + { + "sortorder": "2", + "color": "EE0000", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dnode_size]" + } + }, + { + "sortorder": "3", + "color": "CCCC00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[hdr_size]" + } + }, + { + "sortorder": "4", + "color": "A54F10", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[dbuf_size]" + } + }, + { + "sortorder": "5", + "color": "888888", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[bonus_size]" + } + } + ] + }, + { + "uuid": "4c493303be4a45a7a96d3ef7246843c0", + "name": "ZFS ARC Cache Hit Ratio", + "ymin_type_1": "FIXED", + "ymax_type_1": "FIXED", + "graph_items": [ + { + "color": "00CC00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats_hit_ratio" + } + } + ] + }, + { + "uuid": "b2fce9515a7d4218a5e9015f212c2a60", + "name": "ZFS ARC memory usage", + "ymin_type_1": "FIXED", + "ymax_type_1": "ITEM", + "ymax_item_1": { + "host": "ZFS", + "key": "zfs.arcstats[c_max]" + }, + "graph_items": [ + { + "drawtype": "GRADIENT_LINE", + "color": "0000EE", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[size]" + } + }, + { + "sortorder": "1", + "drawtype": "BOLD_LINE", + "color": "DD0000", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[c_max]" + } + }, + { + "sortorder": "2", + "color": "00BB00", + "item": { + "host": "ZFS", + "key": "zfs.arcstats[c_min]" + } + } + ] + } + ] + } +} \ No newline at end of file diff --git a/zabbix-templates/apache-zabbix-template.json b/zabbix-templates/apache-zabbix-template.json deleted file mode 100644 index 6866744..0000000 --- a/zabbix-templates/apache-zabbix-template.json +++ /dev/null @@ -1,1304 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", - "name": "Templates/Applications" - } - ], - "templates": [ - { - "uuid": "86702e8bc514434e8c914d50c206cb94", - "template": "Apache", - "name": "Apache", - "description": "Get metrics from mod_status module using HTTP agent.\nhttps://httpd.apache.org/docs/current/mod/mod_status.html\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384764-discussion-thread-for-official-zabbix-template-apache\n\nTemplate tooling version used: 0.42", - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates/Applications" - } - ], - "items": [ - { - "uuid": "b9fe6f0bbe174e9f81af84a3bc0b0e7c", - "name": "Apache: Total bytes", - "type": "DEPENDENT", - "key": "apache.bytes", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "B", - "description": "Total bytes served", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[\"Total kBytes\"]" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "1024" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "b36010be10874cf188eeacc81f2c366f", - "name": "Apache: Bytes per second", - "type": "DEPENDENT", - "key": "apache.bytes.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "Bps", - "description": "Calculated as change rate for 'Total bytes' stat.\nBytesPerSec is not used, as it counts average since last Apache server start.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[\"Total kBytes\"]" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "1024" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "e61be8ad92004100aca55fcedd2a3807", - "name": "Apache: Get status", - "type": "HTTP_AGENT", - "key": "apache.get_status", - "history": "1h", - "trends": "0", - "value_type": "TEXT", - "description": "Getting data from a machine-readable version of the Apache status page.\nhttps://httpd.apache.org/docs/current/mod/mod_status.html", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "// Convert Apache status to JSON\nvar lines = value.split('\\n');\nvar output = {},\n workers = {\n '_': 0, 'S': 0, 'R': 0, 'W': 0,\n 'K': 0, 'D': 0, 'C': 0, 'L': 0,\n 'G': 0, 'I': 0, '.': 0\n };\n\n// Get all \"Key: Value\" pairs as an object\nfor (var i = 0; i < lines.length; i++) {\n var line = lines[i].match(/([A-z0-9 ]+): (.*)/);\n\n if (line !== null) {\n output[line[1]] = isNaN(line[2]) ? line[2] : Number(line[2]);\n }\n}\n\n// Multiversion metrics\noutput.ServerUptimeSeconds = output.ServerUptimeSeconds || output.Uptime;\noutput.ServerVersion = output.ServerVersion || output.Server;\n\n// Parse \"Scoreboard\" to get worker count.\nif (typeof output.Scoreboard === 'string') {\n for (var i = 0; i < output.Scoreboard.length; i++) {\n var char = output.Scoreboard[i];\n\n workers[char]++;\n }\n}\n\n// Add worker data to the output\noutput.Workers = {\n waiting: workers['_'], starting: workers['S'], reading: workers['R'],\n sending: workers['W'], keepalive: workers['K'], dnslookup: workers['D'],\n closing: workers['C'], logging: workers['L'], finishing: workers['G'],\n cleanup: workers['I'], slot: workers['.']\n};\n\n// Return JSON string\nreturn JSON.stringify(output);" - ] - } - ], - "url": "{$APACHE.STATUS.SCHEME}://{HOST.CONN}:{$APACHE.STATUS.PORT}/{$APACHE.STATUS.PATH}", - "retrieve_mode": "BOTH", - "tags": [ - { - "tag": "component", - "value": "raw" - } - ], - "triggers": [ - { - "uuid": "db396445cc5042f89f31dc12cb99c32e", - "expression": "nodata(/Apache/apache.get_status,30m)=1", - "name": "Apache: Failed to fetch status page", - "event_name": "Apache: Failed to fetch status page (or no data for 30m)", - "priority": "WARNING", - "description": "Zabbix has not received data for items for the last 30 minutes.", - "manual_close": "YES", - "dependencies": [ - { - "name": "Apache: Service is down", - "expression": "last(/Apache/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "5fb5101de70a43fab50d55f418462255", - "name": "Apache: Total requests", - "type": "DEPENDENT", - "key": "apache.requests", - "delay": "0", - "history": "7d", - "description": "A total number of accesses", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[\"Total Accesses\"]" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "ee15f4958040459da53251cc3561ed39", - "name": "Apache: Requests per second", - "type": "DEPENDENT", - "key": "apache.requests.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Calculated as change rate for 'Total requests' stat.\nReqPerSec is not used, as it counts average since last Apache server start.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[\"Total Accesses\"]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "3dd8ba505d584b028c7ac08d8b959eb3", - "name": "Apache: Uptime", - "type": "DEPENDENT", - "key": "apache.uptime", - "delay": "0", - "history": "7d", - "units": "uptime", - "description": "Service uptime in seconds", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.ServerUptimeSeconds" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "76cfa6ebf39f4c8fbd8fde9e0f36d3ed", - "expression": "last(/Apache/apache.uptime)<10m", - "name": "Apache: has been restarted", - "event_name": "Apache: has been restarted (uptime < 10m)", - "priority": "INFO", - "description": "Uptime is less than 10 minutes.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "fe0de2eb1478482f99b38c13bd20564c", - "name": "Apache: Version", - "type": "DEPENDENT", - "key": "apache.version", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Service version", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.ServerVersion" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "5296d69af0704d0e8a07398f0b4c9685", - "expression": "last(/Apache/apache.version,#1)<>last(/Apache/apache.version,#2) and length(last(/Apache/apache.version))>0", - "name": "Apache: Version has changed", - "event_name": "Apache: Version has changed (new version: {ITEM.VALUE})", - "priority": "INFO", - "description": "Apache version has changed. Ack to close.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "f74ffb92e30e48958b5b82f7dfbe5147", - "name": "Apache: Workers idle cleanup", - "type": "DEPENDENT", - "key": "apache.workers.cleanup", - "delay": "0", - "history": "7d", - "description": "Number of workers in cleanup state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.cleanup" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "d664bee9a330480bbaee7273b871a8d3", - "name": "Apache: Workers closing connection", - "type": "DEPENDENT", - "key": "apache.workers.closing", - "delay": "0", - "history": "7d", - "description": "Number of workers in closing state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.closing" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "a6fb3444585749be998ec840cd8e4511", - "name": "Apache: Workers DNS lookup", - "type": "DEPENDENT", - "key": "apache.workers.dnslookup", - "delay": "0", - "history": "7d", - "description": "Number of workers in dnslookup state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.dnslookup" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "fcf771f2a9b64a81a37db679f0494ed3", - "name": "Apache: Workers finishing", - "type": "DEPENDENT", - "key": "apache.workers.finishing", - "delay": "0", - "history": "7d", - "description": "Number of workers in finishing state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.finishing" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "cb81a6a77395444283bc5e065fcbfc2e", - "name": "Apache: Workers keepalive (read)", - "type": "DEPENDENT", - "key": "apache.workers.keepalive", - "delay": "0", - "history": "7d", - "description": "Number of workers in keepalive state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.keepalive" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "7fc0002a279b4541af569a03c1aca2ac", - "name": "Apache: Workers logging", - "type": "DEPENDENT", - "key": "apache.workers.logging", - "delay": "0", - "history": "7d", - "description": "Number of workers in logging state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.logging" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "78b0bd7d8bec49549fc003d460af9177", - "name": "Apache: Workers reading request", - "type": "DEPENDENT", - "key": "apache.workers.reading", - "delay": "0", - "history": "7d", - "description": "Number of workers in reading state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.reading" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "379ac66397b94463ad17b24fbd20c615", - "name": "Apache: Workers sending reply", - "type": "DEPENDENT", - "key": "apache.workers.sending", - "delay": "0", - "history": "7d", - "description": "Number of workers in sending state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.sending" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "1c90055e02a244fc8d18e73b23daa0f1", - "name": "Apache: Workers slot with no current process", - "type": "DEPENDENT", - "key": "apache.workers.slot", - "delay": "0", - "history": "7d", - "description": "Number of slots with no current process", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.slot" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "ae21ea113e8840349aff81ab582d92b4", - "name": "Apache: Workers starting up", - "type": "DEPENDENT", - "key": "apache.workers.starting", - "delay": "0", - "history": "7d", - "description": "Number of workers in starting state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.starting" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "be1a05a6eab84b64ac4d51c966ea91e8", - "name": "Apache: Workers waiting for connection", - "type": "DEPENDENT", - "key": "apache.workers.waiting", - "delay": "0", - "history": "7d", - "description": "Number of workers in waiting state", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Workers.waiting" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "1752b9bcf7b34abbaf105f5261638271", - "name": "Apache: Total workers busy", - "type": "DEPENDENT", - "key": "apache.workers_total.busy", - "delay": "0", - "history": "7d", - "description": "Total number of busy worker threads/processes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.BusyWorkers" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "b1b1c86a12964ae2813c63481e464ec7", - "name": "Apache: Total workers idle", - "type": "DEPENDENT", - "key": "apache.workers_total.idle", - "delay": "0", - "history": "7d", - "description": "Total number of idle worker threads/processes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.IdleWorkers" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "5039d11bc3964d6e9928a0a46dd0b402", - "name": "Apache: Service response time", - "type": "SIMPLE", - "key": "net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "tags": [ - { - "tag": "component", - "value": "application" - }, - { - "tag": "component", - "value": "health" - } - ], - "triggers": [ - { - "uuid": "ffbb564032c7462eb0bb9b4c2f700559", - "expression": "min(/Apache/net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"],5m)>{$APACHE.RESPONSE_TIME.MAX.WARN}", - "name": "Apache: Service response time is too high", - "event_name": "Apache: Service response time is too high (over {$APACHE.RESPONSE_TIME.MAX.WARN}s for 5m)", - "priority": "WARNING", - "manual_close": "YES", - "dependencies": [ - { - "name": "Apache: Service is down", - "expression": "last(/Apache/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "fb65918695094026838e2b9e4ca00402", - "name": "Apache: Service ping", - "type": "SIMPLE", - "key": "net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]", - "history": "7d", - "valuemap": { - "name": "Service state" - }, - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "10m" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "application" - }, - { - "tag": "component", - "value": "health" - } - ], - "triggers": [ - { - "uuid": "afe2fde35d054333adc8369a0f9af778", - "expression": "last(/Apache/net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"])=0", - "name": "Apache: Service is down", - "priority": "AVERAGE", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - } - ], - "discovery_rules": [ - { - "uuid": "eee8abd3174d426092e8bca9b3ba982e", - "name": "Event MPM discovery", - "type": "DEPENDENT", - "key": "apache.mpm.event.discovery", - "delay": "0", - "description": "Additional metrics if event MPM is used\nhttps://httpd.apache.org/docs/current/mod/event.html", - "item_prototypes": [ - { - "uuid": "f52700379f9a4ee8b378a2eb9caea070", - "name": "Apache: Bytes per request", - "type": "DEPENDENT", - "key": "apache.bytes[per_request{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "B", - "description": "Average number of client requests per second", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.BytesPerReq" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "connection" - } - ] - }, - { - "uuid": "062d7c941f0c468d8b63fa76ae0610f6", - "name": "Apache: Connections async closing", - "type": "DEPENDENT", - "key": "apache.connections[async_closing{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of async connections in closing state (only applicable to event MPM)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.ConnsAsyncClosing" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "connection" - } - ] - }, - { - "uuid": "6cb8b255ad8343a48e622912bc298366", - "name": "Apache: Connections async keep alive", - "type": "DEPENDENT", - "key": "apache.connections[async_keep_alive{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of async connections in keep-alive state (only applicable to event MPM)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.ConnsAsyncKeepAlive" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "connection" - } - ] - }, - { - "uuid": "997b3452aac24ad6afbad775d649c727", - "name": "Apache: Connections async writing", - "type": "DEPENDENT", - "key": "apache.connections[async_writing{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of async connections in writing state (only applicable to event MPM)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.ConnsAsyncWriting" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "connection" - } - ] - }, - { - "uuid": "31cb044eed904ca19150921fe36f3285", - "name": "Apache: Connections total", - "type": "DEPENDENT", - "key": "apache.connections[total{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of total connections", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.ConnsTotal" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "connection" - } - ] - }, - { - "uuid": "34555340f3ad4b878504df188f54a9c9", - "name": "Apache: Number of async processes", - "type": "DEPENDENT", - "key": "apache.process[num{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of async processes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Processes" - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "066b53ed2244414ca3090498eb035c27", - "name": "Apache: Current async connections{#SINGLETON}", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Apache", - "key": "apache.connections[async_closing{#SINGLETON}]" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Apache", - "key": "apache.connections[async_keep_alive{#SINGLETON}]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Apache", - "key": "apache.connections[async_writing{#SINGLETON}]" - } - }, - { - "sortorder": "3", - "drawtype": "BOLD_LINE", - "color": "A54F10", - "item": { - "host": "Apache", - "key": "apache.connections[total{#SINGLETON}]" - } - } - ] - }, - { - "uuid": "dbaa0c2468cc40fca977fb382d19cb78", - "name": "Apache: Current async processes{#SINGLETON}", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Apache", - "key": "apache.process[num{#SINGLETON}]" - } - } - ] - } - ], - "master_item": { - "key": "apache.get_status" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(JSON.parse(value).ServerMPM === 'event'\n ? [{'{#SINGLETON}': ''}] : []);" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "3h" - ] - } - ] - } - ], - "tags": [ - { - "tag": "class", - "value": "software" - }, - { - "tag": "target", - "value": "apache" - } - ], - "macros": [ - { - "macro": "{$APACHE.RESPONSE_TIME.MAX.WARN}", - "value": "10", - "description": "Maximum Apache response time in seconds for trigger expression" - }, - { - "macro": "{$APACHE.STATUS.PATH}", - "value": "server-status?auto", - "description": "The URL path" - }, - { - "macro": "{$APACHE.STATUS.PORT}", - "value": "81", - "description": "The port of Apache status page" - }, - { - "macro": "{$APACHE.STATUS.SCHEME}", - "value": "http", - "description": "Request scheme which may be http or https" - } - ], - "dashboards": [ - { - "uuid": "a328c9e713424465a8e1adec7322b0dc", - "name": "Web Server", - "display_period": "60", - "pages": [ - { - "widgets": [ - { - "type": "graph", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Apache", - "name": "Apache: Requests per second" - } - } - ] - }, - { - "type": "graph", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Apache", - "name": "Apache: Bytes per second" - } - } - ] - }, - { - "type": "graph", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Apache", - "name": "Apache: Service response time" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Apache", - "name": "Apache: Workers total" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Apache", - "name": "Apache: Worker states" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Apache", - "name": "Apache: Service ping" - } - } - ] - } - ] - } - ] - } - ], - "valuemaps": [ - { - "uuid": "a5d1f911fb264bd4bc087ea582626d7f", - "name": "Service state", - "mappings": [ - { - "value": "0", - "newvalue": "Down" - }, - { - "value": "1", - "newvalue": "Up" - } - ] - } - ] - } - ], - "graphs": [ - { - "uuid": "be2cc04cb0044b7bb4b57295477a0d59", - "name": "Apache: Bytes per second", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Apache", - "key": "apache.bytes.rate" - } - } - ] - }, - { - "uuid": "a3998992f7504a12826e3c4d592836b5", - "name": "Apache: Requests per second", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Apache", - "key": "apache.requests.rate" - } - } - ] - }, - { - "uuid": "ef7cd463999a4b33af49fa3261cd6bf3", - "name": "Apache: Service ping", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Apache", - "key": "net.tcp.service[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]" - } - } - ] - }, - { - "uuid": "b1ed1612dc72482f92ce41468499e6a8", - "name": "Apache: Service response time", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Apache", - "key": "net.tcp.service.perf[http,\"{HOST.CONN}\",\"{$APACHE.STATUS.PORT}\"]" - } - } - ] - }, - { - "uuid": "1629062b5cd74b67af9a60226a79f8f1", - "name": "Apache: Worker states", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Apache", - "key": "apache.workers.dnslookup" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Apache", - "key": "apache.workers.cleanup" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Apache", - "key": "apache.workers.logging" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "Apache", - "key": "apache.workers.reading" - } - }, - { - "sortorder": "4", - "color": "FC6EA3", - "item": { - "host": "Apache", - "key": "apache.workers.sending" - } - }, - { - "sortorder": "5", - "color": "6C59DC", - "item": { - "host": "Apache", - "key": "apache.workers.starting" - } - }, - { - "sortorder": "6", - "color": "AC8C14", - "item": { - "host": "Apache", - "key": "apache.workers.closing" - } - }, - { - "sortorder": "7", - "color": "611F27", - "item": { - "host": "Apache", - "key": "apache.workers.finishing" - } - }, - { - "sortorder": "8", - "color": "F230E0", - "item": { - "host": "Apache", - "key": "apache.workers.keepalive" - } - }, - { - "sortorder": "9", - "color": "FFAD40", - "item": { - "host": "Apache", - "key": "apache.workers.slot" - } - }, - { - "sortorder": "10", - "color": "40CDFF", - "item": { - "host": "Apache", - "key": "apache.workers.waiting" - } - } - ] - }, - { - "uuid": "78e59f1b5eb747019f92921ac5ef48b0", - "name": "Apache: Workers total", - "type": "STACKED", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Apache", - "key": "apache.workers_total.busy" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Apache", - "key": "apache.workers_total.idle" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/linux-zabbix-template.json b/zabbix-templates/linux-zabbix-template.json deleted file mode 100644 index e9f0b1e..0000000 --- a/zabbix-templates/linux-zabbix-template.json +++ /dev/null @@ -1,3184 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "846977d1dfed4968bc5f8bdb363285bc", - "name": "Templates/Operating systems" - } - ], - "templates": [ - { - "uuid": "f8f7908280354f2abeed07dc788c3747", - "template": "Linux", - "name": "Linux", - "description": "Official Linux template. Requires agent of Zabbix 3.0.14, 3.4.5 and 4.0.0 or newer.\n\nKnown Issues:\n\n Description: Network discovery. Zabbix agent as of 4.2 doesn't support items such as net.if.status, net.if.speed.\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/387225-discussion-thread-for-official-zabbix-template-for-linux\n\nTemplate tooling version used: 0.42", - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates/Operating systems" - } - ], - "items": [ - { - "uuid": "df561a0cece94760a78704edf7da7326", - "name": "Host name of Zabbix agent running", - "type": "ZABBIX_ACTIVE", - "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": "f94f9f4699e94c369e6c98b2a2f485ce", - "name": "Zabbix agent ping", - "type": "ZABBIX_ACTIVE", - "key": "agent.ping", - "history": "7d", - "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" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "27c42cf180b44632b5d9b8b5788165b3", - "name": "Version of Zabbix agent running", - "type": "ZABBIX_ACTIVE", - "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": "ef386d03ff2c42ffa236acd5215ad547", - "name": "Maximum number of open file descriptors", - "type": "ZABBIX_ACTIVE", - "key": "kernel.maxfiles", - "delay": "1h", - "history": "7d", - "description": "It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf.", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "b9bdcf42f54a409a9a9a616dbd0eaed2", - "expression": "last(/Linux/kernel.maxfiles)<{$KERNEL.MAXFILES.MIN}", - "name": "Configured max number of open filedescriptors is too low", - "event_name": "Configured max number of open filedescriptors is too low (< {$KERNEL.MAXFILES.MIN})", - "priority": "INFO", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "678d70c041954ac8982fb5118b49f6e7", - "name": "Maximum number of processes", - "type": "ZABBIX_ACTIVE", - "key": "kernel.maxproc", - "delay": "1h", - "history": "7d", - "description": "It could be increased by using sysctl utility or modifying the file /etc/sysctl.conf.", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "8cf253ca3eea4109a90443f9cb76fc5c", - "expression": "last(/Linux/kernel.maxproc)<{$KERNEL.MAXPROC.MIN}", - "name": "Configured max number of processes is too low", - "event_name": "Configured max number of processes is too low (< {$KERNEL.MAXPROC.MIN})", - "priority": "INFO", - "dependencies": [ - { - "name": "Getting closer to process limit", - "expression": "last(/Linux/proc.num)/last(/Linux/kernel.maxproc)*100>80" - } - ], - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "ab7d0471092544a6a950184d1bac906d", - "name": "Number of processes", - "type": "ZABBIX_ACTIVE", - "key": "proc.num", - "history": "7d", - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "b2637293884d40108f41b11767dd5be0", - "name": "Number of running processes", - "type": "ZABBIX_ACTIVE", - "key": "proc.num[,,run]", - "history": "7d", - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "27cb0f66bb624146acfdd81b58f108a3", - "name": "System boot time", - "type": "ZABBIX_ACTIVE", - "key": "system.boottime", - "delay": "15m", - "history": "7d", - "units": "unixtime", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "5d186a46867b4eaaafd6396d3239dd3b", - "name": "Interrupts per second", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.intr", - "history": "7d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "48528aa936a04c8189375a6eae4033da", - "name": "Load average (1m avg)", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.load[all,avg1]", - "history": "7d", - "value_type": "FLOAT", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "953beb580df8418cb88b667b9dd37259", - "name": "Load average (5m avg)", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.load[all,avg5]", - "history": "7d", - "value_type": "FLOAT", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "5716000e38e24dae8ead4ed98ede024b", - "name": "Load average (15m avg)", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.load[all,avg15]", - "history": "7d", - "value_type": "FLOAT", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "f72e115544eb4079b09fec8c3539241c", - "name": "Number of CPUs", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.num", - "history": "7d", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "73e85aa10a704fc7950d2d077f0c54ee", - "name": "Context switches per second", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.switches", - "history": "7d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "ca4235ec7607469cb0124a6253d3c489", - "name": "CPU utilization", - "type": "DEPENDENT", - "key": "system.cpu.util", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The CPU utilization expressed in %.", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "//Calculate utilization\nreturn (100 - value)" - ] - } - ], - "master_item": { - "key": "system.cpu.util[,idle]" - }, - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ], - "triggers": [ - { - "uuid": "b4e904559b694df0ad45bcce7930c3a6", - "expression": "min(/Linux/system.cpu.util,5m)>{$CPU.UTIL.CRIT}", - "name": "High CPU utilization", - "event_name": "High CPU utilization (over {$CPU.UTIL.CRIT}% for 5m)", - "opdata": "Current utilization: {ITEM.LASTVALUE1}", - "priority": "WARNING", - "description": "The CPU utilization is too high. The system might be slow to respond.", - "dependencies": [ - { - "name": "Load average is too high", - "expression": "min(/Linux/system.cpu.load[all,avg1],5m)/last(/Linux/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}\nand last(/Linux/system.cpu.load[all,avg5])>0\nand last(/Linux/system.cpu.load[all,avg15])>0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "69b187838fb74f319e47c2ff4f99ef54", - "name": "CPU guest time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,guest]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "Guest time - the time spent on running a virtual CPU for a guest operating system.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "a2b07497f2f343a99d26ad77e65bb54f", - "name": "CPU guest nice time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,guest_nice]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The time spent on running a niced guest (a virtual CPU for guest operating systems under the control of the Linux kernel).", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "7aad6d159baa4a24901847144f0d231b", - "name": "CPU idle time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,idle]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The time the CPU has spent doing nothing.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "cc4bc7693ae84f9bb18cee38d0814195", - "name": "CPU interrupt time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,interrupt]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The amount of time the CPU has been servicing hardware interrupts.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "5df67d9162cc437585990cc8708be894", - "name": "CPU iowait time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,iowait]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The amount of time the CPU has been waiting for I/O to complete.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "8ee6e54c86ba44ab88bb9e83c632c1ed", - "name": "CPU nice time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,nice]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The time the CPU has spent running users' processes that have been niced.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "a949a36004a449c58bef0cdc9d3fafd6", - "name": "CPU softirq time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,softirq]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The amount of time the CPU has been servicing software interrupts.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "3161dbd18e874e69b729c8e903cf7390", - "name": "CPU steal time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,steal]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The amount of 'stolen' CPU from this virtual machine by the hypervisor for other tasks, such as running another virtual machine.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "d93097ed5ce74d35b6041ef2b5ba18e8", - "name": "CPU system time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,system]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The time the CPU has spent running the kernel and its processes.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "57f9e2e34fab41e18e2bc93e786c92c6", - "name": "CPU user time", - "type": "ZABBIX_ACTIVE", - "key": "system.cpu.util[,user]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The time the CPU has spent running users' processes that are not niced.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "207341f390134e37ad431e2823666eb9", - "name": "System name", - "type": "ZABBIX_ACTIVE", - "key": "system.hostname", - "delay": "1h", - "history": "2w", - "trends": "0", - "value_type": "CHAR", - "description": "The host name of the system.", - "inventory_link": "NAME", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "12h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "371a12f95a26438d8da659c84364631b", - "expression": "last(/Linux/system.hostname,#1)<>last(/Linux/system.hostname,#2) and length(last(/Linux/system.hostname))>0", - "name": "System name has changed", - "event_name": "System name has changed (new name: {ITEM.VALUE})", - "priority": "INFO", - "description": "The name of the system has changed. Ack to close the problem manually.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - }, - { - "tag": "scope", - "value": "security" - } - ] - } - ] - }, - { - "uuid": "6072902361404672a444841c786875e6", - "name": "System local time", - "type": "ZABBIX_ACTIVE", - "key": "system.localtime", - "history": "7d", - "units": "unixtime", - "description": "The local system time of the host.", - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "fb77b6ac381c4b5289584bd91e7da7d5", - "expression": "fuzzytime(/Linux/system.localtime,{$SYSTEM.FUZZYTIME.MAX})=0", - "name": "System time is out of sync", - "event_name": "System time is out of sync (diff with Zabbix server > {$SYSTEM.FUZZYTIME.MAX}s)", - "priority": "WARNING", - "description": "The host's system time is different from Zabbix server time.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "availability" - }, - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "fd21580a151246b0a340bf924c326aa8", - "name": "Operating system architecture", - "type": "ZABBIX_ACTIVE", - "key": "system.sw.arch", - "delay": "1h", - "history": "2w", - "trends": "0", - "value_type": "CHAR", - "description": "The architecture of the host's operating system.", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "os" - } - ] - }, - { - "uuid": "5e4c3d14634843e9b7b182e8fc08efbe", - "name": "Operating system", - "type": "ZABBIX_ACTIVE", - "key": "system.sw.os", - "delay": "1h", - "history": "2w", - "trends": "0", - "value_type": "CHAR", - "inventory_link": "OS", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "os" - } - ], - "triggers": [ - { - "uuid": "b1998f98c06b49dd8d71e1c6df409371", - "expression": "last(/Linux/system.sw.os,#1)<>last(/Linux/system.sw.os,#2) and length(last(/Linux/system.sw.os))>0", - "name": "Operating system description has changed", - "priority": "INFO", - "description": "The description of the operating system has changed. Possible reasons are that the system has been updated or replaced. Ack to close the problem manually.", - "manual_close": "YES", - "dependencies": [ - { - "name": "System name has changed", - "expression": "last(/Linux/system.hostname,#1)<>last(/Linux/system.hostname,#2) and length(last(/Linux/system.hostname))>0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "58818005e76d46dda14d6592f601ab00", - "name": "Software installed", - "type": "ZABBIX_ACTIVE", - "key": "system.sw.packages", - "delay": "1h", - "history": "2w", - "trends": "0", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "os" - } - ] - }, - { - "uuid": "160b82c121b147cbbf18c34dbb01d3ce", - "name": "Free swap space", - "type": "ZABBIX_ACTIVE", - "key": "system.swap.size[,free]", - "history": "7d", - "units": "B", - "description": "The free space of the swap volume/file expressed in bytes.", - "tags": [ - { - "tag": "component", - "value": "memory" - }, - { - "tag": "component", - "value": "storage" - } - ] - }, - { - "uuid": "ca423242172f4b20ba47c26f4a61aee7", - "name": "Free swap space in %", - "type": "ZABBIX_ACTIVE", - "key": "system.swap.size[,pfree]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The free space of the swap volume/file expressed in %.", - "tags": [ - { - "tag": "component", - "value": "memory" - }, - { - "tag": "component", - "value": "storage" - } - ] - }, - { - "uuid": "102c81b5523c4be0b4beae3cb88ebde1", - "name": "Total swap space", - "type": "ZABBIX_ACTIVE", - "key": "system.swap.size[,total]", - "history": "7d", - "units": "B", - "description": "The total space of the swap volume/file expressed in bytes.", - "tags": [ - { - "tag": "component", - "value": "memory" - }, - { - "tag": "component", - "value": "storage" - } - ] - }, - { - "uuid": "fc6898682f904c57ba28bcb3748b237f", - "name": "System description", - "type": "ZABBIX_ACTIVE", - "key": "system.uname", - "delay": "15m", - "history": "2w", - "trends": "0", - "value_type": "CHAR", - "description": "The information as normally returned by 'uname -a'.", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "12h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "8537f6c6ac6b438c80caf227946df891", - "name": "System uptime", - "type": "ZABBIX_ACTIVE", - "key": "system.uptime", - "delay": "30s", - "history": "2w", - "trends": "0d", - "units": "uptime", - "description": "The system uptime expressed in the following format:'N days, hh:mm:ss'.", - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "triggers": [ - { - "uuid": "1dbab80d7b6847e5b5a676cffba0fd1d", - "expression": "last(/Linux/system.uptime)<10m", - "name": "has been restarted", - "event_name": "{HOST.NAME} has been restarted (uptime < 10m)", - "priority": "WARNING", - "description": "The host uptime is less than 10 minutes", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "88056b3d2e424d5aba7cabcd4b043c9e", - "name": "Number of logged in users", - "type": "ZABBIX_ACTIVE", - "key": "system.users.num", - "history": "7d", - "description": "The number of users who are currently logged in.", - "tags": [ - { - "tag": "component", - "value": "environment" - } - ] - }, - { - "uuid": "3b93d3590df24a46b29f6eb06f5e2446", - "name": "Checksum of /etc/passwd", - "type": "ZABBIX_ACTIVE", - "key": "vfs.file.cksum[/etc/passwd,sha256]", - "delay": "15m", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "security" - } - ], - "triggers": [ - { - "uuid": "3a764881727b4e7eb01e137ccfc968a2", - "expression": "last(/Linux/vfs.file.cksum[/etc/passwd,sha256],#1)<>last(/Linux/vfs.file.cksum[/etc/passwd,sha256],#2)", - "name": "/etc/passwd has been changed", - "priority": "INFO", - "manual_close": "YES", - "dependencies": [ - { - "name": "Operating system description has changed", - "expression": "last(/Linux/system.sw.os,#1)<>last(/Linux/system.sw.os,#2) and length(last(/Linux/system.sw.os))>0" - }, - { - "name": "System name has changed", - "expression": "last(/Linux/system.hostname,#1)<>last(/Linux/system.hostname,#2) and length(last(/Linux/system.hostname))>0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "security" - } - ] - } - ] - }, - { - "uuid": "e811e6e2ae84461294e121f12e767b40", - "name": "Available memory", - "type": "ZABBIX_ACTIVE", - "key": "vm.memory.size[available]", - "history": "7d", - "units": "B", - "description": "The available memory:\n - in Linux - available = free + buffers + cache;\n - on other platforms calculation may vary.\nSee also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "20779a4c43374e5f9bea2584e93b85ef", - "name": "Available memory in %", - "type": "ZABBIX_ACTIVE", - "key": "vm.memory.size[pavailable]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The available memory as percentage of the total. See also Appendixes in Zabbix Documentation about parameters of the vm.memory.size item.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "d5c3541a7c0949ce812df1beb0732941", - "name": "Total memory", - "type": "ZABBIX_ACTIVE", - "key": "vm.memory.size[total]", - "history": "7d", - "units": "B", - "description": "The total memory expressed in Bytes.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "403cebed115441369e94d35d070ca7b8", - "name": "Memory utilization", - "type": "DEPENDENT", - "key": "vm.memory.utilization", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The percentage of used memory is calculated as 100-pavailable.", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return (100-value);" - ] - } - ], - "master_item": { - "key": "vm.memory.size[pavailable]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ], - "triggers": [ - { - "uuid": "cfd395b1cde74ef18a5e5f840bd5142a", - "expression": "min(/Linux/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX}", - "name": "High memory utilization", - "event_name": "High memory utilization (>{$MEMORY.UTIL.MAX}% for 5m)", - "priority": "AVERAGE", - "description": "The system is running out of free memory.", - "dependencies": [ - { - "name": "Lack of available memory", - "expression": "max(/Linux/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux/vm.memory.size[total])>0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "capacity" - }, - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "ca48c53be1bf46ae9dd2707158a55139", - "name": "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": "93594214371b4dc88b41663cad8537f0", - "expression": "max(/Linux/zabbix[host,agent,available],{$AGENT.TIMEOUT})=0", - "name": "Zabbix agent is not available", - "event_name": "Zabbix agent is not available (for {$AGENT.TIMEOUT})", - "priority": "AVERAGE", - "description": "For passive only agents, host availability is used with {$AGENT.TIMEOUT} as time threshold.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - } - ], - "discovery_rules": [ - { - "uuid": "acfdea9c46ef48c68e6636f43b8f96a2", - "name": "Network interface discovery", - "key": "net.if.discovery", - "delay": "1h", - "filter": { - "evaltype": "AND", - "conditions": [ - { - "macro": "{#IFNAME}", - "value": "{$NET.IF.IFNAME.MATCHES}", - "formulaid": "A" - }, - { - "macro": "{#IFNAME}", - "value": "{$NET.IF.IFNAME.NOT_MATCHES}", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "B" - } - ] - }, - "description": "The discovery of network interfaces.", - "item_prototypes": [ - { - "uuid": "4d66608e190e4be7a438ea5d0d26e353", - "name": "Interface {#IFNAME}: Inbound packets discarded", - "key": "net.if.in[\"{#IFNAME}\",dropped]", - "delay": "3m", - "history": "7d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "ed79960ca91f4e2ca45fed014a02c50b", - "name": "Interface {#IFNAME}: Inbound packets with errors", - "key": "net.if.in[\"{#IFNAME}\",errors]", - "delay": "3m", - "history": "7d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "c9941a1f8d904309b581cae5ccc1660c", - "name": "Interface {#IFNAME}: Bits received", - "key": "net.if.in[\"{#IFNAME}\"]", - "delay": "3m", - "history": "7d", - "units": "bps", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "8" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "0795a375a41d46a2b5c89547061cec8e", - "name": "Interface {#IFNAME}: Outbound packets discarded", - "key": "net.if.out[\"{#IFNAME}\",dropped]", - "delay": "3m", - "history": "7d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "f8e8bbc069414e928a5da9817f4599a5", - "name": "Interface {#IFNAME}: Outbound packets with errors", - "key": "net.if.out[\"{#IFNAME}\",errors]", - "delay": "3m", - "history": "7d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "82897d99b0114c67b0f5b449c768c8e7", - "name": "Interface {#IFNAME}: Bits sent", - "key": "net.if.out[\"{#IFNAME}\"]", - "delay": "3m", - "history": "7d", - "units": "bps", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "8" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "3efd24ad36b04eb995cfeab82721c2fe", - "name": "Interface {#IFNAME}: Operational status", - "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"]", - "history": "7d", - "trends": "0", - "description": "Reference: https://www.kernel.org/doc/Documentation/networking/operstates.txt", - "valuemap": { - "name": "ifOperStatus" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "var newvalue;\nswitch(value) {\n case \"unknown\":\n newvalue = 0;\n break;\n case \"notpresent\":\n newvalue = 1;\n break;\n case \"down\":\n newvalue = 2;\n break;\n case \"lowerlayerdown\":\n newvalue = 3;\n break;\n case \"testing\":\n newvalue = 4;\n break;\n case \"dormant\":\n newvalue = 5;\n break;\n case \"up\":\n newvalue = 6;\n break; default:\n newvalue = \"Problem parsing interface operstate in JS\";\n}\nreturn newvalue;" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ], - "trigger_prototypes": [ - { - "uuid": "4d7f18ca132340b885c0692464dc429f", - "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", - "recovery_mode": "RECOVERY_EXPRESSION", - "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0", - "name": "Interface {#IFNAME}: Link down", - "opdata": "Current state: {ITEM.LASTVALUE1}", - "priority": "AVERAGE", - "description": "This trigger expression works as follows:\n1. It can be triggered if the operations status is down.\n2. {$IFCONTROL:\"{#IFNAME}\"}=1 - a user can redefine context macro to value - 0. That marks this interface as not important. No new trigger will be fired if this interface is down.\n3. {TEMPLATE_NAME:METRIC.diff()}=1) - the trigger fires only if the operational status was up to (1) sometime before (so, do not fire for the 'ethernal off' interfaces.)\n\nWARNING: if closed manually - it will not fire again on the next poll, because of .diff.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "f4c456e1f9ef4adbbd11f1ee17fa4d76", - "name": "Interface {#IFNAME}: Speed", - "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]", - "delay": "5m", - "history": "7d", - "trends": "0d", - "units": "bps", - "description": "It indicates the latest or current speed value of the interface. The value is an integer representing the link speed expressed in bits/sec.\nThis attribute is only valid for the interfaces that implement the ethtool get_link_ksettings method (mostly Ethernet).\nReference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net", - "preprocessing": [ - { - "type": "MULTIPLIER", - "parameters": [ - "1000000" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - }, - { - "uuid": "d537e74070c74e4385ad241e8514dd3a", - "name": "Interface {#IFNAME}: Interface type", - "key": "vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"]", - "delay": "1h", - "history": "7d", - "trends": "0d", - "description": "It indicates the interface protocol type as a decimal value.\nSee include/uapi/linux/if_arp.h for all possible values.\nReference: https://www.kernel.org/doc/Documentation/ABI/testing/sysfs-class-net", - "valuemap": { - "name": "Linux::Interface protocol types" - }, - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "network" - }, - { - "tag": "interface", - "value": "{#IFNAME}" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "2ffdc1d5a318492bb497facd263843bd", - "expression": "change(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])<0 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0\nand\n(last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"])=6 or last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/type\"])=1)\nand\n(last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2)", - "recovery_mode": "RECOVERY_EXPRESSION", - "recovery_expression": "(change(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"],#2)>0) or\n(last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2)", - "name": "Interface {#IFNAME}: Ethernet has changed to lower speed than it was before", - "opdata": "Current reported speed: {ITEM.LASTVALUE1}", - "priority": "INFO", - "description": "This Ethernet connection has transitioned down from its known maximum speed. This might be a sign of autonegotiation issues. Acknowledge (Ack) to close the problem manually.", - "manual_close": "YES", - "dependencies": [ - { - "name": "Interface {#IFNAME}: Link down", - "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", - "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - }, - { - "uuid": "f64186d30b4e4c4281fce84349cbd646", - "expression": "(avg(/Linux/net.if.in[\"{#IFNAME}\"],15m)>({$IF.UTIL.MAX:\"{#IFNAME}\"}/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]) or\navg(/Linux/net.if.out[\"{#IFNAME}\"],15m)>({$IF.UTIL.MAX:\"{#IFNAME}\"}/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])) and\nlast(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])>0", - "recovery_mode": "RECOVERY_EXPRESSION", - "recovery_expression": "avg(/Linux/net.if.in[\"{#IFNAME}\"],15m)<(({$IF.UTIL.MAX:\"{#IFNAME}\"}-3)/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"]) and\navg(/Linux/net.if.out[\"{#IFNAME}\"],15m)<(({$IF.UTIL.MAX:\"{#IFNAME}\"}-3)/100)*last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/speed\"])", - "name": "Interface {#IFNAME}: High bandwidth usage", - "event_name": "Interface {#IFNAME}: High bandwidth usage (>{$IF.UTIL.MAX:\"{#IFNAME}\"}%)", - "opdata": "In: {ITEM.LASTVALUE1}, out: {ITEM.LASTVALUE3}, speed: {ITEM.LASTVALUE2}", - "priority": "WARNING", - "description": "The utilization of the network interface is close to its estimated maximum bandwidth.", - "manual_close": "YES", - "dependencies": [ - { - "name": "Interface {#IFNAME}: Link down", - "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", - "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - }, - { - "uuid": "ad50aecf8e7746b2a85f24507f1d511d", - "expression": "min(/Linux/net.if.in[\"{#IFNAME}\",errors],5m)>{$IF.ERRORS.WARN:\"{#IFNAME}\"}\nor min(/Linux/net.if.out[\"{#IFNAME}\",errors],5m)>{$IF.ERRORS.WARN:\"{#IFNAME}\"}", - "recovery_mode": "RECOVERY_EXPRESSION", - "recovery_expression": "max(/Linux/net.if.in[\"{#IFNAME}\",errors],5m)<{$IF.ERRORS.WARN:\"{#IFNAME}\"}*0.8\nand max(/Linux/net.if.out[\"{#IFNAME}\",errors],5m)<{$IF.ERRORS.WARN:\"{#IFNAME}\"}*0.8", - "name": "Interface {#IFNAME}: High error rate", - "event_name": "Interface {#IFNAME}: High error rate (>{$IF.ERRORS.WARN:\"{#IFNAME}\"} for 5m)", - "opdata": "errors in: {ITEM.LASTVALUE1}, errors out: {ITEM.LASTVALUE2}", - "priority": "WARNING", - "description": "It recovers when it is below 80% of the {$IF.ERRORS.WARN:\"{#IFNAME}\"} threshold", - "manual_close": "YES", - "dependencies": [ - { - "name": "Interface {#IFNAME}: Link down", - "expression": "{$IFCONTROL:\"{#IFNAME}\"}=1 and last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])=2 and (last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#1)<>last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"],#2))", - "recovery_expression": "last(/Linux/vfs.file.contents[\"/sys/class/net/{#IFNAME}/operstate\"])<>2 or {$IFCONTROL:\"{#IFNAME}\"}=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - }, - { - "tag": "scope", - "value": "performance" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "50ced0f22d9d478eb4b639ef64e242ab", - "name": "Interface {#IFNAME}: Network traffic", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "net.if.in[\"{#IFNAME}\"]" - } - }, - { - "sortorder": "1", - "drawtype": "BOLD_LINE", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "net.if.out[\"{#IFNAME}\"]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "yaxisside": "RIGHT", - "item": { - "host": "Linux", - "key": "net.if.out[\"{#IFNAME}\",errors]" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "yaxisside": "RIGHT", - "item": { - "host": "Linux", - "key": "net.if.in[\"{#IFNAME}\",errors]" - } - }, - { - "sortorder": "4", - "color": "FC6EA3", - "yaxisside": "RIGHT", - "item": { - "host": "Linux", - "key": "net.if.out[\"{#IFNAME}\",dropped]" - } - }, - { - "sortorder": "5", - "color": "6C59DC", - "yaxisside": "RIGHT", - "item": { - "host": "Linux", - "key": "net.if.in[\"{#IFNAME}\",dropped]" - } - } - ] - } - ] - }, - { - "uuid": "2bbdc79f082d4c618e01bec625e9c90a", - "name": "Block devices discovery", - "key": "vfs.dev.discovery", - "delay": "1h", - "filter": { - "evaltype": "AND", - "conditions": [ - { - "macro": "{#DEVNAME}", - "value": "{$VFS.DEV.DEVNAME.MATCHES}", - "formulaid": "A" - }, - { - "macro": "{#DEVNAME}", - "value": "{$VFS.DEV.DEVNAME.NOT_MATCHES}", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "B" - }, - { - "macro": "{#DEVTYPE}", - "value": "disk", - "formulaid": "C" - } - ] - }, - "item_prototypes": [ - { - "uuid": "5e29abb8d56044f69426ed3594f8ac9f", - "name": "{#DEVNAME}: Disk average queue size (avgqu-sz)", - "type": "DEPENDENT", - "key": "vfs.dev.queue_size[{#DEVNAME}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The current average disk queue; the number of requests outstanding on the disk while the performance data is being collected.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[10]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.001" - ] - } - ], - "master_item": { - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "9600208af80e4a6abe55bb5a2240ea8e", - "name": "{#DEVNAME}: Disk read request avg waiting time (r_await)", - "type": "CALCULATED", - "key": "vfs.dev.read.await[{#DEVNAME}]", - "history": "7d", - "value_type": "FLOAT", - "units": "!ms", - "params": "(last(//vfs.dev.read.time.rate[{#DEVNAME}])/(last(//vfs.dev.read.rate[{#DEVNAME}])+(last(//vfs.dev.read.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.read.rate[{#DEVNAME}]) > 0)", - "description": "This formula contains two boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.", - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "f4b982d8e7ee47adb34d74d817db43a6", - "name": "{#DEVNAME}: Disk read rate", - "type": "DEPENDENT", - "key": "vfs.dev.read.rate[{#DEVNAME}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "!r/s", - "description": "r/s (read operations per second) - the number (after merges) of read requests completed per second for the device.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[0]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "877a3e892d9e489f98f2f16ea05bfdc2", - "name": "{#DEVNAME}: Disk read time (rate)", - "type": "DEPENDENT", - "key": "vfs.dev.read.time.rate[{#DEVNAME}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The rate of total read time counter; used in r_await calculation.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[3]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.001" - ] - } - ], - "master_item": { - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "4a3ee3166ee748e1855a2b02d44e9d62", - "name": "{#DEVNAME}: Disk utilization", - "type": "DEPENDENT", - "key": "vfs.dev.util[{#DEVNAME}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "This item is the percentage of elapsed time during which the selected disk drive was busy while servicing read or write requests.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[9]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.1" - ] - } - ], - "master_item": { - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "5907708cf4854d48ae3ebf8f0bc41eef", - "name": "{#DEVNAME}: Disk write request avg waiting time (w_await)", - "type": "CALCULATED", - "key": "vfs.dev.write.await[{#DEVNAME}]", - "history": "7d", - "value_type": "FLOAT", - "units": "!ms", - "params": "(last(//vfs.dev.write.time.rate[{#DEVNAME}])/(last(//vfs.dev.write.rate[{#DEVNAME}])+(last(//vfs.dev.write.rate[{#DEVNAME}])=0)))*1000*(last(//vfs.dev.write.rate[{#DEVNAME}]) > 0)", - "description": "This formula contains two boolean expressions that evaluate to 1 or 0 in order to set the calculated metric to zero and to avoid the exception - division by zero.", - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "c4eb904dfddd4b0f8cdee4b2c477e213", - "name": "{#DEVNAME}: Disk write rate", - "type": "DEPENDENT", - "key": "vfs.dev.write.rate[{#DEVNAME}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "!w/s", - "description": "w/s (write operations per second) - the number (after merges) of write requests completed per second for the device.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[4]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "e828495863304b219e24965f7b91e963", - "name": "{#DEVNAME}: Disk write time (rate)", - "type": "DEPENDENT", - "key": "vfs.dev.write.time.rate[{#DEVNAME}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The rate of total write time counter; used in w_await calculation.", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$[7]" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.001" - ] - } - ], - "master_item": { - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "disk", - "value": "{#DEVNAME}" - } - ] - }, - { - "uuid": "8309fd01a5864ad68866717d0fe67080", - "name": "{#DEVNAME}: Get stats", - "key": "vfs.file.contents[/sys/block/{#DEVNAME}/stat]", - "history": "0", - "trends": "0", - "value_type": "TEXT", - "description": "The contents of get /sys/block/{#DEVNAME}/stat to get the disk statistics.", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(value.trim().split(/ +/));" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "raw" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "eb6230f786d04b658ce62c30a9309a34", - "expression": "min(/Linux/vfs.dev.read.await[{#DEVNAME}],15m) > {$VFS.DEV.READ.AWAIT.WARN:\"{#DEVNAME}\"} or min(/Linux/vfs.dev.write.await[{#DEVNAME}],15m) > {$VFS.DEV.WRITE.AWAIT.WARN:\"{#DEVNAME}\"}", - "name": "{#DEVNAME}: Disk read/write request responses are too high", - "event_name": "{#DEVNAME}: Disk read/write request responses are too high (read > {$VFS.DEV.READ.AWAIT.WARN:\"{#DEVNAME}\"} ms for 15m or write > {$VFS.DEV.WRITE.AWAIT.WARN:\"{#DEVNAME}\"} ms for 15m)", - "priority": "WARNING", - "description": "This trigger might indicate the disk {#DEVNAME} saturation.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "5e9b35b27b90489390d397758fbfdf64", - "name": "{#DEVNAME}: Disk average waiting time", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "vfs.dev.read.await[{#DEVNAME}]" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "vfs.dev.write.await[{#DEVNAME}]" - } - } - ] - }, - { - "uuid": "d436d6d5456c44f0a534bf1f681d5039", - "name": "{#DEVNAME}: Disk read/write rates", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "vfs.dev.read.rate[{#DEVNAME}]" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "vfs.dev.write.rate[{#DEVNAME}]" - } - } - ] - }, - { - "uuid": "c42e4045e0974e89a306c57fb188c4fa", - "name": "{#DEVNAME}: Disk utilization and queue", - "graph_items": [ - { - "color": "1A7C11", - "yaxisside": "RIGHT", - "item": { - "host": "Linux", - "key": "vfs.dev.queue_size[{#DEVNAME}]" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "vfs.dev.util[{#DEVNAME}]" - } - } - ] - } - ], - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ] - }, - { - "uuid": "7d090603037e4defb34ef74021d3adcd", - "name": "Mounted filesystem 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" - } - ] - }, - "description": "The discovery of mounted filesystems with different types.", - "item_prototypes": [ - { - "uuid": "4da7f08a979a46df8b8aeebb42a46207", - "name": "{#FSNAME}: Free inodes in %", - "key": "vfs.fs.inode[{#FSNAME},pfree]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "filesystem", - "value": "{#FSNAME}" - } - ], - "trigger_prototypes": [ - { - "uuid": "115b2d37807f476faf6d02ef406acabd", - "expression": "min(/Linux/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}", - "name": "{#FSNAME}: Running out of free inodes", - "event_name": "{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}%)", - "opdata": "Free inodes: {ITEM.LASTVALUE1}", - "priority": "AVERAGE", - "description": "It may become impossible to write to a disk if there are no index nodes left.\nFollowing error messages may be returned as symptoms, even though the free space is available:\n - 'No space left on device';\n - 'Disk is full'.", - "tags": [ - { - "tag": "scope", - "value": "capacity" - }, - { - "tag": "scope", - "value": "performance" - } - ] - }, - { - "uuid": "ea012c7295344ffe8c66f7ea54d81042", - "expression": "min(/Linux/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.WARN:\"{#FSNAME}\"}", - "name": "{#FSNAME}: Running out of free inodes", - "event_name": "{#FSNAME}: Running out of free inodes (free < {$VFS.FS.INODE.PFREE.MIN.WARN:\"{#FSNAME}\"}%)", - "opdata": "Free inodes: {ITEM.LASTVALUE1}", - "priority": "WARNING", - "description": "It may become impossible to write to a disk if there are no index nodes left.\nFollowing error messages may be returned as symptoms, even though the free space is available:\n - 'No space left on device';\n - 'Disk is full'.", - "dependencies": [ - { - "name": "{#FSNAME}: Running out of free inodes", - "expression": "min(/Linux/vfs.fs.inode[{#FSNAME},pfree],5m)<{$VFS.FS.INODE.PFREE.MIN.CRIT:\"{#FSNAME}\"}" - } - ], - "tags": [ - { - "tag": "scope", - "value": "capacity" - }, - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "61ffe6fcb9d94199aaeb5d568ab74a27", - "name": "{#FSNAME}: Space utilization", - "key": "vfs.fs.size[{#FSNAME},pused]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The space utilization expressed in % for {#FSNAME}.", - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "filesystem", - "value": "{#FSNAME}" - } - ] - }, - { - "uuid": "a6d90e0bc5ef4fb7acee8682687c485f", - "name": "{#FSNAME}: Total space", - "key": "vfs.fs.size[{#FSNAME},total]", - "history": "7d", - "units": "B", - "description": "The total space expressed in Bytes.", - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "filesystem", - "value": "{#FSNAME}" - } - ] - }, - { - "uuid": "efee06a191aa4e5c8faa2762988b6955", - "name": "{#FSNAME}: Used space", - "key": "vfs.fs.size[{#FSNAME},used]", - "history": "7d", - "units": "B", - "description": "Used storage expressed in Bytes", - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "filesystem", - "value": "{#FSNAME}" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "9abccdfff8be4e14967ac917ca09afe1", - "expression": "last(/Linux/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"} and\n((last(/Linux/vfs.fs.size[{#FSNAME},total])-last(/Linux/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.CRIT:\"{#FSNAME}\"} or timeleft(/Linux/vfs.fs.size[{#FSNAME},pused],1h,100)<1d)", - "name": "{#FSNAME}: Disk space is critically low", - "event_name": "{#FSNAME}: Disk space is critically low (used > {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}%)", - "opdata": "Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})", - "priority": "AVERAGE", - "description": "Two conditions should match:\n 1. The first condition - utilization of space should be above {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}.\n 2. The second condition should be one of the following:\n - the disk free space is less than {$VFS.FS.FREE.MIN.CRIT:\"{#FSNAME}\"};\n - the disk will be full in less than 24 hours.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "availability" - }, - { - "tag": "scope", - "value": "capacity" - } - ] - }, - { - "uuid": "d6d348ea500c428da6ba718816c4b048", - "expression": "last(/Linux/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"} and\n((last(/Linux/vfs.fs.size[{#FSNAME},total])-last(/Linux/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.WARN:\"{#FSNAME}\"} or timeleft(/Linux/vfs.fs.size[{#FSNAME},pused],1h,100)<1d)", - "name": "{#FSNAME}: Disk space is low", - "event_name": "{#FSNAME}: Disk space is low (used > {$VFS.FS.PUSED.MAX.WARN:\"{#FSNAME}\"}%)", - "opdata": "Space used: {ITEM.LASTVALUE3} of {ITEM.LASTVALUE2} ({ITEM.LASTVALUE1})", - "priority": "WARNING", - "description": "Two conditions should match:\n 1. The first condition - utilization of space should be above {$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"}.\n 2. The second condition should be one of the following:\n - the disk free space is less than {$VFS.FS.FREE.MIN.WARN:\"{#FSNAME}\"};\n - the disk will be full in less than 24 hours.", - "manual_close": "YES", - "dependencies": [ - { - "name": "{#FSNAME}: Disk space is critically low", - "expression": "last(/Linux/vfs.fs.size[{#FSNAME},pused])>{$VFS.FS.PUSED.MAX.CRIT:\"{#FSNAME}\"} and\n((last(/Linux/vfs.fs.size[{#FSNAME},total])-last(/Linux/vfs.fs.size[{#FSNAME},used]))<{$VFS.FS.FREE.MIN.CRIT:\"{#FSNAME}\"} or timeleft(/Linux/vfs.fs.size[{#FSNAME},pused],1h,100)<1d)" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - }, - { - "tag": "scope", - "value": "capacity" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "1e0889c551584013acbb97c84ae89d1c", - "name": "{#FSNAME}: Disk space usage", - "width": "600", - "height": "340", - "type": "PIE", - "show_3d": "YES", - "graph_items": [ - { - "color": "969696", - "calc_fnc": "LAST", - "type": "GRAPH_SUM", - "item": { - "host": "Linux", - "key": "vfs.fs.size[{#FSNAME},total]" - } - }, - { - "sortorder": "1", - "color": "C80000", - "calc_fnc": "LAST", - "item": { - "host": "Linux", - "key": "vfs.fs.size[{#FSNAME},used]" - } - } - ] - } - ], - "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": "linux" - } - ], - "macros": [ - { - "macro": "{$AGENT.TIMEOUT}", - "value": "3m", - "description": "Timeout after which agent is considered unavailable. Works only for agents reachable from Zabbix server/proxy (passive mode)." - }, - { - "macro": "{$CPU.UTIL.CRIT}", - "value": "90" - }, - { - "macro": "{$IF.ERRORS.WARN}", - "value": "2" - }, - { - "macro": "{$IF.UTIL.MAX}", - "value": "90", - "description": "This macro is used as a threshold in the interface utilization trigger." - }, - { - "macro": "{$IFCONTROL}", - "value": "1" - }, - { - "macro": "{$KERNEL.MAXFILES.MIN}", - "value": "256" - }, - { - "macro": "{$KERNEL.MAXPROC.MIN}", - "value": "1024" - }, - { - "macro": "{$LOAD_AVG_PER_CPU.MAX.WARN}", - "value": "1.5", - "description": "CPU load per core is considered sustainable. If necessary, it can be tuned." - }, - { - "macro": "{$MEMORY.AVAILABLE.MIN}", - "value": "20M", - "description": "This macro is used as a threshold in the memory available trigger." - }, - { - "macro": "{$MEMORY.UTIL.MAX}", - "value": "90", - "description": "This macro is used as a threshold in the memory utilization trigger." - }, - { - "macro": "{$NET.IF.IFNAME.MATCHES}", - "value": "^.*$" - }, - { - "macro": "{$NET.IF.IFNAME.NOT_MATCHES}", - "value": "(^Software Loopback Interface|^NULL[0-9.]*$|^[Ll]o[0-9.]*$|^[Ss]ystem$|^Nu[0-9.]*$|^veth[0-9A-z]+$|docker[0-9]+|br-[a-z0-9]{12})", - "description": "It filters out loopbacks, nulls, docker veth links and docker0 bridge by default." - }, - { - "macro": "{$SWAP.PFREE.MIN.WARN}", - "value": "50" - }, - { - "macro": "{$SYSTEM.FUZZYTIME.MAX}", - "value": "60" - }, - { - "macro": "{$VFS.DEV.DEVNAME.MATCHES}", - "value": ".+", - "description": "This macro is used for a discovery of block devices. It can be overridden on host level or its linked template level." - }, - { - "macro": "{$VFS.DEV.DEVNAME.NOT_MATCHES}", - "value": "^(loop[0-9]*|sd[a-z][0-9]+|nbd[0-9]+|sr[0-9]+|fd[0-9]+|dm-[0-9]+|ram[0-9]+|ploop[a-z0-9]+|md[0-9]*|hcp[0-9]*|zram[0-9]*)", - "description": "This macro is used for a discovery of block devices. It can be overridden on host level or its linked template level." - }, - { - "macro": "{$VFS.DEV.READ.AWAIT.WARN}", - "value": "40", - "description": "The average response time (in ms) of disk read before the trigger would fire." - }, - { - "macro": "{$VFS.DEV.WRITE.AWAIT.WARN}", - "value": "40", - "description": "The average response time (in ms) of disk write before the trigger would fire." - }, - { - "macro": "{$VFS.FS.FREE.MIN.CRIT}", - "value": "5G", - "description": "The critical threshold for utilization of the filesystem." - }, - { - "macro": "{$VFS.FS.FREE.MIN.WARN}", - "value": "10G", - "description": "The warning threshold for utilization of the filesystem." - }, - { - "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." - }, - { - "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." - }, - { - "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." - }, - { - "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." - }, - { - "macro": "{$VFS.FS.INODE.PFREE.MIN.CRIT}", - "value": "10" - }, - { - "macro": "{$VFS.FS.INODE.PFREE.MIN.WARN}", - "value": "20" - }, - { - "macro": "{$VFS.FS.PUSED.MAX.CRIT}", - "value": "90" - }, - { - "macro": "{$VFS.FS.PUSED.MAX.WARN}", - "value": "80" - } - ], - "dashboards": [ - { - "uuid": "14aa11c326a54ec390d4c209d30cc741", - "name": "Network interfaces", - "pages": [ - { - "widgets": [ - { - "type": "graphprototype", - "width": "24", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Linux", - "name": "Interface {#IFNAME}: Network traffic" - } - }, - { - "type": "INTEGER", - "name": "rows", - "value": "1" - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "2" - } - ] - } - ] - } - ] - }, - { - "uuid": "e9ca2f8e715f428b8edc0129aa0c79de", - "name": "System performance", - "pages": [ - { - "widgets": [ - { - "type": "graph", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Linux", - "name": "System load" - } - } - ] - }, - { - "type": "graph", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Linux", - "name": "Memory usage" - } - } - ] - }, - { - "type": "graphprototype", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Linux", - "name": "{#DEVNAME}: Disk read/write rates" - } - } - ] - }, - { - "type": "graphprototype", - "y": "15", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Linux", - "name": "{#DEVNAME}: Disk utilization and queue" - } - } - ] - }, - { - "type": "graphprototype", - "y": "20", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Linux", - "name": "{#FSNAME}: Disk space usage" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Linux", - "name": "CPU usage" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Linux", - "name": "Swap usage" - } - } - ] - }, - { - "type": "graphprototype", - "x": "12", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Linux", - "name": "{#DEVNAME}: Disk average waiting time" - } - } - ] - }, - { - "type": "graphprototype", - "x": "12", - "y": "15", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Linux", - "name": "Interface {#IFNAME}: Network traffic" - } - } - ] - } - ] - } - ] - } - ], - "valuemaps": [ - { - "uuid": "8c048c6cca8248f2860c208e8db0f59e", - "name": "ifOperStatus", - "mappings": [ - { - "value": "0", - "newvalue": "unknown" - }, - { - "value": "1", - "newvalue": "notpresent" - }, - { - "value": "2", - "newvalue": "down" - }, - { - "value": "3", - "newvalue": "lowerlayerdown" - }, - { - "value": "4", - "newvalue": "testing" - }, - { - "value": "5", - "newvalue": "dormant" - }, - { - "value": "6", - "newvalue": "up" - } - ] - }, - { - "uuid": "044df261808442a8af9e5cda0acaa6a5", - "name": "Linux::Interface protocol types", - "mappings": [ - { - "value": "0", - "newvalue": "from KA9Q: NET/ROM pseudo" - }, - { - "value": "1", - "newvalue": "Ethernet" - }, - { - "value": "2", - "newvalue": "Experimental Ethernet" - }, - { - "value": "3", - "newvalue": "AX.25 Level 2" - }, - { - "value": "4", - "newvalue": "PROnet token ring" - }, - { - "value": "5", - "newvalue": "Chaosnet" - }, - { - "value": "6", - "newvalue": "IEEE 802.2 Ethernet/TR/TB" - }, - { - "value": "7", - "newvalue": "ARCnet" - }, - { - "value": "8", - "newvalue": "APPLEtalk" - }, - { - "value": "15", - "newvalue": "Frame Relay DLCI" - }, - { - "value": "19", - "newvalue": "ATM" - }, - { - "value": "23", - "newvalue": "Metricom STRIP (new IANA id)" - }, - { - "value": "24", - "newvalue": "IEEE 1394 IPv4 - RFC 2734" - }, - { - "value": "27", - "newvalue": "EUI-64" - }, - { - "value": "32", - "newvalue": "InfiniBand" - }, - { - "value": "256", - "newvalue": "ARPHRD_SLIP" - }, - { - "value": "257", - "newvalue": "ARPHRD_CSLIP" - }, - { - "value": "258", - "newvalue": "ARPHRD_SLIP6" - }, - { - "value": "259", - "newvalue": "ARPHRD_CSLIP6" - }, - { - "value": "260", - "newvalue": "Notional KISS type" - }, - { - "value": "264", - "newvalue": "ARPHRD_ADAPT" - }, - { - "value": "270", - "newvalue": "ARPHRD_ROSE" - }, - { - "value": "271", - "newvalue": "CCITT X.25" - }, - { - "value": "272", - "newvalue": "Boards with X.25 in firmware" - }, - { - "value": "280", - "newvalue": "Controller Area Network" - }, - { - "value": "512", - "newvalue": "ARPHRD_PPP" - }, - { - "value": "513", - "newvalue": "Cisco HDLC" - }, - { - "value": "516", - "newvalue": "LAPB" - }, - { - "value": "517", - "newvalue": "Digital's DDCMP protocol" - }, - { - "value": "518", - "newvalue": "Raw HDLC" - }, - { - "value": "519", - "newvalue": "Raw IP" - }, - { - "value": "768", - "newvalue": "IPIP tunnel" - }, - { - "value": "769", - "newvalue": "IP6IP6 tunnel" - }, - { - "value": "770", - "newvalue": "Frame Relay Access Device" - }, - { - "value": "771", - "newvalue": "SKIP vif" - }, - { - "value": "772", - "newvalue": "Loopback device" - }, - { - "value": "773", - "newvalue": "Localtalk device" - }, - { - "value": "774", - "newvalue": "Fiber Distributed Data Interface" - }, - { - "value": "775", - "newvalue": "AP1000 BIF" - }, - { - "value": "776", - "newvalue": "sit0 device - IPv6-in-IPv4" - }, - { - "value": "777", - "newvalue": "IP over DDP tunneller" - }, - { - "value": "778", - "newvalue": "GRE over IP" - }, - { - "value": "779", - "newvalue": "PIMSM register interface" - }, - { - "value": "780", - "newvalue": "High Performance Parallel Interface" - }, - { - "value": "781", - "newvalue": "Nexus 64Mbps Ash" - }, - { - "value": "782", - "newvalue": "Acorn Econet" - }, - { - "value": "783", - "newvalue": "Linux-IrDA" - }, - { - "value": "784", - "newvalue": "Point to point fibrechannel" - }, - { - "value": "785", - "newvalue": "Fibrechannel arbitrated loop" - }, - { - "value": "786", - "newvalue": "Fibrechannel public loop" - }, - { - "value": "787", - "newvalue": "Fibrechannel fabric" - }, - { - "value": "800", - "newvalue": "Magic type ident for TR" - }, - { - "value": "801", - "newvalue": "IEEE 802.11" - }, - { - "value": "802", - "newvalue": "IEEE 802.11 + Prism2 header" - }, - { - "value": "803", - "newvalue": "IEEE 802.11 + radiotap header" - }, - { - "value": "804", - "newvalue": "ARPHRD_IEEE802154" - }, - { - "value": "805", - "newvalue": "IEEE 802.15.4 network monitor" - }, - { - "value": "820", - "newvalue": "PhoNet media type" - }, - { - "value": "821", - "newvalue": "PhoNet pipe header" - }, - { - "value": "822", - "newvalue": "CAIF media type" - }, - { - "value": "823", - "newvalue": "GRE over IPv6" - }, - { - "value": "824", - "newvalue": "Netlink header" - }, - { - "value": "825", - "newvalue": "IPv6 over LoWPAN" - }, - { - "value": "826", - "newvalue": "Vsock monitor header" - } - ] - }, - { - "uuid": "5488e5d78d704b78aee60c60414ce0c3", - "name": "zabbix.host.available", - "mappings": [ - { - "value": "0", - "newvalue": "not available" - }, - { - "value": "1", - "newvalue": "available" - }, - { - "value": "2", - "newvalue": "unknown" - } - ] - }, - { - "uuid": "64faba3a883241a88da8833970ac3ab0", - "name": "Zabbix agent ping status", - "mappings": [ - { - "value": "1", - "newvalue": "Up" - } - ] - } - ] - } - ], - "triggers": [ - { - "uuid": "ae5269e17d434927bfd6edc09a9a1f4d", - "expression": "last(/Linux/proc.num)/last(/Linux/kernel.maxproc)*100>80", - "name": "Getting closer to process limit", - "event_name": "Getting closer to process limit (over 80% used)", - "opdata": "{ITEM.LASTVALUE1} active, {ITEM.LASTVALUE2} limit.", - "priority": "WARNING", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - }, - { - "uuid": "f49fc01c5ac945d59455563bdbcc6469", - "expression": "max(/Linux/system.swap.size[,pfree],5m)<{$SWAP.PFREE.MIN.WARN} and last(/Linux/system.swap.size[,total])>0", - "name": "High swap space usage", - "event_name": "High swap space usage (less than {$SWAP.PFREE.MIN.WARN}% free)", - "opdata": "Free: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}", - "priority": "WARNING", - "description": "If there is no swap configured, this trigger is ignored.", - "dependencies": [ - { - "name": "High memory utilization", - "expression": "min(/Linux/vm.memory.utilization,5m)>{$MEMORY.UTIL.MAX}" - }, - { - "name": "Lack of available memory", - "expression": "max(/Linux/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux/vm.memory.size[total])>0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "capacity" - } - ] - }, - { - "uuid": "686470cef97f48f6b017e9fc7a078afe", - "expression": "max(/Linux/vm.memory.size[available],5m)<{$MEMORY.AVAILABLE.MIN} and last(/Linux/vm.memory.size[total])>0", - "name": "Lack of available memory", - "event_name": "Lack of available memory (<{$MEMORY.AVAILABLE.MIN} of {ITEM.VALUE2})", - "opdata": "Available: {ITEM.LASTVALUE1}, total: {ITEM.LASTVALUE2}", - "priority": "AVERAGE", - "tags": [ - { - "tag": "scope", - "value": "capacity" - }, - { - "tag": "scope", - "value": "performance" - } - ] - }, - { - "uuid": "695f0c352377409d95aca3fe76d1cae2", - "expression": "min(/Linux/system.cpu.load[all,avg1],5m)/last(/Linux/system.cpu.num)>{$LOAD_AVG_PER_CPU.MAX.WARN}\nand last(/Linux/system.cpu.load[all,avg5])>0\nand last(/Linux/system.cpu.load[all,avg15])>0", - "name": "Load average is too high", - "event_name": "Load average is too high (per CPU load over {$LOAD_AVG_PER_CPU.MAX.WARN} for 5m)", - "opdata": "Load averages(1m 5m 15m): ({ITEM.LASTVALUE1} {ITEM.LASTVALUE3} {ITEM.LASTVALUE4}), # of CPUs: {ITEM.LASTVALUE2}", - "priority": "AVERAGE", - "description": "The load average per CPU is too high. The system may be slow to respond.", - "tags": [ - { - "tag": "scope", - "value": "capacity" - }, - { - "tag": "scope", - "value": "performance" - } - ] - } - ], - "graphs": [ - { - "uuid": "4a72646168d545c398c92e09c975a966", - "name": "CPU jumps", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "system.cpu.switches" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "system.cpu.intr" - } - } - ] - }, - { - "uuid": "f217c30162b24c9190785fad1ec83b73", - "name": "CPU usage", - "type": "STACKED", - "ymin_type_1": "FIXED", - "ymax_type_1": "FIXED", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "system.cpu.util[,system]" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "system.cpu.util[,user]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Linux", - "key": "system.cpu.util[,nice]" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "Linux", - "key": "system.cpu.util[,iowait]" - } - }, - { - "sortorder": "4", - "color": "FC6EA3", - "item": { - "host": "Linux", - "key": "system.cpu.util[,steal]" - } - }, - { - "sortorder": "5", - "color": "6C59DC", - "item": { - "host": "Linux", - "key": "system.cpu.util[,interrupt]" - } - }, - { - "sortorder": "6", - "color": "AC8C14", - "item": { - "host": "Linux", - "key": "system.cpu.util[,softirq]" - } - }, - { - "sortorder": "7", - "color": "611F27", - "item": { - "host": "Linux", - "key": "system.cpu.util[,guest]" - } - }, - { - "sortorder": "8", - "color": "F230E0", - "item": { - "host": "Linux", - "key": "system.cpu.util[,guest_nice]" - } - } - ] - }, - { - "uuid": "668ae470ea33444bb40e3b83b97659c3", - "name": "CPU utilization", - "ymin_type_1": "FIXED", - "ymax_type_1": "FIXED", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "system.cpu.util" - } - } - ] - }, - { - "uuid": "f260a63bc3b04c3b80b47f83bb05ed9c", - "name": "Memory usage", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "drawtype": "BOLD_LINE", - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "vm.memory.size[total]" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "vm.memory.size[available]" - } - } - ] - }, - { - "uuid": "bac7a8fb7e014696b54d262bf40e5b12", - "name": "Memory utilization", - "ymin_type_1": "FIXED", - "ymax_type_1": "FIXED", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "vm.memory.utilization" - } - } - ] - }, - { - "uuid": "fa49531c9c3d4087b2205bed6ed0469f", - "name": "Processes", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "proc.num" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "proc.num[,,run]" - } - } - ] - }, - { - "uuid": "1ca6e2d883114853bd402110c3fd211e", - "name": "Swap usage", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "system.swap.size[,free]" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "system.swap.size[,total]" - } - } - ] - }, - { - "uuid": "1b8cc9470a5040d79090a3e5dfcb0a76", - "name": "System load", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Linux", - "key": "system.cpu.load[all,avg1]" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Linux", - "key": "system.cpu.load[all,avg5]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Linux", - "key": "system.cpu.load[all,avg15]" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "yaxisside": "RIGHT", - "item": { - "host": "Linux", - "key": "system.cpu.num" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/lxd-container-zabbix-template.json b/zabbix-templates/lxd-container-zabbix-template.json deleted file mode 100644 index 977569b..0000000 --- a/zabbix-templates/lxd-container-zabbix-template.json +++ /dev/null @@ -1,1161 +0,0 @@ -{ - "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]" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/mysql-mariadb-zabbix-template.json b/zabbix-templates/mysql-mariadb-zabbix-template.json deleted file mode 100644 index e380e5e..0000000 --- a/zabbix-templates/mysql-mariadb-zabbix-template.json +++ /dev/null @@ -1,2633 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "748ad4d098d447d492bb935c907f652f", - "name": "Templates/Databases" - } - ], - "templates": [ - { - "uuid": "f255e3fc32124b55b2a17ef3c961e5f5", - "template": "MariaDB", - "name": "MariaDB", - "description": "Requirements for template operation:\n1.Install Zabbix agent and MySQL client.\n2.Copy template_db_mysql.conf into folder with Zabbix agent configuration (/etc/zabbix/zabbix_agentd.d/ by default). Don't forget to restart zabbix-agent.\n3.Create MySQL user for monitoring. For example:\nCREATE USER 'zbx_monitor'@'%' IDENTIFIED BY '';\nGRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%';\nFor more information read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/grant.html , please. \n4.Create .my.cnf in home directory of Zabbix agent for Linux (/var/lib/zabbix by default) or my.cnf in c:\\ for Windows. For example:\n[client]\nuser='zbx_monitor'\npassword=''\n\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384189-discussion-thread-for-official-zabbix-template-db-mysql\n\nTemplate tooling version used: 0.42", - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates/Databases" - } - ], - "items": [ - { - "uuid": "b463e01655bf4dec81d5208f7a75766b", - "name": "MySQL: Aborted clients per second", - "type": "DEPENDENT", - "key": "mysql.aborted_clients.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of connections that were aborted because the client died without closing the connection properly.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Aborted_clients']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "d33a03e48f6d45dca04a505bab07a860", - "name": "MySQL: Aborted connections per second", - "type": "DEPENDENT", - "key": "mysql.aborted_connects.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of failed attempts to connect to the MySQL server.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Aborted_connects']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ], - "triggers": [ - { - "uuid": "e51c9ee3061c4e3889be1666afe6959d", - "expression": "min(/MariaDB/mysql.aborted_connects.rate,5m)>{$MYSQL.ABORTED_CONN.MAX.WARN}", - "name": "MySQL: Server has aborted connections", - "event_name": "MySQL: Server has aborted connections (over {$MYSQL.ABORTED_CONN.MAX.WARN} for 5m)", - "priority": "AVERAGE", - "description": "The number of failed attempts to connect to the MySQL server is more than {$MYSQL.ABORTED_CONN.MAX.WARN} in the last 5 minutes.", - "dependencies": [ - { - "name": "MySQL: Refused connections", - "expression": "last(/MariaDB/mysql.connection_errors_max_connections.rate)>0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "75b9c78d76334927a3fc2a4d1322ecc2", - "name": "MySQL: Binlog cache disk use", - "type": "DEPENDENT", - "key": "mysql.binlog_cache_disk_use", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of transactions that used a temporary disk cache because they could not fit in the regular binary log cache, being larger than binlog_cache_size.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Binlog_cache_disk_use']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "cache" - } - ] - }, - { - "uuid": "9a447424aca84124abdfa389865126d4", - "name": "MySQL: Buffer pool efficiency", - "type": "CALCULATED", - "key": "mysql.buffer_pool_efficiency", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "params": "last(//mysql.innodb_buffer_pool_reads) / \n( last(//mysql.innodb_buffer_pool_read_requests) + \n( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * \n( last(//mysql.innodb_buffer_pool_read_requests) > 0 )", - "description": "The item shows how effectively the buffer pool is serving reads.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "9aca02e86e744f43ab48e8ca9453cf77", - "name": "MySQL: Buffer pool utilization", - "type": "CALCULATED", - "key": "mysql.buffer_pool_utilization", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "params": "( last(//mysql.innodb_buffer_pool_pages_total) - \nlast(//mysql.innodb_buffer_pool_pages_free) ) / \n( last(//mysql.innodb_buffer_pool_pages_total) + \n( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * \n( last(//mysql.innodb_buffer_pool_pages_total) > 0 )", - "description": "Ratio of used to total pages in the buffer pool.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ], - "triggers": [ - { - "uuid": "0e8ea91d72a64507aaadf9ea5efa6412", - "expression": "max(/MariaDB/mysql.buffer_pool_utilization,5m)<{$MYSQL.BUFF_UTIL.MIN.WARN}", - "name": "MySQL: Buffer pool utilization is too low", - "event_name": "MySQL: Buffer pool utilization is too low (less than {$MYSQL.BUFF_UTIL.MIN.WARN}% for 5m)", - "priority": "WARNING", - "description": "The buffer pool utilization is less than {$MYSQL.BUFF_UTIL.MIN.WARN}% in the last 5 minutes. This means that there is a lot of unused RAM allocated for the buffer pool, which you can easily reallocate at the moment.", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "56512a1e89d34826ad261ab27119e80d", - "name": "MySQL: Bytes received", - "type": "DEPENDENT", - "key": "mysql.bytes_received.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "Bps", - "description": "Number of bytes received from all clients.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Bytes_received']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "c4cea16e3dbe4d328d9a50e113f3b904", - "name": "MySQL: Bytes sent", - "type": "DEPENDENT", - "key": "mysql.bytes_sent.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "Bps", - "description": "Number of bytes sent to all clients.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Bytes_sent']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "24ab8f0bd32a45f591c676ef839876df", - "name": "MySQL: Command Delete per second", - "type": "DEPENDENT", - "key": "mysql.com_delete.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The Com_delete counter variable indicates the number of times the delete statement has been executed.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Com_delete']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "operations" - } - ] - }, - { - "uuid": "e48c67c893e5494fb00ea31222bd2caf", - "name": "MySQL: Command Insert per second", - "type": "DEPENDENT", - "key": "mysql.com_insert.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The Com_insert counter variable indicates the number of times the insert statement has been executed.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Com_insert']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "operations" - } - ] - }, - { - "uuid": "718c3af61f2645e8ab7d3496d6639c79", - "name": "MySQL: Command Select per second", - "type": "DEPENDENT", - "key": "mysql.com_select.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The Com_select counter variable indicates the number of times the select statement has been executed.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Com_select']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "operations" - } - ] - }, - { - "uuid": "e2c3ea26dd34472c9e5f0e48a67da6dd", - "name": "MySQL: Command Update per second", - "type": "DEPENDENT", - "key": "mysql.com_update.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The Com_update counter variable indicates the number of times the update statement has been executed.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Com_update']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "operations" - } - ] - }, - { - "uuid": "bcf8a21aacc54a79a958604b278f9617", - "name": "MySQL: Connections per second", - "type": "DEPENDENT", - "key": "mysql.connections.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of connection attempts (successful or not) to the MySQL server.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connections']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "dc963a1250ab453cb090af0154d745c3", - "name": "MySQL: Connection errors accept per second", - "type": "DEPENDENT", - "key": "mysql.connection_errors_accept.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of errors that occurred during calls to accept() on the listening port.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connection_errors_accept']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "4cff4caf382f4f00b534651212132bd2", - "name": "MySQL: Connection errors internal per second", - "type": "DEPENDENT", - "key": "mysql.connection_errors_internal.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of refused connections due to internal server errors, for example, out of memory errors, or failed thread starts.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connection_errors_internal']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "3cbc55fc7b764a61baceb11e98fd454c", - "name": "MySQL: Connection errors max connections per second", - "type": "DEPENDENT", - "key": "mysql.connection_errors_max_connections.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of refused connections due to the max_connections limit being reached.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connection_errors_max_connections']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ], - "triggers": [ - { - "uuid": "2ff2d0f399df4cb08b7196d3a4690567", - "expression": "last(/MariaDB/mysql.connection_errors_max_connections.rate)>0", - "name": "MySQL: Refused connections", - "event_name": "MySQL: Refused connections (max_connections limit reached)", - "priority": "AVERAGE", - "description": "Number of refused connections due to the max_connections limit being reached.", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "e577b4b6c553401bbb831b7278dbbcb7", - "name": "MySQL: Connection errors peer address per second", - "type": "DEPENDENT", - "key": "mysql.connection_errors_peer_address.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of errors while searching for the connecting client IP address.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connection_errors_peer_address']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "228aaf5333ce4958aa3a07e0898add63", - "name": "MySQL: Connection errors select per second", - "type": "DEPENDENT", - "key": "mysql.connection_errors_select.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of errors during calls to select() or poll() on the listening port. The client would not necessarily have been rejected in these cases.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connection_errors_select']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "a7632124b2b648bfa80a2e8a0381f4d2", - "name": "MySQL: Connection errors tcpwrap per second", - "type": "DEPENDENT", - "key": "mysql.connection_errors_tcpwrap.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of connections the libwrap library has refused.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Connection_errors_tcpwrap']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "52335a039571454ebaccc9ab103200a3", - "name": "MySQL: Created tmp tables on disk per second", - "type": "DEPENDENT", - "key": "mysql.created_tmp_disk_tables.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of internal on-disk temporary tables created by the server while executing statements.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Created_tmp_disk_tables']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "component", - "value": "tables" - } - ], - "triggers": [ - { - "uuid": "1b8761292e89476e91834f8e567a1dbe", - "expression": "min(/MariaDB/mysql.created_tmp_disk_tables.rate,5m)>{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}", - "name": "MySQL: Number of on-disk temporary tables created per second is high", - "event_name": "MySQL: Number of on-disk temporary tables created per second is high (over {$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN} for 5m)", - "priority": "WARNING", - "description": "Possibly the application using the database is in need of query optimization.", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "d1dd183666d44010a5054f2e1cc328de", - "name": "MySQL: Created tmp files on disk per second", - "type": "DEPENDENT", - "key": "mysql.created_tmp_files.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "How many temporary files mysqld has created.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Created_tmp_files']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "storage" - } - ], - "triggers": [ - { - "uuid": "9845d8dc676f4702ae34b626f39d21ac", - "expression": "min(/MariaDB/mysql.created_tmp_files.rate,5m)>{$MYSQL.CREATED_TMP_FILES.MAX.WARN}", - "name": "MySQL: Number of temporary files created per second is high", - "event_name": "MySQL: Number of temporary files created per second is high (over {$MYSQL.CREATED_TMP_FILES.MAX.WARN} for 5m)", - "priority": "WARNING", - "description": "Possibly the application using the database is in need of query optimization.", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "c9a94c3145a643ef8ceec33f63b85ae9", - "name": "MySQL: Created tmp tables on memory per second", - "type": "DEPENDENT", - "key": "mysql.created_tmp_tables.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of internal temporary tables created by the server while executing statements.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Created_tmp_tables']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - }, - { - "tag": "component", - "value": "tables" - } - ], - "triggers": [ - { - "uuid": "c647a51864e04bc69a1f610b1dec56fe", - "expression": "min(/MariaDB/mysql.created_tmp_tables.rate,5m)>{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}", - "name": "MySQL: Number of internal temporary tables created per second is high", - "event_name": "MySQL: Number of internal temporary tables created per second is high (over {$MYSQL.CREATED_TMP_TABLES.MAX.WARN} for 5m)", - "priority": "WARNING", - "description": "Possibly the application using the database is in need of query optimization.", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "2ba81b425bde4ba5b3f7d00a6c922ed9", - "name": "MySQL: Get status variables", - "type": "ZABBIX_ACTIVE", - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", - "history": "0", - "trends": "0", - "value_type": "TEXT", - "description": "The item gets server global status information.", - "tags": [ - { - "tag": "component", - "value": "raw" - } - ] - }, - { - "uuid": "a9b965a07b504fa1b4e90acae0156221", - "name": "MySQL: InnoDB buffer pool pages free", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_pages_free", - "delay": "0", - "history": "7d", - "description": "The total size of the InnoDB buffer pool, in pages.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_pages_free']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "efb2450fe30c4ec78b954a35595b7ac7", - "name": "MySQL: InnoDB buffer pool pages total", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_pages_total", - "delay": "0", - "history": "7d", - "description": "The total size of the InnoDB buffer pool, in pages.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_pages_total']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "7738a4480f69427a96d46a9ca5b38d77", - "name": "MySQL: InnoDB buffer pool reads", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_reads", - "delay": "0", - "history": "7d", - "description": "Number of logical reads that InnoDB could not satisfy from the buffer pool, and had to read directly from the disk.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_reads']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "1704fe0bf8de4882a6a16ebd75c4c3bf", - "name": "MySQL: InnoDB buffer pool reads per second", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_reads.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of logical reads per second that InnoDB could not satisfy from the buffer pool, and had to read directly from the disk.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_reads']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "598dcdb7eeec42c78484be70c814cd8a", - "name": "MySQL: InnoDB buffer pool read requests", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_read_requests", - "delay": "0", - "history": "7d", - "description": "Number of logical read requests.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_read_requests']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "3ed432f4e0c949debaed9d60c5d13810", - "name": "MySQL: InnoDB buffer pool read requests per second", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_read_requests.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of logical read requests per second.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_read_requests']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "61db0feae0b440c087177f4312eb6b7a", - "name": "MySQL: Innodb buffer pool wait free", - "type": "DEPENDENT", - "key": "mysql.innodb_buffer_pool_wait_free", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of times InnoDB waited for a free page before reading or creating a page. Normally, writes to the InnoDB buffer pool happen in the background. When no clean pages are available, dirty pages are flushed first in order to free some up. This counts the numbers of wait for this operation to finish. If this value is not small, look at the increasing innodb_buffer_pool_size.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_buffer_pool_wait_free']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "e5413d85449e4baea683c6365808cc17", - "name": "MySQL: Calculated value of innodb_log_file_size", - "type": "CALCULATED", - "key": "mysql.innodb_log_file_size", - "history": "7d", - "value_type": "FLOAT", - "params": "(last(//mysql.innodb_os_log_written) - last(//mysql.innodb_os_log_written,#1:now-1h)) / {$MYSQL.INNODB_LOG_FILES}", - "description": "Calculated by (innodb_os_log_written-innodb_os_log_written(time shift -1h))/{$MYSQL.INNODB_LOG_FILES} value of the innodb_log_file_size. Innodb_log_file_size is the size in bytes of the each InnoDB redo log file in the log group. The combined size can be no more than 512GB. Larger values mean less disk I/O due to less flushing checkpoint activity, but also slower recovery from a crash.", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "2eacd8c07f7148acaaa9b8f8602720ae", - "name": "MySQL: Innodb number open files", - "type": "DEPENDENT", - "key": "mysql.innodb_num_open_files", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of open files held by InnoDB. InnoDB only.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_num_open_files']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "29d3513668ad4bdea28d947d2f983dd2", - "name": "MySQL: Innodb log written", - "type": "DEPENDENT", - "key": "mysql.innodb_os_log_written", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "B", - "description": "Number of bytes written to the InnoDB log.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_os_log_written']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "3811018fdfaf4d92a5b8ff5d631d0047", - "name": "MySQL: InnoDB row lock time", - "type": "DEPENDENT", - "key": "mysql.innodb_row_lock_time", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "The total time spent in acquiring row locks for InnoDB tables, in milliseconds.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_row_lock_time']/field[@name='Value']/text()" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.001" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "tables" - } - ] - }, - { - "uuid": "579c1ad7680349a3b6a25dd12322fc14", - "name": "MySQL: InnoDB row lock time max", - "type": "DEPENDENT", - "key": "mysql.innodb_row_lock_time_max", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "The maximum time to acquire a row lock for InnoDB tables, in milliseconds.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_row_lock_time_max']/field[@name='Value']/text()" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.001" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "tables" - } - ] - }, - { - "uuid": "a4618dd9ed1d4ff19f34bc82f41dbbbb", - "name": "MySQL: InnoDB row lock waits", - "type": "DEPENDENT", - "key": "mysql.innodb_row_lock_waits", - "delay": "0", - "history": "7d", - "description": "Number of times operations on InnoDB tables had to wait for a row lock.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Innodb_row_lock_waits']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "innodb" - }, - { - "tag": "component", - "value": "tables" - } - ] - }, - { - "uuid": "e207dc3c0fe84928a36e643594d8cee5", - "name": "MySQL: Max used connections", - "type": "DEPENDENT", - "key": "mysql.max_used_connections", - "delay": "0", - "history": "7d", - "description": "The maximum number of connections that have been in use simultaneously since the server start.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Max_used_connections']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "3dd5ffb7c1cc45a487c5c7cabfa90ca6", - "name": "MySQL: Open tables", - "type": "DEPENDENT", - "key": "mysql.open_tables", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of tables that are open.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Open_tables']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "tables" - } - ] - }, - { - "uuid": "fe572969a6754248b10a35a5c0afedf3", - "name": "MySQL: Open table definitions", - "type": "DEPENDENT", - "key": "mysql.open_table_definitions", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of cached table definitions.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Open_table_definitions']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "tables" - } - ] - }, - { - "uuid": "41cd6c8c535948f3bde6324e0912f1a8", - "name": "MySQL: Status", - "type": "ZABBIX_ACTIVE", - "key": "mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", - "history": "7d", - "valuemap": { - "name": "Service state" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return value.indexOf('is alive') !== -1 ? 1 : 0;" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "10m" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "application" - }, - { - "tag": "component", - "value": "health" - } - ], - "triggers": [ - { - "uuid": "e78f07e3e507461f8fe33a31b1bc4eb9", - "expression": "last(/MariaDB/mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"])=0", - "name": "MySQL: Service is down", - "priority": "HIGH", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "c11b8c8ec3e843cea63f6cc1d8309ccd", - "name": "MySQL: Queries per second", - "type": "DEPENDENT", - "key": "mysql.queries.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of statements executed by the server. This variable includes statements executed within stored programs, unlike the Questions variable.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Queries']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "queries" - } - ] - }, - { - "uuid": "cd7c5c4e262f4a73975d46d06ed903f9", - "name": "MySQL: Questions per second", - "type": "DEPENDENT", - "key": "mysql.questions.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries variable.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Questions']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "queries" - } - ] - }, - { - "uuid": "a1cfc616f23648e9946f408c7146df0a", - "name": "MySQL: Slow queries per second", - "type": "DEPENDENT", - "key": "mysql.slow_queries.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of queries that have taken more than long_query_time seconds.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Slow_queries']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "queries" - } - ], - "triggers": [ - { - "uuid": "113509b7a7b54a108c1c63346a52bbf2", - "expression": "min(/MariaDB/mysql.slow_queries.rate,5m)>{$MYSQL.SLOW_QUERIES.MAX.WARN}", - "name": "MySQL: Server has slow queries", - "event_name": "MySQL: Server has slow queries (over {$MYSQL.SLOW_QUERIES.MAX.WARN} for 5m)", - "priority": "WARNING", - "description": "The number of slow queries is more than {$MYSQL.SLOW_QUERIES.MAX.WARN} in the last 5 minutes.", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "a9ce1d75a97d4740876fad7b5d569211", - "name": "MySQL: Threads cached", - "type": "DEPENDENT", - "key": "mysql.threads_cached", - "delay": "0", - "history": "7d", - "description": "Number of threads in the thread cache.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Threads_cached']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "threads" - } - ] - }, - { - "uuid": "a0079f5ffbdc40cc89b35a8b6170c32b", - "name": "MySQL: Threads connected", - "type": "DEPENDENT", - "key": "mysql.threads_connected", - "delay": "0", - "history": "7d", - "description": "Number of currently open connections.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Threads_connected']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "threads" - } - ] - }, - { - "uuid": "06976fcb42ab4a33b0056a864ecd31e7", - "name": "MySQL: Threads created per second", - "type": "DEPENDENT", - "key": "mysql.threads_created.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of threads created to handle connections. If Threads_created is big, you may want to increase the thread_cache_size value. The cache miss rate can be calculated as Threads_created/Connections.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Threads_created']/field[@name='Value']/text()" - ] - }, - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "threads" - } - ] - }, - { - "uuid": "255c00a984ba462e84ba46a7430f21c9", - "name": "MySQL: Threads running", - "type": "DEPENDENT", - "key": "mysql.threads_running", - "delay": "0", - "history": "7d", - "description": "Number of threads which are not sleeping.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Threads_running']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "threads" - } - ] - }, - { - "uuid": "6ffa704603014f0f9f765590955fb01c", - "name": "MySQL: Uptime", - "type": "DEPENDENT", - "key": "mysql.uptime", - "delay": "0", - "history": "7d", - "units": "uptime", - "description": "The amount of seconds that the server has been up.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Uptime']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "application" - } - ], - "triggers": [ - { - "uuid": "d3c80c770355464fb5a6be0357d0edca", - "expression": "nodata(/MariaDB/mysql.uptime,30m)=1", - "name": "MySQL: Failed to fetch info data", - "event_name": "MySQL: Failed to fetch info data (or no data for 30m)", - "priority": "INFO", - "description": "Zabbix has not received data for items for the last 30 minutes.", - "dependencies": [ - { - "name": "MySQL: Service is down", - "expression": "last(/MariaDB/mysql.ping[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"])=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - }, - { - "uuid": "f02f51c764934cf394c5ad3f9c4e70d2", - "expression": "last(/MariaDB/mysql.uptime)<10m", - "name": "MySQL: Service has been restarted", - "event_name": "MySQL: Service has been restarted (uptime < 10m)", - "priority": "INFO", - "description": "MySQL uptime is less than 10 minutes.", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "a5d0f152c3ef4e069c3d5a6a5a9470fe", - "name": "MySQL: Version", - "type": "ZABBIX_ACTIVE", - "key": "mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", - "delay": "15m", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "preprocessing": [ - { - "type": "REGEX", - "parameters": [ - "(Server version)\\s+(.+)", - "\\2" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "application" - } - ], - "triggers": [ - { - "uuid": "7eab3a7337904ad1b2061d209371543b", - "expression": "last(/MariaDB/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"],#1)<>last(/MariaDB/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"],#2) and length(last(/MariaDB/mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]))>0", - "name": "MySQL: Version has changed", - "event_name": "MySQL: Version has changed (new version value received: {ITEM.VALUE})", - "priority": "INFO", - "description": "MySQL version has changed. Ack to close.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - } - ], - "discovery_rules": [ - { - "uuid": "8ceb226f000d48f099ee6e128ad551b5", - "name": "Database discovery", - "type": "ZABBIX_ACTIVE", - "key": "mysql.db.discovery[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", - "delay": "1h", - "filter": { - "conditions": [ - { - "macro": "{#DBNAME}", - "value": "information_schema", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "A" - } - ] - }, - "description": "Scanning databases in DBMS.", - "item_prototypes": [ - { - "uuid": "dda45077011d4f8fa5c25b1f351179ca", - "name": "MySQL: Size of database {#DBNAME}", - "key": "mysql.dbsize[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#DBNAME}\"]", - "delay": "5m", - "history": "7d", - "value_type": "FLOAT", - "units": "MB", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "9.5367431640625E-7" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "storage" - }, - { - "tag": "database", - "value": "{#DBNAME}" - } - ] - } - ], - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(value.split(\"\\n\").map(function (name) {\n return ({\"{#DBNAME}\": name});\n}));" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ] - }, - { - "uuid": "bc28468760e14d069ef7b47858846a50", - "name": "MariaDB discovery", - "type": "DEPENDENT", - "key": "mysql.extra_metric.discovery", - "delay": "0", - "description": "Additional metrics if MariaDB is used.", - "item_prototypes": [ - { - "uuid": "7743cdbaf71c491189ac1a927409e998", - "name": "MySQL: Binlog commits", - "type": "DEPENDENT", - "key": "mysql.binlog_commits[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Total number of transactions committed to the binary log.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Binlog_commits']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "transactions" - } - ] - }, - { - "uuid": "c897f8f0fb1c4e409dd95305fd221e01", - "name": "MySQL: Binlog group commits", - "type": "DEPENDENT", - "key": "mysql.binlog_group_commits[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Total number of group commits done to the binary log.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Binlog_group_commits']/field[@name='Value']/text()" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "transactions" - } - ] - }, - { - "uuid": "749e72ebd1014f7faee352e23ac3dfdd", - "name": "MySQL: Master GTID wait count", - "type": "DEPENDENT", - "key": "mysql.master_gtid_wait_count[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "The number of times MASTER_GTID_WAIT called.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Master_gtid_wait_count']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "transactions" - } - ] - }, - { - "uuid": "4a4537b0db5b43119af910d0ba421035", - "name": "MySQL: Master GTID wait timeouts", - "type": "DEPENDENT", - "key": "mysql.master_gtid_wait_timeouts[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Number of timeouts occurring in MASTER_GTID_WAIT.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Master_gtid_wait_timeouts']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "transactions" - } - ] - }, - { - "uuid": "c1e95abc88cf486a9226bf760254f797", - "name": "MySQL: Master GTID wait time", - "type": "DEPENDENT", - "key": "mysql.master_gtid_wait_time[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "Total number of time spent in MASTER_GTID_WAIT.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Master_gtid_wait_time']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.get_status_variables[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "transactions" - } - ] - } - ], - "master_item": { - "key": "mysql.version[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(value.search('MariaDB')>-1 ? [{'{#SINGLETON}': ''}] : []);" - ] - } - ] - }, - { - "uuid": "aed60b7ae3794d0ba25ad82da12b8966", - "name": "Replication discovery", - "type": "ZABBIX_ACTIVE", - "key": "mysql.replication.discovery[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\"]", - "delay": "1h", - "description": "If \"show slave status\" returns Master_Host, \"Replication: *\" items are created.", - "item_prototypes": [ - { - "uuid": "48555d71074f4cd4a61dca6187c8b29a", - "name": "MySQL: Replication Seconds Behind Master {#MASTERHOST}", - "type": "DEPENDENT", - "key": "mysql.seconds_behind_master[\"{#MASTERHOST}\"]", - "delay": "0", - "history": "7d", - "units": "s", - "description": "The number of seconds that the slave SQL thread is behind processing the master binary log.\nA high number (or an increasing one) can indicate that the slave is unable to handle events\nfrom the master in a timely fashion.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row/field[@name='Seconds_Behind_Master']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - }, - { - "type": "NOT_MATCHES_REGEX", - "parameters": [ - "null" - ], - "error_handler": "CUSTOM_ERROR", - "error_handler_params": "Replication is not performed." - } - ], - "master_item": { - "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ], - "trigger_prototypes": [ - { - "uuid": "a5c91da088414d279f5ea3cd59093ce9", - "expression": "min(/MariaDB/mysql.seconds_behind_master[\"{#MASTERHOST}\"],5m)>{$MYSQL.REPL_LAG.MAX.WARN}", - "name": "MySQL: Replication lag is too high", - "event_name": "MySQL: Replication lag is too high (over {$MYSQL.REPL_LAG.MAX.WARN} for 5m)", - "priority": "WARNING", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "1c075f4785604d92a33a868e213070d8", - "name": "MySQL: Replication Slave IO Running {#MASTERHOST}", - "type": "DEPENDENT", - "key": "mysql.slave_io_running[\"{#MASTERHOST}\"]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Whether the I/O thread for reading the master's binary log is running.\nNormally, you want this to be Yes unless you have not yet started replication or have\nexplicitly stopped it with STOP SLAVE.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row/field[@name='Slave_IO_Running']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "master_item": { - "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ], - "trigger_prototypes": [ - { - "uuid": "8ee45932311443cb906306b1d2c99b19", - "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"ne\",\"Yes\")=1", - "name": "MySQL: The slave I/O thread is not connected to a replication master", - "priority": "WARNING", - "dependencies": [ - { - "name": "MySQL: The slave I/O thread is not running", - "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - }, - { - "uuid": "4c8ca45f26254d9a9a1c9248f1fa1537", - "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1", - "name": "MySQL: The slave I/O thread is not running", - "priority": "AVERAGE", - "description": "Whether the I/O thread for reading the master's binary log is running.", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "967c6fd13cc04562a9fea174bd90b8c4", - "name": "MySQL: Replication Slave SQL Running {#MASTERHOST}", - "type": "DEPENDENT", - "key": "mysql.slave_sql_running[\"{#MASTERHOST}\"]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Whether the SQL thread for executing events in the relay log is running.\nAs with the I/O thread, this should normally be Yes.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row/field[@name='Slave_SQL_Running']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "master_item": { - "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ], - "trigger_prototypes": [ - { - "uuid": "bd0d20c05e3b46b6a7c341e5d122208b", - "expression": "count(/MariaDB/mysql.slave_sql_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1", - "name": "MySQL: The SQL thread is not running", - "priority": "WARNING", - "description": "Whether the SQL thread for executing events in the relay log is running.", - "dependencies": [ - { - "name": "MySQL: The slave I/O thread is not running", - "expression": "count(/MariaDB/mysql.slave_io_running[\"{#MASTERHOST}\"],#1,\"eq\",\"No\")=1" - } - ], - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "27e807d840d4474484c2e1f896726b6b", - "name": "MySQL: Replication Slave SQL Running State {#MASTER_HOST}", - "type": "DEPENDENT", - "key": "mysql.slave_sql_running_state[\"{#MASTER_HOST}\"]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "TEXT", - "description": "This shows the state of the SQL driver threads.", - "preprocessing": [ - { - "type": "XMLPATH", - "parameters": [ - "/resultset/row[field/text()='Slave_SQL_Running_State']/field[@name='Value']/text()" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "6h" - ] - } - ], - "master_item": { - "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "d87c7c03e5884a43912f60ad91c3b46f", - "name": "MySQL: Replication Slave status {#MASTERHOST}", - "key": "mysql.slave_status[\"{$MYSQL.HOST}\",\"{$MYSQL.PORT}\",\"{#MASTERHOST}\"]", - "history": "0", - "trends": "0", - "value_type": "TEXT", - "description": "The item gets status information on the essential parameters of the slave threads.", - "tags": [ - { - "tag": "component", - "value": "raw" - } - ] - } - ], - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "var matches = value.match(/Master_Host.*>(.*)<.*/);\nif (matches) {\n return JSON.stringify([{\"{#MASTERHOST}\": matches[1]}]);\n}\n\nreturn '[]';" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ] - } - ], - "tags": [ - { - "tag": "class", - "value": "database" - }, - { - "tag": "target", - "value": "mysql" - } - ], - "macros": [ - { - "macro": "{$MYSQL.ABORTED_CONN.MAX.WARN}", - "value": "3", - "description": "The number of failed attempts to connect to the MySQL server for trigger expression." - }, - { - "macro": "{$MYSQL.BUFF_UTIL.MIN.WARN}", - "value": "50", - "description": "The minimum buffer pool utilization in percentage for trigger expression." - }, - { - "macro": "{$MYSQL.CREATED_TMP_DISK_TABLES.MAX.WARN}", - "value": "10", - "description": "The maximum number of created tmp tables on a disk per second for trigger expressions." - }, - { - "macro": "{$MYSQL.CREATED_TMP_FILES.MAX.WARN}", - "value": "10", - "description": "The maximum number of created tmp files on a disk per second for trigger expressions." - }, - { - "macro": "{$MYSQL.CREATED_TMP_TABLES.MAX.WARN}", - "value": "30", - "description": "The maximum number of created tmp tables in memory per second for trigger expressions." - }, - { - "macro": "{$MYSQL.HOST}", - "value": "127.0.0.1", - "description": "Hostname or IP of MySQL host or container." - }, - { - "macro": "{$MYSQL.INNODB_LOG_FILES}", - "value": "2", - "description": "Number of physical files in the InnoDB redo log for calculating innodb_log_file_size." - }, - { - "macro": "{$MYSQL.PORT}", - "value": "3306", - "description": "MySQL service port." - }, - { - "macro": "{$MYSQL.REPL_LAG.MAX.WARN}", - "value": "30m", - "description": "The lag of slave from master for trigger expression." - }, - { - "macro": "{$MYSQL.SLOW_QUERIES.MAX.WARN}", - "value": "3", - "description": "The number of slow queries for trigger expression." - } - ], - "dashboards": [ - { - "uuid": "ce2f9d7bb18e469f97e692baee02841d", - "name": "Database", - "display_period": "60", - "pages": [ - { - "widgets": [ - { - "type": "graph", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "MariaDB", - "name": "MySQL: Operations" - } - } - ] - }, - { - "type": "graph", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "MariaDB", - "name": "MySQL: Connections" - } - } - ] - }, - { - "type": "graph", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "MariaDB", - "name": "MySQL: InnoDB buffer pool" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "MariaDB", - "name": "MySQL: Queries" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "MariaDB", - "name": "MySQL: Bandwidth" - } - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "MariaDB", - "name": "MySQL: Threads" - } - } - ] - } - ] - } - ] - } - ], - "valuemaps": [ - { - "uuid": "4f2d7ca3c89246c6b691557447230031", - "name": "Service state", - "mappings": [ - { - "value": "0", - "newvalue": "Down" - }, - { - "value": "1", - "newvalue": "Up" - } - ] - } - ] - } - ], - "graphs": [ - { - "uuid": "6ebb6f300b4a4ada80908ce11cae9e95", - "name": "MySQL: Bandwidth", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "MariaDB", - "key": "mysql.bytes_received.rate" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "MariaDB", - "key": "mysql.bytes_sent.rate" - } - } - ] - }, - { - "uuid": "ea03bd4cc0f948f38ea638fe93f2ac69", - "name": "MySQL: Connections", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "MariaDB", - "key": "mysql.aborted_clients.rate" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "MariaDB", - "key": "mysql.aborted_connects.rate" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "MariaDB", - "key": "mysql.connections.rate" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "MariaDB", - "key": "mysql.max_used_connections" - } - } - ] - }, - { - "uuid": "ee3890503acf44c58fcfedf3c5008656", - "name": "MySQL: InnoDB buffer pool", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "MariaDB", - "key": "mysql.innodb_buffer_pool_pages_free" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "MariaDB", - "key": "mysql.innodb_buffer_pool_pages_total" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "MariaDB", - "key": "mysql.innodb_buffer_pool_read_requests.rate" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "MariaDB", - "key": "mysql.innodb_buffer_pool_reads.rate" - } - } - ] - }, - { - "uuid": "a6296310a0cf4ffcad7b119c5089ef1f", - "name": "MySQL: Operations", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "MariaDB", - "key": "mysql.com_delete.rate" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "MariaDB", - "key": "mysql.com_insert.rate" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "MariaDB", - "key": "mysql.com_select.rate" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "MariaDB", - "key": "mysql.com_update.rate" - } - } - ] - }, - { - "uuid": "ce723556c4974152a8eda029dbdad1bc", - "name": "MySQL: Queries", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "MariaDB", - "key": "mysql.queries.rate" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "MariaDB", - "key": "mysql.questions.rate" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "MariaDB", - "key": "mysql.slow_queries.rate" - } - } - ] - }, - { - "uuid": "e7653013a2d94596a89c93f5352220df", - "name": "MySQL: Threads", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "MariaDB", - "key": "mysql.threads_cached" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "MariaDB", - "key": "mysql.threads_connected" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "MariaDB", - "key": "mysql.threads_created.rate" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "MariaDB", - "key": "mysql.threads_running" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/nextcloud-zabbix-template.json b/zabbix-templates/nextcloud-zabbix-template.json deleted file mode 100644 index 61149e2..0000000 --- a/zabbix-templates/nextcloud-zabbix-template.json +++ /dev/null @@ -1,1926 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "a571c0d144b14fd4a87a9d9b2aa9fcd6", - "name": "Templates/Applications" - } - ], - "templates": [ - { - "uuid": "eddea30a51d94d56875d2dd78fab8120", - "template": "Nextcloud", - "name": "Nextcloud", - "description": "Nextcloud by RCA Systems", - "vendor": { - "name": "RCA Systems", - "version": "6.4-0.1" - }, - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates/Applications" - } - ], - "items": [ - { - "uuid": "b7dac9facd27414da6710117d61ba6af", - "name": "Database Full Version", - "type": "ZABBIX_ACTIVE", - "key": "db_full_version", - "delay": "1d", - "trends": "0", - "value_type": "TEXT" - }, - { - "uuid": "8bfc17be6a414c5ca715e46ebca038f8", - "name": "Number of Users - Active in Last Hour", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.activeUsers.last1hour]", - "delay": "1h", - "description": "Active users in the last hour" - }, - { - "uuid": "280c9c2ea30f4f97b1167e7d07cb7c0f", - "name": "Number of Users - Active in Last 5 Minutes", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]", - "delay": "5m", - "description": "Active users in the last 5 minutes" - }, - { - "uuid": "cae212b94b404cb1b816825839a6643e", - "name": "Number of Users - Active in Last 24 Hours", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.activeUsers.last24hours]", - "delay": "1d", - "description": "Active users in the last 24 hours" - }, - { - "uuid": "dd6ca0d93db54819811a7d07d5c06981", - "name": "Number of Shares", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]", - "delay": "5m", - "description": "Total number of shares" - }, - { - "uuid": "4f732d5bcc504eed92b6402cfd2e4e06", - "name": "Number of Group Shares", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]", - "delay": "5m", - "description": "Number of shares (group)" - }, - { - "uuid": "66db9033e1a34bfba2fd81575bab9544", - "name": "Number of Shares by Link", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]", - "delay": "5m", - "description": "Number of shares (link)" - }, - { - "uuid": "415b19a45d5c47d6835bc2dbdcfe4c51", - "name": "Number of Shares by Email", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]", - "delay": "5m", - "description": "Number of shares (mail)" - }, - { - "uuid": "c60c6369bda4415e924d49211f9e79f6", - "name": "Number of Shares in Talk Room", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]", - "delay": "5m", - "description": "Number of shares (room)" - }, - { - "uuid": "648dff6d0c594164b1fdd2635e3c1d9c", - "name": "Number of Shares with user", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]", - "delay": "5m", - "description": "Number of Shares (User)" - }, - { - "uuid": "169a4440fd86493e97dc15821a89458c", - "name": "Number of Files", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.storage.num_files]", - "delay": "3h", - "description": "Total number of files" - }, - { - "uuid": "2e7c235636db40dc9299854cfb8170c6", - "name": "Number of Storage Areas", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]", - "delay": "3h", - "description": "Number of Storages" - }, - { - "uuid": "4948262dfc4645a7bd0b71d2ba62477f", - "name": "Number of Storage Homes", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]", - "delay": "3h", - "description": "Number of Storages (Home)" - }, - { - "uuid": "4b1f627d3d404a839c15e68aa6fad8eb", - "name": "Number of Local Storage Areas", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]", - "delay": "3h", - "description": "Number of Storages (Local)" - }, - { - "uuid": "538fa8eb57d744b9a9bf021b69383d80", - "name": "Number of External Storage Areas", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]", - "delay": "3h", - "description": "Number of Storages (Other)" - }, - { - "uuid": "d15f720b1d1e49cbaaa8220f094cc5ec", - "name": "Number of Users - Total", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.storage.num_users]", - "delay": "3h" - }, - { - "uuid": "cca6fc0764e542afa65c3296311be7bc", - "name": "Number of Installed Applications", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.system.apps.num_installed]", - "delay": "1d", - "description": "Number of installed applications" - }, - { - "uuid": "eaa4b90fbac849108b95cd553798900c", - "name": "Nextcloud Server Version", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.nextcloud.system.version]", - "delay": "24h", - "trends": "0", - "value_type": "TEXT", - "description": "Nextcloud Server Version" - }, - { - "uuid": "30b554fb5c2845439e3486b6a0927c1a", - "name": "Database Size (reported by Nextcloud)", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.server.database.size]", - "delay": "1h", - "value_type": "FLOAT", - "description": "Database Size (in bytes)", - "preprocessing": [ - { - "type": "MULTIPLIER", - "parameters": [ - "9.5367431640625E-7" - ] - } - ] - }, - { - "uuid": "209893b4f7764f45a26afcf055dbd5cd", - "name": "Database (reported by Nextcloud)", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.server.database.type]", - "delay": "1d", - "trends": "0", - "value_type": "TEXT", - "description": "Database Type" - }, - { - "uuid": "f8b1b78f1ed7472ba73e5bdb031577a2", - "name": "Database Version (reported by Nextcloud)", - "type": "ZABBIX_ACTIVE", - "key": "nc_metric[ocs.data.server.database.version]", - "delay": "1d", - "trends": "0", - "value_type": "TEXT", - "description": "Database Version" - }, - { - "uuid": "89a9b0105a594908abe43d106e1ddf6b", - "name": "PHP Version", - "key": "nc_metric[ocs.data.server.php.version]", - "delay": "24h", - "trends": "0", - "value_type": "TEXT", - "description": "PHP Version" - }, - { - "uuid": "3aff68035b0b4283b990a34b662222cd", - "name": "Web Server (reported by Nextcloud)", - "key": "nc_metric[ocs.data.server.webserver]", - "delay": "24h", - "trends": "0", - "value_type": "TEXT", - "description": "Web Server (reported by Nextcloud)" - }, - { - "uuid": "469923464ff240988bccddba5671b9d5", - "name": "Storage Quota (GB) - Assigned Total", - "type": "ZABBIX_ACTIVE", - "key": "nc_quota_metric[total_assigned_quota_gb]", - "delay": "1d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.total_assigned_quota_gb" - ] - } - ] - }, - { - "uuid": "fdcdce5456c449b5a153c07b12cd86b9", - "name": "Storage Quota (GB) - Used Total", - "type": "ZABBIX_ACTIVE", - "key": "nc_quota_metric[total_used_quota_gb]", - "delay": "1d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.total_used_quota_gb" - ] - } - ] - }, - { - "uuid": "2cc43d1dbefd4a109ec8406e2899654b", - "name": "Data Directory Size (GB)", - "type": "ZABBIX_ACTIVE", - "key": "storage_metric[datadirectory_total_size_gb]", - "delay": "10m", - "value_type": "FLOAT", - "description": "Nextcloud data directory storage size (in Gigabytes)" - }, - { - "uuid": "31d1b9ba4d1c498a8bd5f8ea534c661e", - "name": "Data Directory Partition - Available Capacity (GB)", - "type": "ZABBIX_ACTIVE", - "key": "storage_metric[partition_available_capacity_gb]", - "delay": "10m", - "value_type": "FLOAT", - "description": "Available capacity of the partition hosting the Nextcloud data directory (in Gigabytes)" - }, - { - "uuid": "a0d9063f0bef46f7935d8cdc36284386", - "name": "Data Directory Partition - Total Capacity (GB)", - "type": "ZABBIX_ACTIVE", - "key": "storage_metric[partition_total_capacity_gb]", - "delay": "10m", - "value_type": "FLOAT", - "description": "Total capacity of the partition hosting the Nextcloud data directory (in Gigabytes)" - }, - { - "uuid": "a47c3d652e034eea840663b5ee0d533e", - "name": "Data Directory Partition - Used Capacity (%)", - "type": "ZABBIX_ACTIVE", - "key": "storage_metric[partition_used_capacity_percent]", - "delay": "10m", - "value_type": "FLOAT", - "description": "Used capacity of the partition hosting the Nextcloud data directory (in percentage)" - } - ], - "discovery_rules": [ - { - "uuid": "632921baa9b4466abea5285b5113c0ac", - "name": "HTTP Agent Request Count", - "type": "ZABBIX_ACTIVE", - "key": "apache2_user_agent_metric_discovery", - "delay": "1d", - "item_prototypes": [ - { - "uuid": "4eba013ed08f4e5a9b71605b316ccf17", - "name": "Number of requests in last natural day - {#NORM_USER_AGENT}", - "type": "ZABBIX_ACTIVE", - "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]", - "delay": "1d" - } - ], - "graph_prototypes": [ - { - "uuid": "a5fc2578020e4b3cbf5a32173d6eb0af", - "name": "Number of requests in last natural day - {#NORM_USER_AGENT}", - "show_work_period": "NO", - "show_triggers": "NO", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]" - } - } - ] - } - ] - }, - { - "uuid": "3f2820db83ff4b2fb87013d3d6fcd0be", - "name": "Largest database tables", - "type": "ZABBIX_ACTIVE", - "key": "db_metric_discovery", - "delay": "1h", - "item_prototypes": [ - { - "uuid": "1e53988836eb465eb220402a6721df4d", - "name": "Number of rows {#TABLENAME}", - "type": "ZABBIX_ACTIVE", - "key": "db_metric[{#TABLENAME},nr_rows]", - "delay": "1h" - }, - { - "uuid": "6d82cf7849154cb3859001cfa86fff9c", - "name": "Size of {#TABLENAME}", - "type": "ZABBIX_ACTIVE", - "key": "db_metric[{#TABLENAME},size_mb]", - "delay": "1h", - "value_type": "FLOAT" - } - ], - "graph_prototypes": [ - { - "uuid": "bc89e54de2e143d19b5623c40cbb666f", - "name": "Number of rows in {#TABLENAME}", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "db_metric[{#TABLENAME},nr_rows]" - } - } - ] - }, - { - "uuid": "1eb51c1032034c50b2b887ebc31f660e", - "name": "Size of {#TABLENAME} in MB", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "db_metric[{#TABLENAME},size_mb]" - } - } - ] - } - ] - } - ], - "dashboards": [ - { - "uuid": "e7808bdb7dc64e23a3d5e8edd8ac4e59", - "name": "Application", - "display_period": "60", - "pages": [ - { - "name": "Application", - "widgets": [ - { - "type": "item", - "name": "Nextcloud Server Version", - "width": "4", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "STRING", - "name": "description", - "value": "Nextcloud Server Version" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.system.version]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "item", - "name": "Total Number of Shares", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Number of Shares" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "graph", - "name": "Users", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Users" - } - } - ] - }, - { - "type": "graph", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of Storage Areas" - } - } - ] - }, - { - "type": "graphprototype", - "name": "HTTP Agents - Number of requests in previous day", - "y": "15", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "ITEM_PROTOTYPE", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "apache2_user_agent_metric[{#NORM_USER_AGENT}]" - } - }, - { - "type": "INTEGER", - "name": "show_legend", - "value": "0" - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "3" - } - ] - }, - { - "type": "item", - "name": "Total Number of Files", - "x": "3", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Number of Files\n(incl. previews and folders)" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "item", - "name": "PHP Version", - "x": "4", - "width": "4", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "STRING", - "name": "description", - "value": "PHP Version" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.server.php.version]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "item", - "name": "Total Storage in Data Directory", - "x": "6", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Storage \nin Data Directory" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "storage_metric[datadirectory_total_size_gb]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "GB" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_size", - "value": "25" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "item", - "name": "Web Server", - "x": "8", - "width": "4", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "STRING", - "name": "description", - "value": "Web Server" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.server.webserver]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "item", - "name": "Total Assigned Storage Quota", - "x": "9", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Assigned \nStorage Quota" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_quota_metric[total_assigned_quota_gb]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "GB" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_size", - "value": "25" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "item", - "name": "Total Used Storage Quota", - "x": "12", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Used \nStorage Quota" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_quota_metric[total_used_quota_gb]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "GB" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_size", - "value": "25" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "graph", - "name": "Number of Files", - "x": "12", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of Files" - } - } - ] - }, - { - "type": "graph", - "name": "Number of Shares (by type)", - "x": "12", - "y": "10", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of Shares (by Type)" - } - } - ] - }, - { - "type": "item", - "name": "Total Capacity of Data Directory Partition", - "x": "15", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Capacity of \nData Directory Partition" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "storage_metric[partition_total_capacity_gb]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "GB" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_size", - "value": "25" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "graph", - "x": "16", - "y": "10", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of Shares (by Type) - Last Value - Pie Chart" - } - } - ] - }, - { - "type": "item", - "name": "Used Capacity of Data Directory Partition", - "x": "18", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Used Capacity of \nData Directory Partition" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "storage_metric[partition_used_capacity_percent]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "%" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_size", - "value": "25" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - }, - { - "type": "graph", - "name": "Number of Shares (by Type) - Average Value - Pie Chart", - "x": "20", - "y": "10", - "width": "4", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of Shares (by Type) - Average Value - Pie Chart" - } - } - ] - }, - { - "type": "clock", - "name": "clock", - "x": "21", - "width": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "clock_type", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "3" - }, - { - "type": "INTEGER", - "name": "time_size", - "value": "20" - } - ] - }, - { - "type": "item", - "name": "Total Number of Users", - "x": "21", - "y": "2", - "width": "3", - "height": "3", - "hide_header": "YES", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "STRING", - "name": "description", - "value": "Total Number of Users" - }, - { - "type": "INTEGER", - "name": "desc_size", - "value": "10" - }, - { - "type": "INTEGER", - "name": "desc_v_pos", - "value": "0" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_users]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "1" - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - } - ] - }, - { - "name": "Database", - "widgets": [ - { - "type": "item", - "name": "Database Version", - "width": "12", - "height": "3", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "10" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "db_full_version" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "units_bold", - "value": "0" - }, - { - "type": "INTEGER", - "name": "units_show", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_h_pos", - "value": "0" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "15" - } - ] - }, - { - "type": "graphprototype", - "name": "Number of rows in {#TABLENAME}", - "y": "4", - "width": "24", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "5" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Number of rows in {#TABLENAME}" - } - } - ] - }, - { - "type": "graphprototype", - "name": "Size of {#TABLENAME}", - "y": "10", - "width": "24", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "5" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Nextcloud", - "name": "Size of {#TABLENAME} in MB" - } - } - ] - }, - { - "type": "item", - "name": "Database Size", - "x": "12", - "width": "4", - "height": "3", - "fields": [ - { - "type": "INTEGER", - "name": "adv_conf", - "value": "1" - }, - { - "type": "INTEGER", - "name": "decimal_places", - "value": "0" - }, - { - "type": "INTEGER", - "name": "decimal_size", - "value": "25" - }, - { - "type": "ITEM", - "name": "itemid", - "value": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.server.database.size]" - } - }, - { - "type": "INTEGER", - "name": "show", - "value": "2" - }, - { - "type": "INTEGER", - "name": "show", - "value": "4" - }, - { - "type": "STRING", - "name": "units", - "value": "MB" - }, - { - "type": "INTEGER", - "name": "units_size", - "value": "25" - }, - { - "type": "INTEGER", - "name": "value_size", - "value": "25" - } - ] - } - ] - } - ] - } - ] - } - ], - "graphs": [ - { - "uuid": "00e76bf39d854e09bd19bb3dea9f616f", - "name": "Active users in the last 5 minutes", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]" - } - } - ] - }, - { - "uuid": "ed6d0e653d4a43ecbc06c393c0c396d8", - "name": "Active users in the last 24 hours", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last24hours]" - } - } - ] - }, - { - "uuid": "287f84b0347a42179c137019e4f9f6e5", - "name": "Active users in the last hour", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last1hour]" - } - } - ] - }, - { - "uuid": "4c5580f5314a4ad58e327f7d47ca4301", - "name": "Database size", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.server.database.size]" - } - } - ] - }, - { - "uuid": "015188c05e794bf08643394ab9fa7e53", - "name": "Number of Files", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_files]" - } - } - ] - }, - { - "uuid": "ad1a59aeb6464aca86c7d7249752dcc1", - "name": "Number of Shares", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares]" - } - } - ] - }, - { - "uuid": "0a408360b58246d1b74caedb3216b969", - "name": "Number of Shares (by Type)", - "graph_items": [ - { - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" - } - }, - { - "sortorder": "1", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" - } - }, - { - "sortorder": "2", - "color": "2774A4", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" - } - }, - { - "sortorder": "4", - "color": "FC6EA3", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" - } - } - ] - }, - { - "uuid": "0f40359cd9b6470d85c277015346ab27", - "name": "Number of Shares (by Type) - Average Value - Pie Chart", - "yaxismax": "0", - "show_work_period": "NO", - "show_triggers": "NO", - "type": "EXPLODED", - "show_3d": "YES", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" - } - }, - { - "sortorder": "1", - "color": "274482", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" - } - } - ] - }, - { - "uuid": "d709c34ece094f8d815cd5d8169287aa", - "name": "Number of Shares (by Type) - Last Value - Pie Chart", - "yaxismax": "0", - "show_work_period": "NO", - "show_triggers": "NO", - "type": "EXPLODED", - "show_3d": "YES", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_groups]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_link]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_mail]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_room]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "calc_fnc": "LAST", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.shares.num_shares_user]" - } - } - ] - }, - { - "uuid": "628b4299c4a9492682f76dd9747da276", - "name": "Number of Storage Areas", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_home]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_local]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_storages_other]" - } - } - ] - }, - { - "uuid": "20779ff8bc3346fe8b9af74240d515d3", - "name": "Users", - "graph_items": [ - { - "color": "1A7C11", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last1hour]" - } - }, - { - "sortorder": "1", - "color": "274482", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last5minutes]" - } - }, - { - "sortorder": "2", - "color": "F63100", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.activeUsers.last24hours]" - } - }, - { - "sortorder": "3", - "color": "2774A4", - "calc_fnc": "ALL", - "item": { - "host": "Nextcloud", - "key": "nc_metric[ocs.data.nextcloud.storage.num_users]" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/redis-zabbix-allenta-consulting-template.json b/zabbix-templates/redis-zabbix-allenta-consulting-template.json deleted file mode 100644 index 1a1d595..0000000 --- a/zabbix-templates/redis-zabbix-allenta-consulting-template.json +++ /dev/null @@ -1,1511 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "7df96b18c230490a9a0a9e2307226338", - "name": "Templates" - } - ], - "templates": [ - { - "uuid": "0985c017179b4925a39859b210f8068e", - "template": "Template App Redis Server", - "name": "Template App Redis Server", - "description": "Template App Redis Server v14.0", - "vendor": { - "name": "Allenta Consulting S.L.", - "version": "6.4-14.0" - }, - "groups": [ - { - "name": "Templates" - } - ], - "items": [ - { - "uuid": "0dd210187c7e4086af924495bf3215b9", - "name": "Redis Server - $1 processes", - "key": "proc.num[redis-server]", - "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ], - "triggers": [ - { - "uuid": "4a0ea180d9124067be6d1f4e46421773", - "expression": "last(/Template App Redis Server/proc.num[redis-server])<{$REDIS_SERVER.PROCESSES.MIN}", - "name": "Redis Server is not running", - "priority": "DISASTER" - } - ] - }, - { - "uuid": "b4a345736aec44bdbde03ce96b338994", - "name": "Redis Server - stats", - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]", - "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", - "history": "0", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "\n var exclusions = '{$REDIS_SERVER.EXCLUDED_STATS}'.trim();\n\n // This check is not just a simple optimization to avoid using never matching\n // regexps like '^(?!)' when filtering is not needed. JavaScript based filtering\n // effectively limits precision of numeric values and it could trigger rendering\n // of values using scientific notation.\n if (exclusions !== '') {\n exclusions = new RegExp(exclusions);\n\n var stats = JSON.parse(value);\n\n Object.keys(stats).forEach(function(key) {\n var name = key.replace(/^[^.]*[.]/, '');\n if (exclusions.test(name)) {\n delete stats[key];\n }\n });\n\n return JSON.stringify(stats);\n } else {\n return value;\n }\n " - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - } - ], - "discovery_rules": [ - { - "uuid": "2a82dc028a7e449690f7717e7f89aa3b", - "name": "Commandstats discovery", - "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"commandstats\"]", - "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"commandstats\"}", - "filter": { - "conditions": [ - { - "macro": "{#SUBJECT}", - "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"commandstats\"}", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "A" - } - ] - }, - "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"commandstats\"}", - "item_prototypes": [ - { - "uuid": "bcd9f65b5a5b452189b7ccf0adbd78c8", - "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:calls", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:calls\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:calls']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "7b6c45697ba14f10bd7164dc27c01090", - "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:usec_per_call", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:usec_per_call\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:usec_per_call']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - } - ] - }, - { - "uuid": "e8dd71a33888412dbbd3ff3f3307b9c6", - "name": "Items discovery", - "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"items\"]", - "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"items\"}", - "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"items\"}", - "item_prototypes": [ - { - "uuid": "39475ca0c1464d3e9cbe7b85d3d81085", - "name": "Redis Server[{#LOCATION}] - clients:blocked_clients", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:blocked_clients\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.clients:blocked_clients']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "327f368c4eff4b68bd1b8e1f6d5e6934", - "name": "Redis Server[{#LOCATION}] - clients:connected_clients", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:connected_clients\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.clients:connected_clients']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "42093af8dbca40ae8eaf342b4307e4ae", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_known_nodes", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_known_nodes\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_known_nodes']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "b2cd47874a774d3c9bd8b0b071a39b38", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_size", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_size\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_size']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "581ecf808c544e28a9f070c3bf74d5e4", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_assigned", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_assigned\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_slots_assigned']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "0671752af70d4ec89e755497d7017ae1", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_fail", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_fail\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_slots_fail']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "e08e2f608ff2439da9093a9d42fb6aea", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_ok", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_ok\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_slots_ok']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "37457455be4f49d888ff64118a2fe5ab", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_pfail", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_pfail\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_slots_pfail']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "5ed9c084254c487bb86ba5fefb96d4f5", - "name": "Redis Server[{#LOCATION}] - cluster:cluster_state", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_state\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cluster:cluster_state']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "5921de15169a43a6952552c795c3a3af", - "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cpu:used_cpu_sys']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "84307066f3f04a758c94e5ee01c7938e", - "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys_children", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys_children\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cpu:used_cpu_sys_children']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "6c410ba56ead40858decab4c84e9b998", - "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cpu:used_cpu_user']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "21254c91ddb74bfe9eee9d82607328cd", - "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user_children", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user_children\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.cpu:used_cpu_user_children']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "fac4af3cc8f1441389d386c62447af18", - "name": "Redis Server[{#LOCATION}] - hit_ratio", - "type": "CALCULATED", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"hit_ratio\"]", - "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "%", - "params": "100*last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])/(last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])+last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"])+(count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"],#1,\"eq\",0)*count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"],#1,\"eq\",0)))", - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "2328c03f4b444f82a9a19e7246d883ad", - "name": "Redis Server[{#LOCATION}] - memory:mem_fragmentation_ratio", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:mem_fragmentation_ratio\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.memory:mem_fragmentation_ratio']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "421ae72f90fe46b4929112df5de1222c", - "name": "Redis Server[{#LOCATION}] - memory:used_memory", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.memory:used_memory']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "bfa68004441b4705a18ef68c7a6f8bb6", - "name": "Redis Server[{#LOCATION}] - memory:used_memory_lua", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_lua\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.memory:used_memory_lua']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "9edf931c27e94de1a0f029a9d5833b36", - "name": "Redis Server[{#LOCATION}] - memory:used_memory_rss", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_rss\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.memory:used_memory_rss']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "2f2b46643e504baeab282528fbc155cf", - "name": "Redis Server[{#LOCATION}] - persistence:aof_last_bgrewrite_status", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_bgrewrite_status\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:aof_last_bgrewrite_status']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "91978c3c77ef489fa65c75f1a22548a6", - "name": "Redis Server[{#LOCATION}] - persistence:aof_last_rewrite_time_sec", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_rewrite_time_sec\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:aof_last_rewrite_time_sec']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "2a55fc618e294ce3a305a8e5271d6154", - "name": "Redis Server[{#LOCATION}] - persistence:aof_last_write_status", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_write_status\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:aof_last_write_status']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "a7dd0f15e8f9483e8a41d4eaeeaff532", - "name": "Redis Server[{#LOCATION}] - persistence:rdb_changes_since_last_save", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_changes_since_last_save\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:rdb_changes_since_last_save']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "488ada8c369a474da74dce54d6d85493", - "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_status", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_status\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_status']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "9968741069d74a62a2efcce2025957e5", - "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_time_sec", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_time_sec\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_time_sec']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "5fbca013a8ca4051b49d4f2be670dd04", - "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_save_time", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_save_time\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "unixtime", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.persistence:rdb_last_save_time']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "64186f3afffe4c0c90fd81b56b4c58e1", - "name": "Redis Server[{#LOCATION}] - replication:connected_slaves", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.replication:connected_slaves']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "dfaa1031d4e641c9aac23efc1c2b3e84", - "name": "Redis Server[{#LOCATION}] - replication:role", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.replication:role']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "eaaab8c393c34910930c20b1957dfd81", - "name": "Redis Server[{#LOCATION}] - server:uptime_in_seconds", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "uptime", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.server:uptime_in_seconds']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ], - "trigger_prototypes": [ - { - "uuid": "e0e532c83c8b4a78aaa620a80358085d", - "expression": "last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"])<{$REDIS_SERVER.UPTIME.MIN:\"{#LOCATION_ID}\"}", - "name": "Redis Server[{#LOCATION}] has been restarted", - "priority": "HIGH" - } - ] - }, - { - "uuid": "ac8c032105934030a2ae11ba8a4fb1f5", - "name": "Redis Server[{#LOCATION}] - stats:evicted_keys", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:evicted_keys']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ], - "trigger_prototypes": [ - { - "uuid": "ee545f84145049b0acef45ce5868ca5e", - "expression": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED:\"{#LOCATION_ID}\"} and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"])>{$REDIS_SERVER.EVICTED_KEYS.MAX:\"{#LOCATION_ID}\"}", - "name": "Redis Server[{#LOCATION}] is evicting keys", - "priority": "HIGH" - } - ] - }, - { - "uuid": "33c508f4f12d4396a257259a642fe06f", - "name": "Redis Server[{#LOCATION}] - stats:expired_keys", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:expired_keys\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:expired_keys']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "fe11dd3f19c04aae885a5e65be84ac44", - "name": "Redis Server[{#LOCATION}] - stats:keyspace_hits", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:keyspace_hits']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "2ca4880622a84537afb2e152e90d9b0e", - "name": "Redis Server[{#LOCATION}] - stats:keyspace_misses", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:keyspace_misses']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "d3c74496265344908c67fc707c5574a0", - "name": "Redis Server[{#LOCATION}] - stats:pubsub_channels", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_channels\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:pubsub_channels']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "1da281315beb42cdb47a46bd04705279", - "name": "Redis Server[{#LOCATION}] - stats:pubsub_patterns", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_patterns\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:pubsub_patterns']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "b30b5ebbba5a4fb283d8555e4f31e6db", - "name": "Redis Server[{#LOCATION}] - stats:rejected_connections", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:rejected_connections\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:rejected_connections']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "72a93e5d77da499da6fa35a449f8bdab", - "name": "Redis Server[{#LOCATION}] - stats:sync_full", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_full\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:sync_full']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "de56a2ed709442f38c7ee2b1062e71f7", - "name": "Redis Server[{#LOCATION}] - stats:sync_partial_err", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_err\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:sync_partial_err']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "694a8e6cbf1046908889b5f01f2fe833", - "name": "Redis Server[{#LOCATION}] - stats:sync_partial_ok", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_ok\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:sync_partial_ok']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "41e203934ce34e1d9c60e944f71cd157", - "name": "Redis Server[{#LOCATION}] - stats:total_commands_processed", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_commands_processed\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:total_commands_processed']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "6d3bbd28afea4972b04d21e2514d630a", - "name": "Redis Server[{#LOCATION}] - stats:total_connections_received", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_connections_received\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "eps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:total_connections_received']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "0363d2b2013e4b1e9128f4aef5ee98f9", - "name": "Redis Server[{#LOCATION}] - stats:total_net_input_bytes", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_input_bytes\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "Bps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:total_net_input_bytes']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "3353518069404f049df2323c464e827c", - "name": "Redis Server[{#LOCATION}] - stats:total_net_output_bytes", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_output_bytes\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value_type": "FLOAT", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "units": "Bps", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.stats:total_net_output_bytes']" - ], - "error_handler": "DISCARD_VALUE" - }, - { - "type": "CHANGE_PER_SECOND" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "9f2a6de254b143a0abf7e7e0d7a8f672", - "expression": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED:\"{#LOCATION_ID}\"} and find(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"],,\"eq\",\"master\")=1 and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"])=0", - "name": "Redis Server[{#LOCATION}] is a master without slaves", - "priority": "HIGH" - } - ] - }, - { - "uuid": "0ab4e802e3f74f45a5e07cc7cdba333b", - "name": "Keyspace discovery", - "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"keyspace\"]", - "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"keyspace\"}", - "filter": { - "conditions": [ - { - "macro": "{#SUBJECT}", - "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"keyspace\"}", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "A" - } - ] - }, - "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"keyspace\"}", - "item_prototypes": [ - { - "uuid": "d0ce35df09b2476b86ca8fc486a3b0e8", - "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:avg_ttl", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:avg_ttl\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:avg_ttl']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "390d42e974e044e4bc0069b87588e6e8", - "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:expires", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:expires\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:expires']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - }, - { - "uuid": "9d67ee3b117b479ca89876103ffddbeb", - "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:keys", - "type": "DEPENDENT", - "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:keys\"]", - "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:keys']" - ], - "error_handler": "DISCARD_VALUE" - } - ], - "master_item": { - "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]" - }, - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ] - } - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "Redis Server" - } - ], - "macros": [ - { - "macro": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED}", - "value": "1" - }, - { - "macro": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED}", - "value": "1" - }, - { - "macro": "{$REDIS_SERVER.EVICTED_KEYS.MAX}", - "value": "0.0" - }, - { - "macro": "{$REDIS_SERVER.EXCLUDED_STATS}" - }, - { - "macro": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}", - "value": "30d" - }, - { - "macro": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}", - "value": "365d" - }, - { - "macro": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}", - "value": "1m" - }, - { - "macro": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS}", - "value": "^(?!)" - }, - { - "macro": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD}", - "value": "30d" - }, - { - "macro": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL}", - "value": "1h" - }, - { - "macro": "{$REDIS_SERVER.LOCATIONS}" - }, - { - "macro": "{$REDIS_SERVER.PROCESSES.MIN}", - "value": "1" - }, - { - "macro": "{$REDIS_SERVER.UPTIME.MIN}", - "value": "10m" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/redis-zabbix-template.json b/zabbix-templates/redis-zabbix-template.json deleted file mode 100644 index 86a87e0..0000000 --- a/zabbix-templates/redis-zabbix-template.json +++ /dev/null @@ -1,4665 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "748ad4d098d447d492bb935c907f652f", - "name": "Templates/Databases" - } - ], - "templates": [ - { - "uuid": "e111446745a1425b862f8727ae63bce4", - "template": "Redis by Zabbix agent 2", - "name": "Redis by Zabbix agent 2", - "description": "Get Redis metrics from plugin for the New Zabbix Agent (zabbix-agent2).\n\nYou can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/389050-discussion-thread-for-official-zabbix-template-redis\n\nTemplate tooling version used: 0.41", - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates/Databases" - } - ], - "items": [ - { - "uuid": "bc4989f098954259924cbee6717519a7", - "name": "Redis: Blocked clients", - "type": "DEPENDENT", - "key": "redis.clients.blocked", - "delay": "0", - "history": "7d", - "description": "The number of connections waiting on a blocking call", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Clients.blocked_clients" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "6140e8ff18fe41c6b65165b0f5346c7b", - "name": "Redis: Connected clients", - "type": "DEPENDENT", - "key": "redis.clients.connected", - "delay": "0", - "history": "7d", - "description": "The number of connected clients", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Clients.connected_clients" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "3f5d6532f403436c823e1461e49e54c2", - "name": "Redis: Max input buffer", - "type": "DEPENDENT", - "key": "redis.clients.max_input_buffer", - "delay": "0", - "history": "7d", - "description": "The biggest input buffer among current client connections", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "var clients = JSON.parse(value).Clients\nreturn clients.client_recent_max_input_buffer || clients.client_biggest_input_buf" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "44788aa774e64fe685fe6496a9bea97d", - "name": "Redis: Max output buffer", - "type": "DEPENDENT", - "key": "redis.clients.max_output_buffer", - "delay": "0", - "history": "7d", - "description": "The biggest output buffer among current client connections", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "var clients = JSON.parse(value).Clients\nreturn clients.client_recent_max_output_buffer || clients.client_longest_output_list" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "74f9fe26bdaf4a7bb86214bd7d500363", - "name": "Redis: Cluster enabled", - "type": "DEPENDENT", - "key": "redis.cluster.enabled", - "delay": "0", - "history": "7d", - "description": "Indicate Redis cluster is enabled", - "valuemap": { - "name": "Redis flag" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Cluster.cluster_enabled" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "066486e3be25406185e624611eeb167a", - "name": "Redis: Max clients", - "type": "DEPENDENT", - "key": "redis.config.maxclients", - "delay": "0", - "history": "7d", - "description": "Max number of connected clients at the same time.\nOnce the limit is reached Redis will close all the new connections sending an error \"max number of clients reached\".", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.maxclients" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "30m" - ] - } - ], - "master_item": { - "key": "redis.config[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "bf68f3ecc3544ef0af00889139caf313", - "name": "Redis: Get config", - "key": "redis.config[\"{$REDIS.CONN.URI}\"]", - "history": "1h", - "trends": "0", - "value_type": "TEXT", - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1h" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "raw" - } - ], - "triggers": [ - { - "uuid": "819b379b51c34616820f86d21c703b27", - "expression": "last(/Redis by Zabbix agent 2/redis.config[\"{$REDIS.CONN.URI}\"],#1)<>last(/Redis by Zabbix agent 2/redis.config[\"{$REDIS.CONN.URI}\"],#2) and length(last(/Redis by Zabbix agent 2/redis.config[\"{$REDIS.CONN.URI}\"]))>0", - "name": "Redis: Configuration has changed", - "event_name": "Redis: Version has changed (new version: {ITEM.VALUE})", - "priority": "INFO", - "description": "Redis configuration has changed. Ack to close.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "99d427f1f76a468c9878225abb8cebbd", - "name": "Redis: CPU sys", - "type": "DEPENDENT", - "key": "redis.cpu.sys", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "System CPU consumed by the Redis server", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.CPU.used_cpu_sys" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "1bfce9a62c924510a9cac3b04320d838", - "name": "Redis: CPU sys children", - "type": "DEPENDENT", - "key": "redis.cpu.sys_children", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "System CPU consumed by the background processes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.CPU.used_cpu_sys_children" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "83e7c9f5b8a24c949d72125671d6d39a", - "name": "Redis: CPU user", - "type": "DEPENDENT", - "key": "redis.cpu.user", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "User CPU consumed by the Redis server", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.CPU.used_cpu_user" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "8bc18ca0c79d4a81811b600cf3fe8ddd", - "name": "Redis: CPU user children", - "type": "DEPENDENT", - "key": "redis.cpu.user_children", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "User CPU consumed by the background processes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.CPU.used_cpu_user_children" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "720f146ffe7e481482e11db4b99634c8", - "name": "Redis: Get info", - "key": "redis.info[\"{$REDIS.CONN.URI}\"]", - "history": "1h", - "trends": "0", - "value_type": "TEXT", - "tags": [ - { - "tag": "component", - "value": "raw" - } - ], - "triggers": [ - { - "uuid": "0a5176877ba24df8b5d38c8cc544f0a8", - "expression": "nodata(/Redis by Zabbix agent 2/redis.info[\"{$REDIS.CONN.URI}\"],30m)=1", - "name": "Redis: Failed to fetch info data", - "event_name": "Redis: Failed to fetch info data (or no data for 30m)", - "priority": "WARNING", - "description": "Zabbix has not received data for items for the last 30 minutes", - "manual_close": "YES", - "dependencies": [ - { - "name": "Redis: Service is down", - "expression": "last(/Redis by Zabbix agent 2/redis.ping[\"{$REDIS.CONN.URI}\"])=0" - } - ], - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "5fe2afa1c8ff434a876822ea0b290659", - "name": "Redis: Memory fragmentation ratio", - "type": "DEPENDENT", - "key": "redis.memory.fragmentation_ratio", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "description": "This ratio is an indication of memory mapping efficiency:\n \u2014 Value over 1.0 indicate that memory fragmentation is very likely. Consider restarting the Redis server so the operating system can recover fragmented memory, especially with a ratio over 1.5.\n \u2014 Value under 1.0 indicate that Redis likely has insufficient memory available. Consider optimizing memory usage or adding more RAM.\n\nNote: If your peak memory usage is much higher than your current memory usage, the memory fragmentation ratio may be unreliable.\n\nhttps://redis.io/topics/memory-optimization", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_fragmentation_ratio" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ], - "triggers": [ - { - "uuid": "629531ff1ebc4bdbb1f277848c436230", - "expression": "min(/Redis by Zabbix agent 2/redis.memory.fragmentation_ratio,15m)>{$REDIS.MEM.FRAG_RATIO.MAX.WARN}", - "name": "Redis: Memory fragmentation ratio is too high", - "event_name": "Redis: Memory fragmentation ratio is too high (over {$REDIS.MEM.FRAG_RATIO.MAX.WARN} in 15m)", - "priority": "WARNING", - "description": "This ratio is an indication of memory mapping efficiency:\n \u2014 Value over 1.0 indicate that memory fragmentation is very likely. Consider restarting the Redis server so the operating system can recover fragmented memory, especially with a ratio over 1.5.\n \u2014 Value under 1.0 indicate that Redis likely has insufficient memory available. Consider optimizing memory usage or adding more RAM.\n\nNote: If your peak memory usage is much higher than your current memory usage, the memory fragmentation ratio may be unreliable.\n\nhttps://redis.io/topics/memory-optimization", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "5fef1d341a974cc5aa164e550aff1537", - "name": "Redis: Memory used", - "type": "DEPENDENT", - "key": "redis.memory.used_memory", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Total number of bytes allocated by Redis using its allocator", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "de026d98fd9146b78f9a0be2c0b9de10", - "name": "Redis: Memory used Lua", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_lua", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Amount of memory used by the Lua engine", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_lua" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "d3f05ab1c0404f01875afb964d9820e2", - "name": "Redis: Memory used peak", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_peak", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Peak memory consumed by Redis (in bytes)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_peak" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "ef06ae3dd4784702ad0d281da94c294d", - "name": "Redis: Memory used RSS", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_rss", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Number of bytes that Redis allocated as seen by the operating system", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_rss" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "86501872c68c4e9fa4b55aaacebb3c3c", - "name": "Redis: AOF current rewrite time sec", - "type": "DEPENDENT", - "key": "redis.persistence.aof_current_rewrite_time_sec", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "Duration of the on-going AOF rewrite operation if any", - "valuemap": { - "name": "Redis bgsave time" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_current_rewrite_time_sec" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "d298e1ce9aa1481391a48754e2a648b0", - "name": "Redis: AOF enabled", - "type": "DEPENDENT", - "key": "redis.persistence.aof_enabled", - "delay": "0", - "history": "7d", - "description": "Flag indicating AOF logging is activated", - "valuemap": { - "name": "Redis flag" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_enabled" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "e2e62cc728c04169afeb051000042e28", - "name": "Redis: AOF last bgrewrite status", - "type": "DEPENDENT", - "key": "redis.persistence.aof_last_bgrewrite_status", - "delay": "0", - "history": "7d", - "description": "Status of the last AOF rewrite operation", - "valuemap": { - "name": "Redis bgwrite status" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_last_bgrewrite_status" - ] - }, - { - "type": "BOOL_TO_DECIMAL", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "5a14501541c44699b81e3a89cc93d628", - "name": "Redis: AOF last rewrite time sec", - "type": "DEPENDENT", - "key": "redis.persistence.aof_last_rewrite_time_sec", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "Duration of the last AOF rewrite", - "valuemap": { - "name": "Redis bgsave time" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_last_rewrite_time_sec" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "2cfd96e347d341219238bdaf65f1846d", - "name": "Redis: AOF last write status", - "type": "DEPENDENT", - "key": "redis.persistence.aof_last_write_status", - "delay": "0", - "history": "7d", - "description": "Status of the last write operation to the AOF", - "valuemap": { - "name": "Redis bgwrite status" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_last_write_status" - ] - }, - { - "type": "BOOL_TO_DECIMAL", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ], - "triggers": [ - { - "uuid": "324e0e8fac514ba99d67aea7eb0ddf7c", - "expression": "last(/Redis by Zabbix agent 2/redis.persistence.aof_last_write_status)=0", - "name": "Redis: Last AOF write operation failed", - "priority": "WARNING", - "description": "Detailed information about persistence: https://redis.io/topics/persistence", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "3f4866909425447a828600e9b44ace5b", - "name": "Redis: AOF rewrite in progress", - "type": "DEPENDENT", - "key": "redis.persistence.aof_rewrite_in_progress", - "delay": "0", - "history": "7d", - "description": "Flag indicating a AOF rewrite operation is on-going", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_rewrite_in_progress" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "83d243cc46304694954e08c0b03a3527", - "name": "Redis: AOF rewrite scheduled", - "type": "DEPENDENT", - "key": "redis.persistence.aof_rewrite_scheduled", - "delay": "0", - "history": "7d", - "description": "Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_rewrite_scheduled" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "90df2d442dc049d690044b92e0888c31", - "name": "Redis: Dump loading", - "type": "DEPENDENT", - "key": "redis.persistence.loading", - "delay": "0", - "history": "7d", - "description": "Flag indicating if the load of a dump file is on-going", - "valuemap": { - "name": "Redis flag" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.loading" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "5b1ecad187764429a22cbeb69afa3a28", - "name": "Redis: RDB bgsave in progress", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_bgsave_in_progress", - "delay": "0", - "history": "7d", - "description": "\"1\" if bgsave is in progress and \"0\" otherwise", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_bgsave_in_progress" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "ea673953a3014dc091ec62a20ee53945", - "name": "Redis: RDB changes since last save", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_changes_since_last_save", - "delay": "0", - "history": "7d", - "description": "Number of changes since the last background save", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_changes_since_last_save" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "d8c4d8fceeb5482a951999eedd350f73", - "name": "Redis: RDB current bgsave time sec", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_current_bgsave_time_sec", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "Duration of the on-going RDB save operation if any", - "valuemap": { - "name": "Redis bgsave time" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_current_bgsave_time_sec" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "e25772b422314949a564f219d6f725bc", - "name": "Redis: RDB last bgsave status", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_last_bgsave_status", - "delay": "0", - "history": "7d", - "description": "Status of the last RDB save operation", - "valuemap": { - "name": "Redis bgwrite status" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_last_bgsave_status" - ] - }, - { - "type": "BOOL_TO_DECIMAL", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ], - "triggers": [ - { - "uuid": "44e427ae3ce7419dbac3059be11e31ef", - "expression": "last(/Redis by Zabbix agent 2/redis.persistence.rdb_last_bgsave_status)=0", - "name": "Redis: Last RDB save operation failed", - "priority": "WARNING", - "description": "Detailed information about persistence: https://redis.io/topics/persistence", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "f506941104e34db08c0d8f5a6d9d9710", - "name": "Redis: RDB last bgsave time sec", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_last_bgsave_time_sec", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "s", - "description": "Duration of the last bg_save operation", - "valuemap": { - "name": "Redis bgsave time" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_last_bgsave_time_sec" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "04e1c21ca49246d7aba062cd001a8c00", - "name": "Redis: RDB last save time", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_last_save_time", - "delay": "0", - "history": "7d", - "description": "Epoch-based timestamp of last successful RDB save", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_last_save_time" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "5949fadcbe2b405baff0668e81627278", - "name": "Redis: Ping", - "key": "redis.ping[\"{$REDIS.CONN.URI}\"]", - "history": "7h", - "valuemap": { - "name": "Service state" - }, - "preprocessing": [ - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "10m" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "application" - }, - { - "tag": "component", - "value": "health" - } - ], - "triggers": [ - { - "uuid": "62353f9ed6204b70ba270827c3922244", - "expression": "last(/Redis by Zabbix agent 2/redis.ping[\"{$REDIS.CONN.URI}\"])=0", - "name": "Redis: Service is down", - "priority": "AVERAGE", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "6680a01fb98c4504bed6458ba6cde146", - "name": "Redis: Connected slaves", - "type": "DEPENDENT", - "key": "redis.replication.connected_slaves", - "delay": "0", - "history": "7d", - "description": "Number of connected slaves", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.connected_slaves" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ], - "triggers": [ - { - "uuid": "6d213088211a4bb38ff97b59113dccd9", - "expression": "last(/Redis by Zabbix agent 2/redis.replication.connected_slaves,#1)<>last(/Redis by Zabbix agent 2/redis.replication.connected_slaves,#2)", - "recovery_mode": "NONE", - "name": "Redis: Number of slaves has changed", - "priority": "INFO", - "description": "Redis number of slaves has changed. Ack to close.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "37fa1595299c4a3ea091039f4db47cf3", - "name": "Redis: Master replication offset", - "type": "DEPENDENT", - "key": "redis.replication.master_repl_offset", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Replication offset reported by the master", - "valuemap": { - "name": "Redis repl offset" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.master_repl_offset" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "cf067374339e44e5a4ba2cd70d4fec3a", - "name": "Redis: Replication backlog active", - "type": "DEPENDENT", - "key": "redis.replication.repl_backlog_active", - "delay": "0", - "history": "7d", - "description": "Flag indicating replication backlog is active", - "valuemap": { - "name": "Redis flag" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.repl_backlog_active" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "b4ea8df4d73144f99ffd4f5f6e6359ef", - "name": "Redis: Replication backlog first byte offset", - "type": "DEPENDENT", - "key": "redis.replication.repl_backlog_first_byte_offset", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The master offset of the replication backlog buffer", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.repl_backlog_first_byte_offset" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "081cd9df926d48cea7e5c68f7761ddb1", - "name": "Redis: Replication backlog history length", - "type": "DEPENDENT", - "key": "redis.replication.repl_backlog_histlen", - "delay": "0", - "history": "7d", - "description": "Amount of data in the backlog sync buffer", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.repl_backlog_histlen" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "a437a46aafe3413884975fc480091bb5", - "name": "Redis: Replication backlog size", - "type": "DEPENDENT", - "key": "redis.replication.repl_backlog_size", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Total size in bytes of the replication backlog buffer", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.repl_backlog_size" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "d8371457697744159aabc3bdece4af2e", - "name": "Redis: Replication role", - "type": "DEPENDENT", - "key": "redis.replication.role", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Value is \"master\" if the instance is replica of no one, or \"slave\" if the instance is a replica of some master instance. Note that a replica can be master of another replica (chained replication).", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.role" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ], - "triggers": [ - { - "uuid": "d24f7aabefb345e791b3bb276f30ac8c", - "expression": "last(/Redis by Zabbix agent 2/redis.replication.role,#1)<>last(/Redis by Zabbix agent 2/redis.replication.role,#2) and length(last(/Redis by Zabbix agent 2/redis.replication.role))>0", - "recovery_mode": "NONE", - "name": "Redis: Replication role has changed", - "event_name": "Redis: Replication role has changed (new role: {ITEM.VALUE})", - "priority": "WARNING", - "description": "Redis replication role has changed. Ack to close.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "8a08d4f30b78448986b9fd94cafd398c", - "name": "Redis: Process id", - "type": "DEPENDENT", - "key": "redis.server.process_id", - "delay": "0", - "history": "7d", - "description": "PID of the server process", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.process_id" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "os" - } - ] - }, - { - "uuid": "b2deab550d984b3e93741c53019e7f89", - "name": "Redis: Redis mode", - "type": "DEPENDENT", - "key": "redis.server.redis_mode", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "The server's mode (\"standalone\", \"sentinel\" or \"cluster\")", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.redis_mode" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "9699d6a6563b498ea73f88a4c1dd9cf1", - "name": "Redis: Redis version", - "type": "DEPENDENT", - "key": "redis.server.redis_version", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Version of the Redis server", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.redis_version" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "application" - } - ], - "triggers": [ - { - "uuid": "6e307546b26344deb83f2295c90e9a33", - "expression": "last(/Redis by Zabbix agent 2/redis.server.redis_version,#1)<>last(/Redis by Zabbix agent 2/redis.server.redis_version,#2) and length(last(/Redis by Zabbix agent 2/redis.server.redis_version))>0", - "name": "Redis: Version has changed", - "event_name": "Redis: Version has changed (new version: {ITEM.VALUE})", - "priority": "INFO", - "description": "Redis version has changed. Ack to close.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "8c28e54f9e5d40d6b69c1f5b39b85054", - "name": "Redis: TCP port", - "type": "DEPENDENT", - "key": "redis.server.tcp_port", - "delay": "0", - "history": "7d", - "description": "TCP/IP listen port", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.tcp_port" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "af225edd976146f2920bc05afb703f14", - "name": "Redis: Uptime", - "type": "DEPENDENT", - "key": "redis.server.uptime", - "delay": "0", - "history": "7d", - "units": "s", - "description": "Number of seconds since Redis server start", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.uptime_in_seconds" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "application" - } - ], - "triggers": [ - { - "uuid": "4961e91eed2a4e83899d135315748b0e", - "expression": "last(/Redis by Zabbix agent 2/redis.server.uptime)<10m", - "name": "Redis: has been restarted", - "event_name": "Redis: has been restarted (uptime < 10m)", - "priority": "INFO", - "description": "Uptime is less than 10 minutes.", - "manual_close": "YES", - "tags": [ - { - "tag": "scope", - "value": "notice" - } - ] - } - ] - }, - { - "uuid": "51a65fa1d27e4fcd915c5019687e7bc9", - "name": "Redis: Slowlog entries per second", - "key": "redis.slowlog.count[\"{$REDIS.CONN.URI}\"]", - "history": "7d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "component", - "value": "application" - } - ], - "triggers": [ - { - "uuid": "37fb0255e49c42c8913e56fe4aaa1d14", - "expression": "min(/Redis by Zabbix agent 2/redis.slowlog.count[\"{$REDIS.CONN.URI}\"],5m)>{$REDIS.SLOWLOG.COUNT.MAX.WARN}", - "name": "Redis: Too many entries in the slowlog", - "event_name": "Redis: Too many entries in the slowlog (over {$REDIS.SLOWLOG.COUNT.MAX.WARN} per second in 5m)", - "priority": "INFO", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ] - }, - { - "uuid": "eca69284ac8e4ae3a7e965b6549e9343", - "name": "Redis: Evicted keys", - "type": "DEPENDENT", - "key": "redis.stats.evicted_keys", - "delay": "0", - "history": "7d", - "description": "Number of evicted keys due to maxmemory limit", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.evicted_keys" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "0a77355cfba348bb8884d2405892ed5d", - "name": "Redis: Expired keys", - "type": "DEPENDENT", - "key": "redis.stats.expired_keys", - "delay": "0", - "history": "7d", - "description": "Total number of key expiration events", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.expired_keys" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "5841b6f2a76b432080029367e7008cd1", - "name": "Redis: Instantaneous input bytes per second", - "type": "DEPENDENT", - "key": "redis.stats.instantaneous_input.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "Bps", - "description": "The network's read rate per second in KB/sec", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.instantaneous_input_kbps" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "1024" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "3552b285d7ca41f796c1838e268a92c1", - "name": "Redis: Instantaneous operations per sec", - "type": "DEPENDENT", - "key": "redis.stats.instantaneous_ops.rate", - "delay": "0", - "history": "7d", - "description": "Number of commands processed per second", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.instantaneous_ops_per_sec" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "operations" - } - ] - }, - { - "uuid": "86c05ed58e8448e9b7307a3c82e182af", - "name": "Redis: Instantaneous output bytes per second", - "type": "DEPENDENT", - "key": "redis.stats.instantaneous_output.rate", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "Bps", - "description": "The network's write rate per second in KB/sec", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.instantaneous_output_kbps" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "1024" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "66d30a422e704174ae7700e1dd006aa1", - "name": "Redis: Keyspace hits", - "type": "DEPENDENT", - "key": "redis.stats.keyspace_hits", - "delay": "0", - "history": "7d", - "description": "Number of successful lookup of keys in the main dictionary", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.keyspace_hits" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "e24da63a83dc4223bed35cf80fc22300", - "name": "Redis: Keyspace misses", - "type": "DEPENDENT", - "key": "redis.stats.keyspace_misses", - "delay": "0", - "history": "7d", - "description": "Number of failed lookup of keys in the main dictionary", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.keyspace_misses" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "1f11810f06d44e498a895c516f902f95", - "name": "Redis: Latest fork usec", - "type": "DEPENDENT", - "key": "redis.stats.latest_fork_usec", - "delay": "0", - "history": "7d", - "units": "s", - "description": "Duration of the latest fork operation in microseconds", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.latest_fork_usec" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "1.0E-5" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "operations" - } - ] - }, - { - "uuid": "2662dfd3524749998306f1d7afe33019", - "name": "Redis: Migrate cached sockets", - "type": "DEPENDENT", - "key": "redis.stats.migrate_cached_sockets", - "delay": "0", - "history": "7d", - "description": "The number of sockets open for MIGRATE purposes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.migrate_cached_sockets" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "186e6bda0a0e463bb8218a58f227ff2b", - "name": "Redis: Pubsub channels", - "type": "DEPENDENT", - "key": "redis.stats.pubsub_channels", - "delay": "0", - "history": "7d", - "description": "Global number of pub/sub channels with client subscriptions", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.pubsub_channels" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "subscribes" - } - ] - }, - { - "uuid": "1e0711a2b40e4fea88c0c57a1f6d2b30", - "name": "Redis: Pubsub patterns", - "type": "DEPENDENT", - "key": "redis.stats.pubsub_patterns", - "delay": "0", - "history": "7d", - "description": "Global number of pub/sub pattern with client subscriptions", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.pubsub_patterns" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "subscribes" - } - ] - }, - { - "uuid": "65135267c836435d872325a7129e5857", - "name": "Redis: Rejected connections", - "type": "DEPENDENT", - "key": "redis.stats.rejected_connections", - "delay": "0", - "history": "7d", - "description": "Number of connections rejected because of maxclients limit", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.rejected_connections" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ], - "triggers": [ - { - "uuid": "5bf0680529ce496b8fe419e2732c69d1", - "expression": "last(/Redis by Zabbix agent 2/redis.stats.rejected_connections)>0", - "name": "Redis: Connections are rejected", - "priority": "HIGH", - "description": "The number of connections has reached the value of \"maxclients\".\n\nhttps://redis.io/topics/clients", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "37135fd8b7e94c41bc21e802f21baeb4", - "name": "Redis: Sync full", - "type": "DEPENDENT", - "key": "redis.stats.sync_full", - "delay": "0", - "history": "7d", - "description": "The number of full resyncs with replicas", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.sync_full" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "cb5b6380b164419280fdcd98077c5d8f", - "name": "Redis: Sync partial err", - "type": "DEPENDENT", - "key": "redis.stats.sync_partial_err", - "delay": "0", - "history": "7d", - "description": "The number of denied partial resync requests", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.sync_partial_err" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "231560fd350e4b5096b242dddecd7c8b", - "name": "Redis: Sync partial ok", - "type": "DEPENDENT", - "key": "redis.stats.sync_partial_ok", - "delay": "0", - "history": "7d", - "description": "The number of accepted partial resync requests", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.sync_partial_ok" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "278ff045f367443380fcd594dba77d53", - "name": "Redis: Total commands processed", - "type": "DEPENDENT", - "key": "redis.stats.total_commands_processed", - "delay": "0", - "history": "7d", - "description": "Total number of commands processed by the server", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.total_commands_processed" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "commands" - } - ] - }, - { - "uuid": "c9afbbbec8a44926887389a590f1df91", - "name": "Redis: Total connections received", - "type": "DEPENDENT", - "key": "redis.stats.total_connections_received", - "delay": "0", - "history": "7d", - "description": "Total number of connections accepted by the server", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.total_connections_received" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "connections" - } - ] - }, - { - "uuid": "838cb6cbfd8a42e1b9cfa4a60670324a", - "name": "Redis: Total net input bytes", - "type": "DEPENDENT", - "key": "redis.stats.total_net_input_bytes", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The total number of bytes read from the network", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.total_net_input_bytes" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - }, - { - "uuid": "762f6b06eb094de896d265fcf3f9a603", - "name": "Redis: Total net output bytes", - "type": "DEPENDENT", - "key": "redis.stats.total_net_output_bytes", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The total number of bytes written to the network", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.total_net_output_bytes" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "network" - } - ] - } - ], - "discovery_rules": [ - { - "uuid": "527a3526b0e64225bb3dcf2dbbfbda5b", - "name": "Process metrics discovery", - "key": "proc.num[\"{$REDIS.LLD.PROCESS_NAME}\"]", - "delay": "1h", - "description": "Collect metrics by Zabbix agent if it exists", - "item_prototypes": [ - { - "uuid": "376a8861723c45c3bde08573c7ab2ed9", - "name": "Redis: CPU utilization", - "key": "proc.cpu.util[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\"]", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "Process CPU utilization percentage.", - "tags": [ - { - "tag": "component", - "value": "cpu" - } - ] - }, - { - "uuid": "9d68e00f913a4faea5a334d361f324b0", - "name": "Redis: Memory usage (rss)", - "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,rss]", - "history": "7d", - "units": "B", - "description": "Resident set size memory used by process in bytes.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "325cabaa95994a58bf30992586ba7544", - "name": "Redis: Memory usage (vsize)", - "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,vsize]", - "history": "7d", - "units": "B", - "description": "Virtual memory size used by process in bytes.", - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "d9ccc25e5d1b4f05b22354a7672b518c", - "name": "Redis: Number of processes running", - "key": "proc.num[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\"]", - "history": "7d", - "tags": [ - { - "tag": "component", - "value": "system" - } - ], - "trigger_prototypes": [ - { - "uuid": "590bd23c52b74dd7951dcf74903ac2ed", - "expression": "last(/Redis by Zabbix agent 2/proc.num[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\"])=0", - "name": "Redis: Process is not running", - "priority": "HIGH", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "e26f8c31c3654febbeda2ffb97438c36", - "name": "Redis: Memory usage{#SINGLETON}", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,vsize]" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "proc.mem[\"{$REDIS.PROCESS_NAME}{#SINGLETON}\",,,,rss]" - } - } - ] - } - ], - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(value > 0 ? [{'{#SINGLETON}': ''}] : []);" - ] - } - ] - }, - { - "uuid": "0f7966f47fda4b41856163ffb438bf27", - "name": "Keyspace discovery", - "type": "DEPENDENT", - "key": "redis.keyspace.discovery", - "delay": "0", - "filter": { - "evaltype": "AND", - "conditions": [ - { - "macro": "{#DB}", - "value": "{$REDIS.LLD.FILTER.DB.MATCHES}", - "formulaid": "A" - }, - { - "macro": "{#DB}", - "value": "{$REDIS.LLD.FILTER.DB.NOT_MATCHES}", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "B" - } - ] - }, - "description": "Individual keyspace metrics", - "item_prototypes": [ - { - "uuid": "38fcb8524f1b4f50a4945333fc6c7536", - "name": "DB {#DB}: Average TTL", - "type": "DEPENDENT", - "key": "redis.db.avg_ttl[\"{#DB}\"]", - "delay": "0", - "history": "7d", - "units": "s", - "description": "Average TTL", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Keyspace[\"{#DB}\"].avg_ttl" - ] - }, - { - "type": "MULTIPLIER", - "parameters": [ - "0.001" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - }, - { - "tag": "database", - "value": "{#DB}" - } - ] - }, - { - "uuid": "bde12d459b7b4e23a22ed6188b57bb25", - "name": "DB {#DB}: Expires", - "type": "DEPENDENT", - "key": "redis.db.expires[\"{#DB}\"]", - "delay": "0", - "history": "7d", - "description": "Number of keys with an expiration", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Keyspace[\"{#DB}\"].expires" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - }, - { - "tag": "database", - "value": "{#DB}" - } - ] - }, - { - "uuid": "2bae0d2f8b8348bcad207b61ef6286c3", - "name": "DB {#DB}: Keys", - "type": "DEPENDENT", - "key": "redis.db.keys[\"{#DB}\"]", - "delay": "0", - "history": "7d", - "description": "Total number of keys", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Keyspace[\"{#DB}\"].keys" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - }, - { - "tag": "database", - "value": "{#DB}" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "3271f3a143dc43f38a674b6cbae8cd0d", - "name": "DB {#DB}: Keys", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.db.keys[\"{#DB}\"]" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.db.expires[\"{#DB}\"]" - } - } - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(Object.keys(JSON.parse(value).Keyspace)\n .map(function (v){return {\"{#DB}\": v}}));" - ] - } - ] - }, - { - "uuid": "a3fb00d4bbc24779b6c7223b867f4d2c", - "name": "Version 4+ metrics discovery", - "type": "DEPENDENT", - "key": "redis.metrics.v4.discovery", - "delay": "0", - "description": "Additional metrics for versions 4+", - "item_prototypes": [ - { - "uuid": "b7e8d996335f41158b3c6a8961319db0", - "name": "Redis: Active defrag running{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.active_defrag_running[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Flag indicating if active defragmentation is active", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.active_defrag_running" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "2065e38cd7e5417abfd0b80116b0d77b", - "name": "Redis: Lazyfree pending objects{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.lazyfree_pending_objects[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "The number of objects waiting to be freed (as a result of calling UNLINK, or FLUSHDB and FLUSHALL with the ASYNC option)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.lazyfree_pending_objects" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "2c5c700b53374dac86d805384b6bc9b0", - "name": "Redis: Max memory{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.maxmemory[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Maximum amount of memory allocated to the Redisdb system", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.maxmemory" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "0f094be6d0fa4afda3aa7916fac4d3a3", - "name": "Redis: Max memory policy{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.maxmemory_policy[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "The value of the maxmemory-policy configuration directive", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.maxmemory_policy" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "bf804c6ee44640168e15ca62803b7f10", - "name": "Redis: Total system memory{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.total_system_memory[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The total amount of memory that the Redis host has", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.total_system_memory" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "1c0e0355d5cd429f9a914fb67f29e366", - "name": "Redis: Memory used dataset{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_dataset[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The size in bytes of the dataset", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_dataset" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "4e5937420b3843568d9f36b40c0a3c28", - "name": "Redis: Memory used dataset %{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_dataset_perc[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The percentage of used_memory_dataset out of the net memory usage (used_memory minus used_memory_startup)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_dataset_perc" - ] - }, - { - "type": "REGEX", - "parameters": [ - "(.+)%", - "\\1" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "e085382c18f3473f9d2271024cd61e93", - "name": "Redis: Memory used overhead{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_overhead[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The sum in bytes of all overheads that the server allocated for managing its internal data structures", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_overhead" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "5da63141e8b145a38954736806602b4a", - "name": "Redis: Memory used peak %{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_peak_perc[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "%", - "description": "The percentage of used_memory_peak out of used_memory", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_peak_perc" - ] - }, - { - "type": "REGEX", - "parameters": [ - "(.+)%", - "\\1" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "dabd2918056b4b999f4b30bd8e64e8a1", - "name": "Redis: Memory used startup{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_startup[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Initial amount of memory consumed by Redis at startup in bytes", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_startup" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "9da41967290742cb8daa2f69ac1d6966", - "name": "Redis: AOF last CoW size{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_last_cow_size[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The size in bytes of copy-on-write allocations during the last AOF rewrite operation", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_last_cow_size" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "768839c72e3f4be89e30dd0d140c9d03", - "name": "Redis: RDB last CoW size{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.rdb_last_cow_size[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The size in bytes of copy-on-write allocations during the last RDB save operation", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.rdb_last_cow_size" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "bead155d26054d0487622f29b86dcd2b", - "name": "Redis: Replication second offset{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.second_repl_offset[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "B", - "description": "Offset up to which replication IDs are accepted", - "valuemap": { - "name": "Redis repl offset" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.second_repl_offset" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "14d062351a114e8eafa2b2b889317903", - "name": "Redis: Executable path{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.server.executable[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "The path to the server's executable", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.executable" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "system" - } - ] - }, - { - "uuid": "5458542148954618a6d22df1effffe57", - "name": "Redis: Active defrag hits{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.active_defrag_hits[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of value reallocations performed by active the defragmentation process", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.active_defrag_hits" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "f8b424743dd24691be2bd07d5538b16a", - "name": "Redis: Active defrag key hits{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.active_defrag_key_hits[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of keys that were actively defragmented", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.active_defrag_key_hits" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "8aba0ad8d7314b6b8cf1e80cb0afb618", - "name": "Redis: Active defrag key misses{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.active_defrag_key_misses[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of keys that were skipped by the active defragmentation process", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.active_defrag_key_misses" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "3c20cca8b4a84c619d90d64a34386dfa", - "name": "Redis: Active defrag misses{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.active_defrag_misses[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of aborted value reallocations started by the active defragmentation process", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.active_defrag_misses" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "a34f4e33a0cb4381b5c3b7a507e90bee", - "name": "Redis: Expired stale %{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.expired_stale_perc[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.expired_stale_perc" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - }, - { - "uuid": "81667ae170b04ac0980e122566c5ed8e", - "name": "Redis: Expired time cap reached count{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.expired_time_cap_reached_count[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.expired_time_cap_reached_count" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "cycles" - } - ] - }, - { - "uuid": "93bf8753d6b242f1b8d2288fb926e01b", - "name": "Redis: Slave expires tracked keys{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.stats.slave_expires_tracked_keys[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "The number of keys tracked for expiry purposes (applicable only to writable replicas)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Stats.slave_expires_tracked_keys" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "keys" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "0c3560588d2d421c843c006ef5fa4645", - "expression": "last(/Redis by Zabbix agent 2/redis.memory.used_memory)/min(/Redis by Zabbix agent 2/redis.memory.maxmemory[{#SINGLETON}],5m)*100>{$REDIS.MEM.PUSED.MAX.WARN}", - "name": "Redis: Memory usage is too high", - "event_name": "Redis: Memory usage is too high (over {$REDIS.MEM.PUSED.MAX.WARN}% in 5m)", - "priority": "WARNING", - "tags": [ - { - "tag": "scope", - "value": "capacity" - }, - { - "tag": "scope", - "value": "performance" - } - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.redis_version" - ] - }, - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(parseInt(value.split('.')[0]) >= 4 ? [{'{#SINGLETON}': ''}] : []);" - ] - } - ] - }, - { - "uuid": "f7a9f1e26bb54cb6adf74ee9f30d88cd", - "name": "Version 5+ metrics discovery", - "type": "DEPENDENT", - "key": "redis.metrics.v5.discovery", - "delay": "0", - "description": "Additional metrics for versions 5+", - "item_prototypes": [ - { - "uuid": "adc25c08108e4fcaa3b41d2897d0a0c6", - "name": "Redis: Allocator active{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_active[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_active" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "81ef89fc751746ac8254a55a2b2e4ea7", - "name": "Redis: Allocator allocated{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_allocated[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_allocated" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "23e034630d7246f7ba993d5c6db2d6bb", - "name": "Redis: Allocator fragmentation bytes{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_frag_bytes[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_frag_bytes" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "690a13b13d134f648b4b8381f6a185f0", - "name": "Redis: Allocator fragmentation ratio{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_frag_ratio[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_frag_ratio" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "0abd6a9adb034536b3a389e0af2af732", - "name": "Redis: Allocator resident{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_resident[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_resident" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "b5ecad496c554ccaad495d2f112b5e2f", - "name": "Redis: Allocator RSS bytes{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_rss_bytes[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_rss_bytes" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "643fe70e1a7f488196b053722a2df9c2", - "name": "Redis: Allocator RSS ratio{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.allocator_rss_ratio[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.allocator_rss_ratio" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "40a639acab5a415a8fb48b7520b7d198", - "name": "Redis: Memory fragmentation bytes{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.fragmentation_bytes[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_fragmentation_bytes" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "70c53f60d020440c8f7cba83b32f58c9", - "name": "Redis: Memory AOF buffer{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.mem_aof_buffer[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Size of the AOF buffer", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_aof_buffer" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - }, - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "d64718269f20470e9661ff7c479dc300", - "name": "Redis: Memory clients normal{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.mem_clients_normal[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_clients_normal" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "e685ab11ab534f8abd1a7e2ee35839e8", - "name": "Redis: Memory clients slaves{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.mem_clients_slaves[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_clients_slaves" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "f6c9bfda015d47d0b34f466e95356a5d", - "name": "Redis: Memory not counted for evict{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.not_counted_for_evict[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_not_counted_for_evict" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "eaac8b142fc540ad9c7563e145819643", - "name": "Redis: Memory number of cached scripts{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.number_of_cached_scripts[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.number_of_cached_scripts" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "a221fd161be641c1a8091d0bfd1d2157", - "name": "Redis: Memory replication backlog{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.replication_backlog[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.mem_replication_backlog" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - }, - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "e699ad3b29ca486f91688684ffde6b73", - "name": "Redis: Memory RSS overhead bytes{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.rss_overhead_bytes[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "units": "B", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.rss_overhead_bytes" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "d4d51ae4ce214699ba760fcb62289a51", - "name": "Redis: Memory RSS overhead ratio{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.rss_overhead_ratio[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "value_type": "FLOAT", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.rss_overhead_ratio" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - }, - { - "uuid": "e3733b2993cb4199bfac8b0711d4bb72", - "name": "Redis: Memory used scripts{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.memory.used_memory_scripts[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Memory.used_memory_scripts" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "memory" - } - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Server.redis_version" - ] - }, - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(parseInt(value.split('.')[0]) >= 5 ? [{'{#SINGLETON}': ''}] : []);" - ] - } - ] - }, - { - "uuid": "ac3a22522a2c4fa1a256794dd2292480", - "name": "AOF metrics discovery", - "type": "DEPENDENT", - "key": "redis.persistence.aof.discovery", - "delay": "0", - "description": "If AOF is activated, additional metrics will be added", - "item_prototypes": [ - { - "uuid": "e68a7b6931324bd79268a5151717505e", - "name": "Redis: AOF base size{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_base_size[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "AOF file size on latest startup or rewrite", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_base_size" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "875ace20e5c94044ae63f36d98ac6256", - "name": "Redis: AOF buffer length{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_buffer_length[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Size of the AOF buffer", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_buffer_length" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "679bd919383a4106916a84fae5be47bb", - "name": "Redis: AOF current size{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_current_size[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "AOF current file size", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_current_size" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "ff9955c770aa4e0883cc72bf1d762be7", - "name": "Redis: AOF delayed fsync{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_delayed_fsync[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Delayed fsync counter", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_delayed_fsync" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "0606ef5762b04d91abba95269eb77ae2", - "name": "Redis: AOF pending background I/O fsync{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_pending_bio_fsync[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Number of fsync pending jobs in background I/O queue", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_pending_bio_fsync" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "194061b8ad6c484ca8c732d69eeb0f1e", - "name": "Redis: AOF pending rewrite{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_pending_rewrite[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Flag indicating an AOF rewrite operation will", - "valuemap": { - "name": "Redis flag" - }, - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_pending_rewrite" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - }, - { - "uuid": "1a39f5854ae948759deadac0ae57e9f7", - "name": "Redis: AOF rewrite buffer length{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.persistence.aof_rewrite_buffer_length[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Size of the AOF rewrite buffer", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Persistence.aof_rewrite_buffer_length" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "persistence" - } - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(JSON.parse(value).Persistence.aof_enabled === '1'\n ? [{'{#SINGLETON}': ''}]\n : []);" - ] - } - ] - }, - { - "uuid": "4379bad5624a4a5db0c86c5332cf5cc9", - "name": "Replication metrics discovery", - "type": "DEPENDENT", - "key": "redis.replication.master.discovery", - "delay": "0", - "description": "If the instance is the master and the slaves are connected, additional metrics are provided", - "item_prototypes": [ - { - "uuid": "2d26ebb0a5024378b59b3f0ee8e7fff4", - "name": "Redis slave {#SLAVE_IP}:{#SLAVE_PORT}: Replication lag in bytes", - "type": "DEPENDENT", - "key": "redis.replication.lag_bytes[\"{#SLAVE_IP}:{#SLAVE_PORT}\"]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "Replication lag in bytes", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "var repl = JSON.parse(value).Replication;\nvar res = Object.keys(repl)\n .filter(function (v) {return v.match(/slave\\d+/)})\n .filter(function (v) {return (repl[v].ip === \"{#SLAVE_IP}\" && repl[v].port === \"{#SLAVE_PORT}\")})\n .map(function (v) {return repl[v].offset})[0];\n\nif (res === undefined) {\n throw 'Slave {#SLAVE_IP}:{#SLAVE_PORT} is no longer available.';\n}\n\nreturn res;" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "0bce553a5a1240e2b097754dba8f6939", - "name": "Redis slave {#SLAVE_IP}:{#SLAVE_PORT}: Replication lag bytes", - "graph_items": [ - { - "drawtype": "BOLD_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.replication.lag_bytes[\"{#SLAVE_IP}:{#SLAVE_PORT}\"]" - } - } - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "var repl = JSON.parse(value).Replication;\nreturn JSON.stringify(Object.keys(repl)\n .filter(function (v) {return v.match(/slave\\d+/)})\n .map(function (v){\n return {\"{#SLAVE_IP}\": repl[v].ip, \"{#SLAVE_PORT}\": repl[v].port}\n }));" - ] - } - ] - }, - { - "uuid": "ca9296a7acb548789865ac716a54ce10", - "name": "Slave metrics discovery", - "type": "DEPENDENT", - "key": "redis.replication.slave.discovery", - "delay": "0", - "description": "If the instance is a replica, additional metrics are provided", - "item_prototypes": [ - { - "uuid": "92e4b2133a6a4ec28e739bbef94ab992", - "name": "Redis: Master host{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.master_host[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Host or IP address of the master", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.master_host" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "0acbeb8633da41be9bfb56627a946fd9", - "name": "Redis: Master last I/O seconds ago{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.master_last_io_seconds_ago[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "s", - "description": "Number of seconds since the last interaction with master", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.master_last_io_seconds_ago" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ], - "trigger_prototypes": [ - { - "uuid": "292f477d970d4a138d2d1b2c45d965dd", - "expression": "min(/Redis by Zabbix agent 2/redis.replication.master_last_io_seconds_ago[{#SINGLETON}],5m)>{$REDIS.REPL.LAG.MAX.WARN}", - "name": "Redis: Replication lag with master is too high", - "event_name": "Redis: Replication lag with master is too high (over {$REDIS.REPL.LAG.MAX.WARN} in 5m)", - "priority": "WARNING", - "tags": [ - { - "tag": "scope", - "value": "availability" - } - ] - } - ] - }, - { - "uuid": "8024463a9f644e6e91def5a0e88abd4b", - "name": "Redis: Master link status{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.master_link_status[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "trends": "0", - "value_type": "CHAR", - "description": "Status of the link (up/down)", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.master_link_status" - ] - }, - { - "type": "BOOL_TO_DECIMAL", - "parameters": [ - "" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "da63a0b31bed47edaba3f802738fa4fd", - "name": "Redis: Master port{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.master_port[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Master listening TCP port", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.master_port" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "6835a260e66741159ee10046265a1ea4", - "name": "Redis: Master sync in progress{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.master_sync_in_progress[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Indicate the master is syncing to the replica", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.master_sync_in_progress" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "3f92dfa07237495ca7696bb4b078eb93", - "name": "Redis: Slave priority{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.slave_priority[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "The priority of the instance as a candidate for failover", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.slave_priority" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "f38492a49f214ec8b71fdc51d243281e", - "name": "Redis: Slave priority{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.slave_read_only[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "description": "Flag indicating if the replica is read-only", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.slave_read_only" - ] - }, - { - "type": "DISCARD_UNCHANGED_HEARTBEAT", - "parameters": [ - "1d" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - }, - { - "uuid": "7eb23d1d96ea489c9e0b39b7839147bd", - "name": "Redis: Slave replication offset{#SINGLETON}", - "type": "DEPENDENT", - "key": "redis.replication.slave_repl_offset[{#SINGLETON}]", - "delay": "0", - "history": "7d", - "units": "B", - "description": "The replication offset of the replica instance", - "preprocessing": [ - { - "type": "JSONPATH", - "parameters": [ - "$.Replication.slave_repl_offset" - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "tags": [ - { - "tag": "component", - "value": "replication" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "bbc5fb3021be4c3381e48fe623b611f0", - "name": "Redis: Replication lag time{#SINGLETON}", - "graph_items": [ - { - "drawtype": "BOLD_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.replication.master_last_io_seconds_ago[{#SINGLETON}]" - } - } - ] - } - ], - "master_item": { - "key": "redis.info[\"{$REDIS.CONN.URI}\"]" - }, - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "return JSON.stringify(JSON.parse(value).Replication.role === 'slave'\n ? [{'{#SINGLETON}': ''}]\n : []);" - ] - } - ] - } - ], - "tags": [ - { - "tag": "class", - "value": "database" - }, - { - "tag": "target", - "value": "redis" - } - ], - "macros": [ - { - "macro": "{$REDIS.CLIENTS.PRC.MAX.WARN}", - "value": "80", - "description": "Maximum percentage of connected clients" - }, - { - "macro": "{$REDIS.CONN.URI}", - "value": "tcp://localhost:6379", - "description": "Connection string in the URI format (password is not used). This param overwrites a value configured in the \"Server\" option of the configuration file (if it's set), otherwise, the plugin's default value is used: \"tcp://localhost:6379\"" - }, - { - "macro": "{$REDIS.LLD.FILTER.DB.MATCHES}", - "value": ".*", - "description": "Filter of discoverable databases" - }, - { - "macro": "{$REDIS.LLD.FILTER.DB.NOT_MATCHES}", - "value": "CHANGE_IF_NEEDED", - "description": "Filter to exclude discovered databases" - }, - { - "macro": "{$REDIS.LLD.PROCESS_NAME}", - "value": "redis-server", - "description": "Redis server process name for LLD" - }, - { - "macro": "{$REDIS.MEM.FRAG_RATIO.MAX.WARN}", - "value": "1.7", - "description": "Maximum memory fragmentation ratio" - }, - { - "macro": "{$REDIS.MEM.PUSED.MAX.WARN}", - "value": "90", - "description": "Maximum percentage of memory used" - }, - { - "macro": "{$REDIS.PROCESS_NAME}", - "value": "redis-server", - "description": "Redis server process name" - }, - { - "macro": "{$REDIS.REPL.LAG.MAX.WARN}", - "value": "30s", - "description": "Maximum replication lag in seconds" - }, - { - "macro": "{$REDIS.SLOWLOG.COUNT.MAX.WARN}", - "value": "1", - "description": "Maximum number of slowlog entries per second" - } - ], - "dashboards": [ - { - "uuid": "7c5bdd7bc74648c4891abc6649d105d0", - "name": "Redis overview", - "pages": [ - { - "widgets": [ - { - "type": "graph", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Clients" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Commands" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Persistence" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "15", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Slowlog" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graphprototype", - "y": "20", - "width": "12", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Replication lag time{#SINGLETON}" - } - }, - { - "type": "INTEGER", - "name": "rows", - "value": "1" - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "2" - } - ] - }, - { - "type": "graph", - "x": "12", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Keyspace" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Expired keys" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "10", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Slaves" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "15", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Uptime" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - } - ] - } - ] - }, - { - "uuid": "ee4c29eb7a0f443fafb7e7d3b9df7b24", - "name": "Redis performance", - "pages": [ - { - "widgets": [ - { - "type": "graph", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: CPU" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Memory" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "x": "12", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Network" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "x": "12", - "y": "5", - "width": "12", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "Redis by Zabbix agent 2", - "name": "Redis: Memory fragmentation" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - } - ] - } - ] - } - ], - "valuemaps": [ - { - "uuid": "82f4dc4ef0c9471d82dbe3605f4f31d0", - "name": "Redis bgsave time", - "mappings": [ - { - "value": "- 1s", - "newvalue": "Inactive" - } - ] - }, - { - "uuid": "098c2240a8e947fc9f6f0a677ffcbc0e", - "name": "Redis bgwrite status", - "mappings": [ - { - "value": "0", - "newvalue": "Error" - }, - { - "value": "1", - "newvalue": "Ok" - } - ] - }, - { - "uuid": "3b6cd97c65d14e10bdabf5c42d767ad9", - "name": "Redis flag", - "mappings": [ - { - "value": "0", - "newvalue": "No" - }, - { - "value": "1", - "newvalue": "Yes" - } - ] - }, - { - "uuid": "47c80efdf46745f1959eee76f68014e7", - "name": "Redis repl offset", - "mappings": [ - { - "value": "-1 B", - "newvalue": "Undefined" - } - ] - }, - { - "uuid": "ae3eec95cd1c440ba6c67ed5d7b7b915", - "name": "Service state", - "mappings": [ - { - "value": "0", - "newvalue": "Down" - }, - { - "value": "1", - "newvalue": "Up" - } - ] - } - ] - } - ], - "triggers": [ - { - "uuid": "65e4652dbebe47c4b46e47bb8a17aac6", - "expression": "min(/Redis by Zabbix agent 2/redis.clients.connected,5m)/last(/Redis by Zabbix agent 2/redis.config.maxclients)*100>{$REDIS.CLIENTS.PRC.MAX.WARN}", - "name": "Redis: Total number of connected clients is too high", - "event_name": "Redis: Total number of connected clients is too high (over {$REDIS.CLIENTS.PRC.MAX.WARN}% in 5m)", - "priority": "WARNING", - "description": "When the number of clients reaches the value of the \"maxclients\" parameter, new connections will be rejected.\n\nhttps://redis.io/topics/clients#maximum-number-of-clients", - "tags": [ - { - "tag": "scope", - "value": "performance" - } - ] - } - ], - "graphs": [ - { - "uuid": "c04e813d482a4709b13aa2a98911e11d", - "name": "Redis: Clients", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.clients.connected" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.clients.blocked" - } - } - ] - }, - { - "uuid": "8643a1b690dc456b8daacc4b2b0810d4", - "name": "Redis: Commands", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.instantaneous_ops.rate" - } - } - ] - }, - { - "uuid": "765c0125e8d549dc88279f65f38b6ed9", - "name": "Redis: CPU", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.cpu.sys" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.cpu.sys_children" - } - }, - { - "sortorder": "2", - "drawtype": "GRADIENT_LINE", - "color": "F63100", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.cpu.user" - } - }, - { - "sortorder": "3", - "color": "A54F10", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.cpu.user_children" - } - } - ] - }, - { - "uuid": "fd25ac6239064cd29dc1939cd15005de", - "name": "Redis: Expired keys", - "graph_items": [ - { - "drawtype": "BOLD_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.expired_keys" - } - }, - { - "sortorder": "1", - "drawtype": "BOLD_LINE", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.evicted_keys" - } - } - ] - }, - { - "uuid": "24cff7af388e41a8899e2916f12224d1", - "name": "Redis: Keyspace", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.keyspace_hits" - } - }, - { - "sortorder": "1", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.keyspace_misses" - } - } - ] - }, - { - "uuid": "a3ea32878f25481998e0fde7ba00a11b", - "name": "Redis: Memory", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.memory.used_memory" - } - }, - { - "sortorder": "1", - "drawtype": "BOLD_LINE", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.memory.used_memory_rss" - } - }, - { - "sortorder": "2", - "drawtype": "BOLD_LINE", - "color": "F63100", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.memory.used_memory_peak" - } - } - ] - }, - { - "uuid": "ff8d6320a8e246a39d35ccb93220eb3a", - "name": "Redis: Memory fragmentation", - "graph_items": [ - { - "drawtype": "BOLD_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.memory.fragmentation_ratio" - } - } - ] - }, - { - "uuid": "b3db4cc8247647faae0d3c2389f37d80", - "name": "Redis: Network", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.instantaneous_input.rate" - } - }, - { - "sortorder": "1", - "drawtype": "GRADIENT_LINE", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.stats.instantaneous_output.rate" - } - } - ] - }, - { - "uuid": "81fde2046d2340119b2002da2b75df16", - "name": "Redis: Persistence", - "graph_items": [ - { - "drawtype": "BOLD_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.persistence.rdb_last_bgsave_time_sec" - } - }, - { - "sortorder": "1", - "drawtype": "BOLD_LINE", - "color": "2774A4", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.persistence.aof_last_rewrite_time_sec" - } - } - ] - }, - { - "uuid": "1ace370516b74875977788d44ab478e5", - "name": "Redis: Slaves", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.replication.connected_slaves" - } - } - ] - }, - { - "uuid": "8dd9935cb7a24004b9783c3f1a445f1b", - "name": "Redis: Slowlog", - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.slowlog.count[\"{$REDIS.CONN.URI}\"]" - } - } - ] - }, - { - "uuid": "32d954e849e64fe99bd8846b54aadede", - "name": "Redis: Uptime", - "graph_items": [ - { - "color": "1A7C11", - "item": { - "host": "Redis by Zabbix agent 2", - "key": "redis.server.uptime" - } - } - ] - } - ] - } -} \ No newline at end of file diff --git a/zabbix-templates/zfs-zabbix-template.json b/zabbix-templates/zfs-zabbix-template.json deleted file mode 100644 index 82ae801..0000000 --- a/zabbix-templates/zfs-zabbix-template.json +++ /dev/null @@ -1,1615 +0,0 @@ -{ - "zabbix_export": { - "version": "6.4", - "template_groups": [ - { - "uuid": "cf12023e2c3542409d7152bdbb8dcd2a", - "name": "Nextcloud Installation" - }, - { - "uuid": "7df96b18c230490a9a0a9e2307226338", - "name": "Templates" - } - ], - "templates": [ - { - "uuid": "47d3c2ff933947368d4bee4b1184d69b", - "template": "ZFS", - "name": "ZFS", - "groups": [ - { - "name": "Nextcloud Installation" - }, - { - "name": "Templates" - } - ], - "items": [ - { - "uuid": "4ecabdcb2104460f83c2ad5f18fd98f9", - "name": "ZFS on Linux version", - "type": "ZABBIX_ACTIVE", - "key": "vfs.file.contents[/sys/module/zfs/version]", - "delay": "1h", - "history": "30d", - "trends": "0", - "value_type": "TEXT", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - } - ], - "triggers": [ - { - "uuid": "879881de9f8b4b97b5270df192d86850", - "expression": "(last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#1)<>last(/ZFS/vfs.file.contents[/sys/module/zfs/version],#2))>0", - "name": "Version of ZoL is now {ITEM.VALUE} on {HOST.NAME}", - "priority": "INFO" - } - ] - }, - { - "uuid": "6b5fc935fe194d30badea64eaf3f317f", - "name": "ZFS ARC stat \"arc_dnode_limit\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[arc_dnode_limit]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "0b7d673688e3429d92aa349762729f83", - "name": "ZFS ARC stat \"arc_meta_limit\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[arc_meta_limit]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "b0b5004458494182bf874545f8eb4e41", - "name": "ZFS ARC stat \"arc_meta_used\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[arc_meta_used]", - "history": "30d", - "units": "B", - "description": "arc_meta_used = hdr_size + metadata_size + dbuf_size + dnode_size + bonus_size", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "795ab079ba13461c872ee1d5c0295704", - "name": "ZFS ARC stat \"bonus_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[bonus_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "34a1fb79b2b64ce08ec5b377211372d7", - "name": "ZFS ARC max size", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[c_max]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "d60b8e4f7a3d4bea972e7fe04c3bb5ca", - "name": "ZFS ARC minimum size", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[c_min]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "5e12dd98f1644f5a87cc5ded5d2e55d8", - "name": "ZFS ARC stat \"data_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[data_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "522a0f33c90047bab4f55b7214f51dea", - "name": "ZFS ARC stat \"dbuf_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[dbuf_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "a3d10ebb57984a829f780a229fc9617c", - "name": "ZFS ARC stat \"dnode_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[dnode_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "184eef57aa034cf8acaf6a8f0e02395b", - "name": "ZFS ARC stat \"hdr_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[hdr_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "cb7bcc02dfc14329a361e194145871c0", - "name": "ZFS ARC stat \"hits\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[hits]", - "history": "30d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "8df273b6e0904c9ab140f8f13f6ca973", - "name": "ZFS ARC stat \"metadata_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[metadata_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "dcd96743ed984018bff5d16105693606", - "name": "ZFS ARC stat \"mfu_hits\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[mfu_hits]", - "history": "30d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "1015ebe8ef6f4626ae7967bf6358f1b3", - "name": "ZFS ARC stat \"mfu_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[mfu_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "1298a265a6784e63a166b768e1faf67e", - "name": "ZFS ARC stat \"misses\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[misses]", - "history": "30d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "c85d0e9e1b464748a20148e2f2507609", - "name": "ZFS ARC stat \"mru_hits\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[mru_hits]", - "history": "30d", - "preprocessing": [ - { - "type": "CHANGE_PER_SECOND", - "parameters": [ - "" - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "50954c7b43d745d09990011df4d7448c", - "name": "ZFS ARC stat \"mru_size\"", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[mru_size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "cd225da5a02346a58dbe0c9808a628eb", - "name": "ZFS ARC current size", - "type": "ZABBIX_ACTIVE", - "key": "zfs.arcstats[size]", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "8c8129f814fe47ae9c71e636599acd90", - "name": "ZFS ARC Cache Hit Ratio", - "type": "CALCULATED", - "key": "zfs.arcstats_hit_ratio", - "history": "30d", - "value_type": "FLOAT", - "units": "%", - "params": "100*(last(//zfs.arcstats[hits])/(last(//zfs.arcstats[hits])+count(//zfs.arcstats[hits],#1,,\"0\")+last(//zfs.arcstats[misses])))", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "e644390a9c9743f2844dbc9ef8806a8f", - "name": "ZFS ARC total read", - "type": "CALCULATED", - "key": "zfs.arcstats_total_read", - "history": "30d", - "units": "B", - "params": "last(//zfs.arcstats[hits])+last(//zfs.arcstats[misses])", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "ebfb742fb123451c9632d12bde0957c4", - "name": "ZFS parameter zfs_arc_dnode_limit_percent", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.param[zfs_arc_dnode_limit_percent]", - "delay": "1h", - "history": "30d", - "units": "%", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - }, - { - "uuid": "18d8b817852848929f4e0b421cb21532", - "name": "ZFS parameter zfs_arc_meta_limit_percent", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.param[zfs_arc_meta_limit_percent]", - "delay": "1h", - "history": "30d", - "units": "%", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS ARC" - } - ] - } - ], - "discovery_rules": [ - { - "uuid": "a82a1b7067904fecb06bcf5b88457192", - "name": "Zfs Dataset discovery", - "type": "ZABBIX_ACTIVE", - "key": "zfs.fileset.discovery", - "delay": "30m", - "status": "DISABLED", - "filter": { - "evaltype": "AND", - "conditions": [ - { - "macro": "{#FILESETNAME}", - "value": "{$ZFS_FSNAME_MATCHES}", - "formulaid": "A" - }, - { - "macro": "{#FILESETNAME}", - "value": "{$ZFS_FSNAME_NOTMATCHES}", - "operator": "NOT_MATCHES_REGEX", - "formulaid": "B" - } - ] - }, - "lifetime": "2d", - "description": "Discover ZFS dataset. Dataset names must contain a \"/\" else it's a zpool.", - "item_prototypes": [ - { - "uuid": "4d7c96bd10b44754b2c8790b90c12046", - "name": "Zfs dataset {#FILESETNAME} compressratio", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.compressratio[{#FILESETNAME}]", - "delay": "30m", - "history": "30d", - "value_type": "FLOAT", - "units": "%", - "preprocessing": [ - { - "type": "MULTIPLIER", - "parameters": [ - "100" - ] - } - ], - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - }, - { - "uuid": "e9df401ae71e45c8a3fdbbd146cdd57b", - "name": "Zfs dataset {#FILESETNAME} available", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#FILESETNAME},available]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - }, - { - "uuid": "ed63bb6942364281bcea80c54b6f8fcc", - "name": "Zfs dataset {#FILESETNAME} referenced", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#FILESETNAME},referenced]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - }, - { - "uuid": "7ef4530ddf464defb2a64ce674a82c8c", - "name": "Zfs dataset {#FILESETNAME} usedbychildren", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - }, - { - "uuid": "3c7f982147be49629c78aa67a1d8d56e", - "name": "Zfs dataset {#FILESETNAME} usedbydataset", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]", - "delay": "1h", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - }, - { - "uuid": "cc0e02c58b28443eb78eeacc81095966", - "name": "Zfs dataset {#FILESETNAME} usedbysnapshots", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - }, - { - "uuid": "a54feffafdb34ba08f1474ab4710088d", - "name": "Zfs dataset {#FILESETNAME} used", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#FILESETNAME},used]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS dataset" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "cc0b0756d2fe42779b62adf63e38681d", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_AVERAGE_ALERT}/100)", - "name": "More than {$ZFS_AVERAGE_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", - "priority": "AVERAGE", - "dependencies": [ - { - "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)" - } - ] - }, - { - "uuid": "8bfb157ac42845c0b340e28ae510833c", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)", - "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", - "priority": "DISASTER" - }, - { - "uuid": "9b592a2cba084bec9ceb4f82367e758b", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_HIGH_ALERT}/100)", - "name": "More than {$ZFS_HIGH_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", - "priority": "HIGH", - "dependencies": [ - { - "name": "More than {$ZFS_DISASTER_ALERT}% used on dataset {#FILESETNAME} on {HOST.NAME}", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#FILESETNAME},used]) ) ) > ({$ZFS_DISASTER_ALERT}/100)" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "5213684719404718b8956d6faf0e6b71", - "name": "ZFS dataset {#FILESETNAME} usage", - "type": "STACKED", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "sortorder": "1", - "color": "3333FF", - "item": { - "host": "ZFS", - "key": "zfs.get.fsinfo[{#FILESETNAME},usedbydataset]" - } - }, - { - "sortorder": "2", - "color": "FF33FF", - "item": { - "host": "ZFS", - "key": "zfs.get.fsinfo[{#FILESETNAME},usedbysnapshots]" - } - }, - { - "sortorder": "3", - "color": "FF3333", - "item": { - "host": "ZFS", - "key": "zfs.get.fsinfo[{#FILESETNAME},usedbychildren]" - } - }, - { - "sortorder": "4", - "color": "33FF33", - "item": { - "host": "ZFS", - "key": "zfs.get.fsinfo[{#FILESETNAME},available]" - } - } - ] - } - ] - }, - { - "uuid": "08039e570bd7417294d043f4f7bf960f", - "name": "Zfs Pool discovery", - "type": "ZABBIX_ACTIVE", - "key": "zfs.pool.discovery", - "delay": "1h", - "lifetime": "3d", - "item_prototypes": [ - { - "uuid": "9f889e9529934fdfbf47a29de32468f0", - "name": "Zpool {#POOLNAME} available", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#POOLNAME},available]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "1993c04b00bc428bbdf43c909967afd2", - "name": "Zpool {#POOLNAME} used", - "type": "ZABBIX_ACTIVE", - "key": "zfs.get.fsinfo[{#POOLNAME},used]", - "delay": "5m", - "history": "30d", - "units": "B", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "472e21c79759476984cbf4ce9f12580a", - "name": "Zpool {#POOLNAME} Health", - "type": "ZABBIX_ACTIVE", - "key": "zfs.zpool.health[{#POOLNAME}]", - "delay": "5m", - "history": "30d", - "trends": "0", - "value_type": "TEXT", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ], - "trigger_prototypes": [ - { - "uuid": "4855fe0ed61b444daad73aa6090b46af", - "expression": "find(/ZFS/zfs.zpool.health[{#POOLNAME}],,\"like\",\"ONLINE\")=0", - "name": "Zpool {#POOLNAME} is {ITEM.VALUE} on {HOST.NAME}", - "priority": "HIGH" - } - ] - }, - { - "uuid": "3207e6ffd0fa40c4a1d6e607e4e12375", - "name": "Zpool {#POOLNAME} read throughput", - "type": "DEPENDENT", - "key": "zfs.zpool.iostat.nread[{#POOLNAME}]", - "delay": "0", - "history": "30d", - "value_type": "FLOAT", - "units": "Bps", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[5];" - ] - } - ], - "master_item": { - "key": "zfs.zpool.iostat[{#POOLNAME}]" - }, - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "78b418605f9b45b29bbd33b93a6b2e82", - "name": "Zpool {#POOLNAME} write throughput", - "type": "DEPENDENT", - "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]", - "delay": "0", - "history": "30d", - "value_type": "FLOAT", - "units": "Bps", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[6];" - ] - } - ], - "master_item": { - "key": "zfs.zpool.iostat[{#POOLNAME}]" - }, - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "6b35bf06bf4542318a7999ac4d7952f7", - "name": "Zpool {#POOLNAME} IOPS: reads", - "type": "DEPENDENT", - "key": "zfs.zpool.iostat.reads[{#POOLNAME}]", - "delay": "0", - "history": "30d", - "value_type": "FLOAT", - "units": "iops", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[3];" - ] - } - ], - "master_item": { - "key": "zfs.zpool.iostat[{#POOLNAME}]" - }, - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "b99d5ab922324536bc2e013ac1fca306", - "name": "Zpool {#POOLNAME} IOPS: writes", - "type": "DEPENDENT", - "key": "zfs.zpool.iostat.writes[{#POOLNAME}]", - "delay": "0", - "history": "30d", - "value_type": "FLOAT", - "units": "iops", - "preprocessing": [ - { - "type": "JAVASCRIPT", - "parameters": [ - "'use strict';\nvar text = value;\nconst myArray = text.split(\"\t\");\nreturn myArray[4];" - ] - } - ], - "master_item": { - "key": "zfs.zpool.iostat[{#POOLNAME}]" - }, - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "7142e6f1eceb4dc29e3a03d494230564", - "name": "Zpool {#POOLNAME}: Get iostats", - "type": "ZABBIX_ACTIVE", - "key": "zfs.zpool.iostat[{#POOLNAME}]", - "history": "0", - "trends": "0", - "value_type": "TEXT", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ] - }, - { - "uuid": "867075d6eb1743069be868007472192b", - "name": "Zpool {#POOLNAME} scrub status", - "type": "ZABBIX_ACTIVE", - "key": "zfs.zpool.scrub[{#POOLNAME}]", - "delay": "5m", - "history": "30d", - "description": "Detect if the pool is currently scrubbing itself.\n\nThis is not a bad thing itself, but it slows down the entire pool and should be terminated when on production server during business hours if it causes a noticeable slowdown.", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS zpool" - } - ], - "trigger_prototypes": [ - { - "uuid": "792be07c555c4ae6a9819d69d332357b", - "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],12h)=0", - "name": "Zpool {#POOLNAME} is scrubbing for more than 12h on {HOST.NAME}", - "priority": "AVERAGE", - "dependencies": [ - { - "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", - "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0" - } - ] - }, - { - "uuid": "04cac9633f164227b1f9b2fe26923609", - "expression": "max(/ZFS/zfs.zpool.scrub[{#POOLNAME}],24h)=0", - "name": "Zpool {#POOLNAME} is scrubbing for more than 24h on {HOST.NAME}", - "priority": "HIGH" - } - ] - } - ], - "trigger_prototypes": [ - { - "uuid": "82fce07b30114c7e8645689317e2c1b4", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_AVERAGE_ALERT}/100)", - "name": "More than {$ZPOOL_AVERAGE_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", - "priority": "AVERAGE", - "dependencies": [ - { - "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)" - } - ] - }, - { - "uuid": "ab56a2a8eb3d4b4294707e2a8aa94e22", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)", - "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", - "priority": "DISASTER" - }, - { - "uuid": "c9c22e6617af4ad09970d2988c4a7fe7", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_HIGH_ALERT}/100)", - "name": "More than {$ZPOOL_HIGH_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", - "priority": "HIGH", - "dependencies": [ - { - "name": "More than {$ZPOOL_DISASTER_ALERT}% used on zpool {#POOLNAME} on {HOST.NAME}", - "expression": "( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) / ( last(/ZFS/zfs.get.fsinfo[{#POOLNAME},available]) + last(/ZFS/zfs.get.fsinfo[{#POOLNAME},used]) ) ) > ({$ZPOOL_DISASTER_ALERT}/100)" - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "926abae3e18144f0899711fdfd16e808", - "name": "ZFS zpool {#POOLNAME} IOPS", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "sortorder": "1", - "color": "5C6BC0", - "item": { - "host": "ZFS", - "key": "zfs.zpool.iostat.reads[{#POOLNAME}]" - } - }, - { - "sortorder": "2", - "color": "EF5350", - "item": { - "host": "ZFS", - "key": "zfs.zpool.iostat.writes[{#POOLNAME}]" - } - } - ] - }, - { - "uuid": "63ae2d7acd4d4d15b4c5e7a5a90a063a", - "name": "ZFS zpool {#POOLNAME} space usage", - "type": "STACKED", - "graph_items": [ - { - "sortorder": "1", - "color": "00EE00", - "item": { - "host": "ZFS", - "key": "zfs.get.fsinfo[{#POOLNAME},available]" - } - }, - { - "sortorder": "2", - "color": "EE0000", - "item": { - "host": "ZFS", - "key": "zfs.get.fsinfo[{#POOLNAME},used]" - } - } - ] - }, - { - "uuid": "aa35d164bacd45c5983fd2856781da88", - "name": "ZFS zpool {#POOLNAME} throughput", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "sortorder": "1", - "color": "5C6BC0", - "item": { - "host": "ZFS", - "key": "zfs.zpool.iostat.nread[{#POOLNAME}]" - } - }, - { - "sortorder": "2", - "drawtype": "BOLD_LINE", - "color": "EF5350", - "item": { - "host": "ZFS", - "key": "zfs.zpool.iostat.nwritten[{#POOLNAME}]" - } - } - ] - } - ] - }, - { - "uuid": "6c96e092f08f4b98af9a377782180689", - "name": "Zfs vdev discovery", - "type": "ZABBIX_ACTIVE", - "key": "zfs.vdev.discovery", - "delay": "1h", - "lifetime": "3d", - "item_prototypes": [ - { - "uuid": "9f63161726774a28905c87aac92cf1e9", - "name": "vdev {#VDEV}: CHECKSUM error counter", - "type": "ZABBIX_ACTIVE", - "key": "zfs.vdev.error_counter.cksum[{#VDEV}]", - "delay": "5m", - "history": "30d", - "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS vdev" - } - ] - }, - { - "uuid": "48a02eb060fd4b73bdde08a2795c4717", - "name": "vdev {#VDEV}: READ error counter", - "type": "ZABBIX_ACTIVE", - "key": "zfs.vdev.error_counter.read[{#VDEV}]", - "delay": "5m", - "history": "30d", - "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS vdev" - } - ] - }, - { - "uuid": "15953ba38fde4b8c8681955a27d9204a", - "name": "vdev {#VDEV}: WRITE error counter", - "type": "ZABBIX_ACTIVE", - "key": "zfs.vdev.error_counter.write[{#VDEV}]", - "delay": "5m", - "history": "30d", - "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS vdev" - } - ] - }, - { - "uuid": "3e64a59d2a154a89a3bc43483942302d", - "name": "vdev {#VDEV}: total number of errors", - "type": "CALCULATED", - "key": "zfs.vdev.error_total[{#VDEV}]", - "delay": "5m", - "history": "30d", - "params": "last(//zfs.vdev.error_counter.cksum[{#VDEV}])+last(//zfs.vdev.error_counter.read[{#VDEV}])+last(//zfs.vdev.error_counter.write[{#VDEV}])", - "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.", - "tags": [ - { - "tag": "Application", - "value": "ZFS" - }, - { - "tag": "Application", - "value": "ZFS vdev" - } - ], - "trigger_prototypes": [ - { - "uuid": "44f7667c275d4a04891bc4f1d00e668b", - "expression": "last(/ZFS/zfs.vdev.error_total[{#VDEV}])>0", - "name": "vdev {#VDEV} has encountered {ITEM.VALUE} errors on {HOST.NAME}", - "priority": "HIGH", - "description": "This device has experienced an unrecoverable error. Determine if the device needs to be replaced.\n\nIf yes, use 'zpool replace' to replace the device.\n\nIf not, clear the error with 'zpool clear'.\n\nYou may also run a zpool scrub to check if some other undetected errors are present on this vdev." - } - ] - } - ], - "graph_prototypes": [ - { - "uuid": "ab78dba991ba4311a04740fc69b30381", - "name": "ZFS vdev {#VDEV} errors", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "color": "CC00CC", - "item": { - "host": "ZFS", - "key": "zfs.vdev.error_counter.cksum[{#VDEV}]" - } - }, - { - "sortorder": "1", - "color": "F63100", - "item": { - "host": "ZFS", - "key": "zfs.vdev.error_counter.read[{#VDEV}]" - } - }, - { - "sortorder": "2", - "color": "BBBB00", - "item": { - "host": "ZFS", - "key": "zfs.vdev.error_counter.write[{#VDEV}]" - } - } - ] - } - ] - } - ], - "macros": [ - { - "macro": "{$ZFS_ARC_META_ALERT}", - "value": "90" - }, - { - "macro": "{$ZFS_AVERAGE_ALERT}", - "value": "90" - }, - { - "macro": "{$ZFS_DISASTER_ALERT}", - "value": "99" - }, - { - "macro": "{$ZFS_FSNAME_MATCHES}", - "value": "/", - "description": "Use this to determine the datasets to autodiscover defaults to all datasets with a '/' in the name" - }, - { - "macro": "{$ZFS_FSNAME_NOTMATCHES}", - "value": "([a-z-0-9]{64}$|[a-z-0-9]{64}-init$)", - "description": "Use this to determine the datasets to not autodiscover. Ignore docker created datasets by default" - }, - { - "macro": "{$ZFS_HIGH_ALERT}", - "value": "95" - }, - { - "macro": "{$ZPOOL_AVERAGE_ALERT}", - "value": "85" - }, - { - "macro": "{$ZPOOL_DISASTER_ALERT}", - "value": "99" - }, - { - "macro": "{$ZPOOL_HIGH_ALERT}", - "value": "90" - } - ], - "dashboards": [ - { - "uuid": "180e8c0dc05946e4b8552e3a01df347f", - "name": "ZFS ARC", - "pages": [ - { - "widgets": [ - { - "type": "graph", - "width": "24", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS ARC memory usage" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "5", - "width": "24", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS ARC Cache Hit Ratio" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "10", - "width": "24", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS ARC breakdown" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - }, - { - "type": "graph", - "y": "15", - "width": "24", - "height": "5", - "fields": [ - { - "type": "GRAPH", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS ARC arc_meta_used breakdown" - } - }, - { - "type": "INTEGER", - "name": "source_type", - "value": "0" - } - ] - } - ] - } - ] - }, - { - "uuid": "442dda5c36c04fc78c3a73eacf26bc7f", - "name": "ZFS zpools", - "pages": [ - { - "widgets": [ - { - "type": "graphprototype", - "width": "8", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS zpool {#POOLNAME} IOPS" - } - } - ] - }, - { - "type": "graphprototype", - "x": "8", - "width": "8", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS zpool {#POOLNAME} throughput" - } - } - ] - }, - { - "type": "graphprototype", - "x": "16", - "width": "8", - "height": "5", - "fields": [ - { - "type": "INTEGER", - "name": "columns", - "value": "1" - }, - { - "type": "GRAPH_PROTOTYPE", - "name": "graphid", - "value": { - "host": "ZFS", - "name": "ZFS zpool {#POOLNAME} space usage" - } - } - ] - } - ] - } - ] - } - ], - "valuemaps": [ - { - "uuid": "d1d7b0898d06481dbcec8b02d915fb1c", - "name": "ZFS zpool scrub status", - "mappings": [ - { - "value": "0", - "newvalue": "Scrub in progress" - }, - { - "value": "1", - "newvalue": "No scrub in progress" - } - ] - } - ] - } - ], - "triggers": [ - { - "uuid": "1daac44b853b4b6da767c9c3af96b774", - "expression": "last(/ZFS/zfs.arcstats[dnode_size])>(last(/ZFS/zfs.arcstats[arc_dnode_limit])*0.9)", - "name": "ZFS ARC dnode size > 90% dnode max size on {HOST.NAME}", - "priority": "HIGH" - }, - { - "uuid": "69c18b7ceb3d4da2bda0e05f9a12453f", - "expression": "last(/ZFS/zfs.arcstats[arc_meta_used])>(last(/ZFS/zfs.arcstats[arc_meta_limit])*0.01*{$ZFS_ARC_META_ALERT})", - "name": "ZFS ARC meta size > {$ZFS_ARC_META_ALERT}% meta max size on {HOST.NAME}", - "priority": "HIGH" - } - ], - "graphs": [ - { - "uuid": "1510111dc5414e6d80a5230ce6a81f1d", - "name": "ZFS ARC arc_meta_used breakdown", - "type": "STACKED", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "color": "3333FF", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[metadata_size]" - } - }, - { - "sortorder": "1", - "color": "00EE00", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[dnode_size]" - } - }, - { - "sortorder": "2", - "color": "EE0000", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[hdr_size]" - } - }, - { - "sortorder": "3", - "color": "EEEE00", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[dbuf_size]" - } - }, - { - "sortorder": "4", - "color": "EE00EE", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[bonus_size]" - } - } - ] - }, - { - "uuid": "203eeeaadc9444ccbbc31cf043e836cb", - "name": "ZFS ARC breakdown", - "type": "STACKED", - "ymin_type_1": "FIXED", - "graph_items": [ - { - "color": "3333FF", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[data_size]" - } - }, - { - "sortorder": "1", - "color": "00AA00", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[metadata_size]" - } - }, - { - "sortorder": "2", - "color": "EE0000", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[dnode_size]" - } - }, - { - "sortorder": "3", - "color": "CCCC00", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[hdr_size]" - } - }, - { - "sortorder": "4", - "color": "A54F10", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[dbuf_size]" - } - }, - { - "sortorder": "5", - "color": "888888", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[bonus_size]" - } - } - ] - }, - { - "uuid": "4c493303be4a45a7a96d3ef7246843c0", - "name": "ZFS ARC Cache Hit Ratio", - "ymin_type_1": "FIXED", - "ymax_type_1": "FIXED", - "graph_items": [ - { - "color": "00CC00", - "item": { - "host": "ZFS", - "key": "zfs.arcstats_hit_ratio" - } - } - ] - }, - { - "uuid": "b2fce9515a7d4218a5e9015f212c2a60", - "name": "ZFS ARC memory usage", - "ymin_type_1": "FIXED", - "ymax_type_1": "ITEM", - "ymax_item_1": { - "host": "ZFS", - "key": "zfs.arcstats[c_max]" - }, - "graph_items": [ - { - "drawtype": "GRADIENT_LINE", - "color": "0000EE", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[size]" - } - }, - { - "sortorder": "1", - "drawtype": "BOLD_LINE", - "color": "DD0000", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[c_max]" - } - }, - { - "sortorder": "2", - "color": "00BB00", - "item": { - "host": "ZFS", - "key": "zfs.arcstats[c_min]" - } - } - ] - } - ] - } -} \ No newline at end of file