diff --git a/MySQL by Zabbix agent.yaml b/MySQL by Zabbix agent.yaml new file mode 100644 index 0000000..2bb210e --- /dev/null +++ b/MySQL by Zabbix agent.yaml @@ -0,0 +1,1639 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: f255e3fc32124b55b2a17ef3c961e5f5 + template: 'MySQL by Zabbix agent' + name: 'MySQL by Zabbix agent' + description: | + Requirements for template operation: + 1.Install Zabbix agent and MySQL client. + 2.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. + 3.Create MySQL user for monitoring. For example: + CREATE USER 'zbx_monitor'@'%' IDENTIFIED BY ''; + GRANT REPLICATION CLIENT,PROCESS,SHOW DATABASES,SHOW VIEW ON *.* TO 'zbx_monitor'@'%'; + For more information read the MySQL documentation https://dev.mysql.com/doc/refman/8.0/en/grant.html , please. + 4.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: + [client] + user='zbx_monitor' + password='' + + + You 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 + + Template tooling version used: 0.42 + vendor: + name: Zabbix + version: 6.4-0 + 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) / + ( last(//mysql.innodb_buffer_pool_read_requests) + + ( last(//mysql.innodb_buffer_pool_read_requests) = 0 ) ) * 100 * + ( 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) - + last(//mysql.innodb_buffer_pool_pages_free) ) / + ( last(//mysql.innodb_buffer_pool_pages_total) + + ( last(//mysql.innodb_buffer_pool_pages_total) = 0 ) ) * 100 * + ( 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 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: '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(/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: '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(/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: 'Possibly the application using the database is 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: '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' + 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(/MySQL by Zabbix agent/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(/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 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(/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 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 + 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: 'MySQL version has changed. Ack to close.' + 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: + 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 + units: B + 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) { + return ({"{#DBNAME}": name}); + })); + - 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' + 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. + A high number (or an increasing one) can indicate that the slave is unable to handle events + from 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(/MySQL by Zabbix agent/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. + Normally, you want this to be Yes unless you have not yet started replication or have + explicitly 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(/MySQL by Zabbix agent/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(/MySQL by Zabbix agent/mysql.slave_io_running["{#MASTERHOST}"],#1,"eq","No")=1' + tags: + - tag: scope + value: availability + - uuid: 4c8ca45f26254d9a9a1c9248f1fa1537 + expression: 'count(/MySQL by Zabbix agent/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. + As 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(/MySQL by Zabbix agent/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(/MySQL by Zabbix agent/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.*>(.*)<.*/); + if (matches) { + return JSON.stringify([{"{#MASTERHOST}": matches[1]}]); + } + + return '[]'; + - 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: 'MySQL performance' + pages: + - widgets: + - type: graph + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'MySQL by Zabbix agent' + name: 'MySQL: Operations' + - type: graph + x: '12' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'MySQL by Zabbix agent' + name: 'MySQL: Queries' + - type: graph + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'MySQL by Zabbix agent' + name: 'MySQL: Connections' + - type: graph + x: '12' + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'MySQL by Zabbix agent' + name: 'MySQL: Bandwidth' + - type: graph + 'y': '10' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'MySQL by Zabbix agent' + name: 'MySQL: InnoDB buffer pool' + - type: graph + x: '12' + 'y': '10' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - 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: 1A7C11 + item: + host: 'MySQL by Zabbix agent' + key: mysql.bytes_received.rate + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 2774A4 + item: + host: 'MySQL by Zabbix agent' + key: mysql.bytes_sent.rate + - uuid: ea03bd4cc0f948f38ea638fe93f2ac69 + name: 'MySQL: Connections' + graph_items: + - color: 1A7C11 + item: + host: 'MySQL by Zabbix agent' + key: mysql.aborted_clients.rate + - sortorder: '1' + color: 2774A4 + item: + host: 'MySQL by Zabbix agent' + key: mysql.aborted_connects.rate + - sortorder: '2' + color: F63100 + item: + host: 'MySQL by Zabbix agent' + key: mysql.connections.rate + - sortorder: '3' + color: A54F10 + item: + host: 'MySQL by Zabbix agent' + key: mysql.max_used_connections + - uuid: ee3890503acf44c58fcfedf3c5008656 + name: 'MySQL: InnoDB buffer pool' + graph_items: + - color: 1A7C11 + item: + host: 'MySQL by Zabbix agent' + key: mysql.innodb_buffer_pool_pages_free + - sortorder: '1' + color: 2774A4 + item: + host: 'MySQL by Zabbix agent' + key: mysql.innodb_buffer_pool_pages_total + - sortorder: '2' + color: F63100 + item: + host: 'MySQL by Zabbix agent' + key: mysql.innodb_buffer_pool_read_requests.rate + - sortorder: '3' + color: A54F10 + item: + host: 'MySQL by Zabbix agent' + key: mysql.innodb_buffer_pool_reads.rate + - uuid: a6296310a0cf4ffcad7b119c5089ef1f + name: 'MySQL: Operations' + graph_items: + - color: 1A7C11 + item: + host: 'MySQL by Zabbix agent' + key: mysql.com_delete.rate + - sortorder: '1' + color: 2774A4 + item: + host: 'MySQL by Zabbix agent' + key: mysql.com_insert.rate + - sortorder: '2' + color: F63100 + item: + host: 'MySQL by Zabbix agent' + key: mysql.com_select.rate + - sortorder: '3' + color: A54F10 + item: + host: 'MySQL by Zabbix agent' + key: mysql.com_update.rate + - uuid: ce723556c4974152a8eda029dbdad1bc + name: 'MySQL: Queries' + graph_items: + - color: 1A7C11 + item: + host: 'MySQL by Zabbix agent' + key: mysql.queries.rate + - sortorder: '1' + color: 2774A4 + item: + host: 'MySQL by Zabbix agent' + key: mysql.questions.rate + - sortorder: '2' + color: F63100 + item: + host: 'MySQL by Zabbix agent' + key: mysql.slow_queries.rate + - uuid: e7653013a2d94596a89c93f5352220df + name: 'MySQL: Threads' + graph_items: + - color: 1A7C11 + item: + host: 'MySQL by Zabbix agent' + key: mysql.threads_cached + - sortorder: '1' + color: 2774A4 + item: + host: 'MySQL by Zabbix agent' + key: mysql.threads_connected + - sortorder: '2' + color: F63100 + item: + host: 'MySQL by Zabbix agent' + key: mysql.threads_created.rate + - sortorder: '3' + color: A54F10 + item: + host: 'MySQL by Zabbix agent' + key: mysql.threads_running diff --git a/Nginx by Zabbix agent.yaml b/Nginx by Zabbix agent.yaml new file mode 100644 index 0000000..65c5aa8 --- /dev/null +++ b/Nginx by Zabbix agent.yaml @@ -0,0 +1,606 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 27f6424905884dbb96ab9210d987a56c + template: 'Nginx by Zabbix agent' + name: 'Nginx by Zabbix agent' + description: | + Get metrics from stub status module using Zabbix agent running on Linux + https://nginx.ru/en/docs/http/ngx_http_stub_status_module.html + + + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384765-discussion-thread-for-official-zabbix-template-nginx + + Template tooling version used: 0.42 + vendor: + name: Zabbix + version: 6.4-0 + groups: + - name: Templates/Applications + items: + - uuid: 75a7795df3034835bcfd143f7c3e9b94 + name: 'Nginx: Service response time' + key: 'net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + history: 7d + value_type: FLOAT + units: s + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: f06e76888f464e13b7cc4c3db33e8131 + name: 'Nginx: Service status' + key: 'net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"]' + history: 7d + valuemap: + name: 'Service state' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 10m + tags: + - tag: component + value: application + - tag: component + value: health + - uuid: 9e2be446ac79491c8be1bcd789392066 + name: 'Nginx: Connections accepted per second' + type: DEPENDENT + key: nginx.connections.accepted.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'The total number of accepted client connections.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \1 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 436f2dc87cda418eb8f19ed6910c7bd0 + name: 'Nginx: Connections active' + type: DEPENDENT + key: nginx.connections.active + delay: '0' + history: 7d + description: 'The current number of active client connections including waiting connections.' + preprocessing: + - type: REGEX + parameters: + - 'Active connections: ([0-9]+)' + - \1 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 4027e6db5e024aff98056faa2d4b43cd + name: 'Nginx: Connections dropped per second' + type: DEPENDENT + key: nginx.connections.dropped.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'The total number of dropped client connections.' + preprocessing: + - type: JAVASCRIPT + parameters: + - | + var a = value.match(/server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)/) + if (a) { + return a[1]-a[2] + } + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: 06191636a7104e1bb40d197493b80958 + name: 'Nginx: Connections handled per second' + type: DEPENDENT + key: nginx.connections.handled.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'The total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections limit`).' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \2 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: f5925c78389143c7924432483a5c716c + name: 'Nginx: Connections reading' + type: DEPENDENT + key: nginx.connections.reading + delay: '0' + history: 7d + description: 'The current number of connections where Nginx is reading the request header.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \1 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: d6cfa828ba344ffe948d8d985b849316 + name: 'Nginx: Connections waiting' + type: DEPENDENT + key: nginx.connections.waiting + delay: '0' + history: 7d + description: 'The current number of idle client connections waiting for a request.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \3 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: c038a572f73f4a418ddcc5aeb8b0a547 + name: 'Nginx: Connections writing' + type: DEPENDENT + key: nginx.connections.writing + delay: '0' + history: 7d + description: 'The current number of connections where Nginx is writing a response back to the client.' + preprocessing: + - type: REGEX + parameters: + - 'Reading: ([0-9]+) Writing: ([0-9]+) Waiting: ([0-9]+)' + - \2 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: connections + - uuid: b28444fb9b834d03a72036882c80b921 + name: 'Nginx: Requests total' + type: DEPENDENT + key: nginx.requests.total + delay: '0' + history: 7d + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: requests + - uuid: 2600a696278f490f86cadd8c8836f269 + name: 'Nginx: Requests per second' + type: DEPENDENT + key: nginx.requests.total.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'The total number of client requests.' + preprocessing: + - type: REGEX + parameters: + - 'server accepts handled requests\s+([0-9]+) ([0-9]+) ([0-9]+)' + - \3 + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + tags: + - tag: component + value: requests + - uuid: 3dcc81006977478f92be6dd040d66eb5 + name: 'Nginx: Version' + type: DEPENDENT + key: nginx.version + delay: '0' + history: 7d + trends: '0' + status: DISABLED + value_type: CHAR + preprocessing: + - type: REGEX + parameters: + - 'Server: nginx\/(.+(?last(/Nginx by Zabbix agent/nginx.version,#2) and length(last(/Nginx by Zabbix agent/nginx.version))>0' + name: 'Nginx: Version has changed' + event_name: 'Nginx: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The Nginx version has changed. Acknowledge (Ack) to close manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: d43b4b99b6084076a4feb1fde51ecc40 + name: 'Nginx: Get processes summary' + key: 'proc.get[,,,summary]' + history: 0d + trends: '0' + value_type: TEXT + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: 52a23a9f6d60490c8f5565b938154f61 + name: 'Nginx: Get stub status page' + key: 'web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"]' + history: 1h + trends: '0' + value_type: TEXT + description: | + The following status information is provided: + `Active connections` - the current number of active client connections including waiting connections. + `Accepted` - the total number of accepted client connections. + `Handled` - the total number of handled connections. Generally, the parameter value is the same as for the accepted connections, unless some resource limits have been reached (for example, the `worker_connections` limit). + `Requests` - the total number of client requests. + `Reading` - the current number of connections where Nginx is reading the request header. + `Writing` - the current number of connections where Nginx is writing a response back to the client. + `Waiting` - the current number of idle client connections waiting for a request. + See also [Module ngx_http_stub_status_module](https://nginx.org/en/docs/http/ngx_http_stub_status_module.html). + tags: + - tag: component + value: application + - tag: component + value: health + discovery_rules: + - uuid: f4a898f929c54b3493506e68703fa2cc + name: 'Nginx process discovery' + type: DEPENDENT + key: nginx.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$NGINX.PROCESS_NAME}' + formulaid: A + description: 'The discovery of Nginx process summary.' + item_prototypes: + - uuid: 632e441011674f04886096475180dcbb + name: 'Nginx: Get process data' + type: DEPENDENT + key: 'nginx.proc.get[{#NAME}]' + delay: '0' + history: 0d + trends: '0' + value_type: TEXT + description: 'The summary metrics aggregated by a process {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#NAME} data' + master_item: + key: 'proc.get[,,,summary]' + tags: + - tag: component + value: raw + - uuid: ba3da6baccee4b31947bf20d3cae0e5f + name: 'Nginx: Number of running processes' + type: DEPENDENT + key: 'nginx.proc.num[{#NAME}]' + delay: '0' + history: 7d + description: 'The number of running processes {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'nginx.proc.get[{#NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 903e6a1f30154ee49df3f8d87e0164cc + expression: 'last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])=0' + name: 'Nginx: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 5887d0062bed4233a03d4f408fac7163 + name: 'Nginx: Memory usage, %' + type: DEPENDENT + key: 'nginx.proc.pmem[{#NAME}]' + delay: '0' + history: 7d + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process {#NAME}.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - uuid: 64d208475c034bae953a64cde1833ebb + name: 'Nginx: Memory usage (rss)' + type: DEPENDENT + key: 'nginx.proc.rss[{#NAME}]' + delay: '0' + history: 7d + units: B + description: 'The summary of resident set size memory used by a process {#NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - uuid: 21fccb0286fb407c85f1972e994c698e + name: 'Nginx: Memory usage (vsize)' + type: DEPENDENT + key: 'nginx.proc.vmem[{#NAME}]' + delay: '0' + history: 7d + units: B + description: 'The summary of virtual memory used by a process {#NAME} expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'nginx.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - uuid: 84c95c1955bf4ccaa12a060a9acdb478 + name: 'Nginx: CPU utilization' + key: 'proc.cpu.util[{#NAME}]' + history: 7d + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process {#NAME}.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: a497b80eb03f469c9552881b498003b2 + expression: | + (find(/Nginx by Zabbix agent/web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"],,"like","HTTP/1.1 200")=0 or + nodata(/Nginx by Zabbix agent/web.page.get["{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PATH}","{$NGINX.STUB_STATUS.PORT}"],30m)) and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0 + name: 'Nginx: Failed to fetch stub status page' + event_name: 'Nginx: Failed to fetch stub 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: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0' + tags: + - tag: scope + value: availability + - uuid: f2d431fa9bc446608caa3f80ef27c41b + expression: 'min(/Nginx by Zabbix agent/nginx.connections.dropped.rate,5m) > {$NGINX.DROP_RATE.MAX.WARN} and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0' + name: 'Nginx: High connections drop rate' + event_name: 'Nginx: High connections drop rate (more than {$NGINX.DROP_RATE.MAX.WARN} for 5m)' + opdata: 'Current rate: {ITEM.LASTVALUE1}' + priority: WARNING + description: 'The rate of dropping connections has been greater than {$NGINX.DROP_RATE.MAX.WARN} for the last 5 minutes.' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0' + tags: + - tag: scope + value: performance + - uuid: c043191c22f34522ba4f83430d9f88b1 + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0' + name: 'Nginx: Service is down' + priority: AVERAGE + manual_close: 'YES' + tags: + - tag: scope + value: availability + - uuid: f5db329410a14609a5f3e883ca493cc8 + expression: 'min(/Nginx by Zabbix agent/net.tcp.service.perf[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"],5m)>{$NGINX.RESPONSE_TIME.MAX.WARN} and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0' + name: 'Nginx: Service response time is too high' + event_name: 'Nginx: Service response time is too high (over {$NGINX.RESPONSE_TIME.MAX.WARN}s for 5m)' + priority: WARNING + manual_close: 'YES' + dependencies: + - name: 'Nginx: Service is down' + expression: 'last(/Nginx by Zabbix agent/net.tcp.service[http,"{$NGINX.STUB_STATUS.HOST}","{$NGINX.STUB_STATUS.PORT}"])=0 and last(/Nginx by Zabbix agent/nginx.proc.num[{#NAME}])>0' + tags: + - tag: scope + value: performance + graph_prototypes: + - uuid: 69ca908afa1d468d983a263d06910925 + name: 'Nginx: Memory usage[{#NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 1A7C11 + item: + host: 'Nginx by Zabbix agent' + key: 'nginx.proc.vmem[{#NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'Nginx by Zabbix agent' + key: 'nginx.proc.rss[{#NAME}]' + master_item: + key: 'proc.get[,,,summary]' + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + tags: + - tag: class + value: software + - tag: target + value: nginx + macros: + - macro: '{$NGINX.DROP_RATE.MAX.WARN}' + value: '1' + description: 'The critical rate of the dropped connections for a trigger expression.' + - macro: '{$NGINX.PROCESS_NAME}' + value: nginx + description: 'The process name of the Nginx server.' + - macro: '{$NGINX.RESPONSE_TIME.MAX.WARN}' + value: '10' + description: 'The maximum response time of Nginx expressed in seconds for a trigger expression.' + - macro: '{$NGINX.STUB_STATUS.HOST}' + value: 0.0.0.0 + description: 'The Hostname or an IP addess of the Nginx host or Nginx container of `astub_status`.' + - macro: '{$NGINX.STUB_STATUS.PATH}' + value: basic_status + description: 'The path of the `Nginx stub_status` page.' + - macro: '{$NGINX.STUB_STATUS.PORT}' + value: '10061' + description: 'The port of the `Nginx stub_status` host or container.' + dashboards: + - uuid: 9d071e3a148c405e85c53ef25d54efaf + name: 'Nginx performance' + pages: + - widgets: + - type: graph + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'Nginx by Zabbix agent' + name: 'Nginx: Connections by state' + - type: graph + x: '12' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'Nginx by Zabbix agent' + name: 'Nginx: Requests per second' + - type: graph + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'Nginx by Zabbix agent' + name: 'Nginx: Connections per second' + valuemaps: + - uuid: 53c8528c18814f30a45d1540ab9e5c00 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: ba234158aeca468a8592d944f9aae691 + name: 'Nginx: Connections by state' + graph_items: + - drawtype: BOLD_LINE + color: 1A7C11 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.active + - sortorder: '1' + color: 2774A4 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.waiting + - sortorder: '2' + color: F63100 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.writing + - sortorder: '3' + color: A54F10 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.reading + - uuid: b82a5b89864a47638421458f3e74563d + name: 'Nginx: Connections per second' + graph_items: + - color: 1A7C11 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.accepted.rate + - sortorder: '1' + color: 2774A4 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.handled.rate + - sortorder: '2' + color: F63100 + item: + host: 'Nginx by Zabbix agent' + key: nginx.connections.dropped.rate + - uuid: a2d2fec823514df09731381304c245e9 + name: 'Nginx: Requests per second' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'Nginx by Zabbix agent' + key: nginx.requests.total.rate diff --git a/PHP-FPM by Zabbix agent.yaml b/PHP-FPM by Zabbix agent.yaml new file mode 100644 index 0000000..32edd12 --- /dev/null +++ b/PHP-FPM by Zabbix agent.yaml @@ -0,0 +1,647 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6 + name: Templates/Applications + templates: + - uuid: 1cbda0970410435684135884d0cb7090 + template: 'PHP-FPM by Zabbix agent' + name: 'PHP-FPM by Zabbix agent' + description: | + Get PHP-FPM metrics using Zabbix agent running on Linux. + + Template tooling version used: 0.42 + vendor: + name: Zabbix + version: 6.4-0 + groups: + - name: Templates/Applications + items: + - uuid: 9ae9e2a8003a48a7a482ef6d6ae9886c + name: 'PHP-FPM: Accepted connections per second' + type: DEPENDENT + key: php-fpm.conn_accepted.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'The number of accepted requests per second.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''accepted conn'']' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: connections + - uuid: edc6b68194fe499facfb6b22425ff0d4 + name: 'PHP-FPM: Listen queue' + type: DEPENDENT + key: php-fpm.listen_queue + delay: '0' + history: 7d + description: 'The current number of connections that have been initiated but not yet accepted.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: aff9f072b06a4b56afb0e0f44b2c83a4 + name: 'PHP-FPM: Listen queue, len' + type: DEPENDENT + key: php-fpm.listen_queue_len + delay: '0' + history: 7d + description: 'The size of the socket queue of pending connections.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''listen queue len'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: de0a543bee5a46c88085b2aba2f4976f + name: 'PHP-FPM: Listen queue, max' + type: DEPENDENT + key: php-fpm.listen_queue_max + delay: '0' + history: 7d + description: 'The maximum number of requests in the queue of pending connections since this FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max listen queue'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: listen-queue + - uuid: dfabcd55c13449c29a48b70fdce77674 + name: 'PHP-FPM: Queue usage' + type: CALCULATED + key: php-fpm.listen_queue_usage + history: 7d + value_type: FLOAT + units: '%' + params: 'last(//php-fpm.listen_queue)/(last(//php-fpm.listen_queue_len)+(last(//php-fpm.listen_queue_len)=0))*100' + description: 'The utilization of the queue.' + tags: + - tag: component + value: application + triggers: + - uuid: a11264f0e1174b7fb81b457dad1a745f + expression: 'min(/PHP-FPM by Zabbix agent/php-fpm.listen_queue_usage,15m) > {$PHP_FPM.QUEUE.WARN.MAX}' + name: 'PHP-FPM: Queue utilization is high' + event_name: 'PHP-FPM: Queue utilization is high (over {$PHP_FPM.QUEUE.WARN.MAX}% for 15m)' + priority: WARNING + description: 'The queue for this pool has reached `{$PHP_FPM.QUEUE.WARN.MAX}%` of its maximum capacity. Items in the queue represent the current number of connections that have been initiated on this pool but not yet accepted.' + tags: + - tag: scope + value: capacity + - uuid: e9d49669cf58492a9d5ef7ff997e1a40 + name: 'PHP-FPM: Max children reached' + type: DEPENDENT + key: php-fpm.max_children + delay: '0' + history: 7d + description: 'The number of times that `pm.max_children` has been reached since the PHP-FPM pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max children reached'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 830e04be30f04e50ac0fa4783ecdc677 + name: 'PHP-FPM: Pool name' + type: DEPENDENT + key: php-fpm.name + delay: '0' + history: 7d + trends: '0' + value_type: CHAR + description: 'The name of the current pool.' + preprocessing: + - type: JSONPATH + parameters: + - $.pool + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 250f346008984a95829dba08d0f95838 + name: 'PHP-FPM: Ping' + type: DEPENDENT + key: php-fpm.ping + delay: '0' + history: 7d + valuemap: + name: 'Service state' + preprocessing: + - type: REGEX + parameters: + - '{$PHP_FPM.PING.REPLY}($|\r?\n)' + - '1' + error_handler: CUSTOM_VALUE + error_handler_params: '0' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: health + - uuid: 8ebee5fc8c854a96b34ed743e3dd0154 + name: 'PHP-FPM: Processes, active' + type: DEPENDENT + key: php-fpm.processes_active + delay: '0' + history: 7d + description: 'The total number of active processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''active processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 11cfd028325242a58d61d9e83aee640b + name: 'PHP-FPM: Processes, idle' + type: DEPENDENT + key: php-fpm.processes_idle + delay: '0' + history: 7d + description: 'The total number of idle processes.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''idle processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 3858218f90684bb19cbe27fc9aedf404 + name: 'PHP-FPM: Processes, max active' + type: DEPENDENT + key: php-fpm.processes_max_active + delay: '0' + history: 7d + description: 'The highest value of "active processes" since the PHP-FPM server was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''max active processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: a79af6cf38ec45518055c64aa7f1f5a2 + name: 'PHP-FPM: Processes, total' + type: DEPENDENT + key: php-fpm.processes_total + delay: '0' + history: 7d + description: 'The total number of server processes running currently.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''total processes'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: system + - uuid: 5ab12fc9f4ef49e5bbf7b2c6a840879e + name: 'PHP-FPM: Process manager' + type: DEPENDENT + key: php-fpm.process_manager + delay: '0' + history: 7d + trends: '0' + value_type: CHAR + description: 'The method used by the process manager to control the number of child processes for this pool.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''process manager'']' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: 231e0fbfb6e94f34b790576766244602 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.process_manager,#1)<>last(/PHP-FPM by Zabbix agent/php-fpm.process_manager,#2)' + name: 'PHP-FPM: Manager changed' + event_name: 'PHP-FPM: Manager changed (new value received: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM manager has changed. `Ack` to close manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 4d17b6d89ac94d0880eac6962ebf7347 + name: 'PHP-FPM: Slow requests' + type: DEPENDENT + key: php-fpm.slow_requests + delay: '0' + history: 7d + description: 'The number of requests that has exceeded your `request_slowlog_timeout` value.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''slow requests'']' + - type: SIMPLE_CHANGE + parameters: + - '' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: f30147d8e92f48aa8fedc2d28b8d7c70 + expression: 'min(/PHP-FPM by Zabbix agent/php-fpm.slow_requests,#3)>0' + name: 'PHP-FPM: Detected slow requests' + priority: WARNING + description: 'The PHP-FPM has detected a slow request. The slow request means that it took more time to execute than expected (defined in the configuration of your pool).' + tags: + - tag: scope + value: performance + - uuid: 4e4d6eda8fbb4dd2ba7f48fba5723473 + name: 'PHP-FPM: Start time' + type: DEPENDENT + key: php-fpm.start_time + delay: '0' + history: 7d + units: unixtime + description: 'The time when this pool was started.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start time'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + - uuid: 2a19b306712a47999e70d3ec30e39b05 + name: 'PHP-FPM: Uptime' + type: DEPENDENT + key: php-fpm.uptime + delay: '0' + history: 7d + units: s + description: 'It indicates how long has this pool been running.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[''start since'']' + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: c6966a6c3ff0452ab4fd112c9299e624 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.uptime)<10m' + name: 'PHP-FPM: Pool has been restarted' + event_name: 'PHP-FPM: Pool has been restarted (uptime < 10m)' + priority: INFO + description: 'Uptime is less than 10 minutes.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: b53e2e356317468f9d6d3272eb755650 + name: 'PHP-FPM: Version' + type: DEPENDENT + key: php-fpm.version + delay: '0' + history: 7d + trends: '0' + value_type: CHAR + description: 'The current version of the PHP. You can get it from the HTTP-Header "X-Powered-By"; it may not work if you have changed the default HTTP-headers.' + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*X-Powered-By: PHP/([.\d]{1,})' + - \1 + error_handler: DISCARD_VALUE + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 3h + master_item: + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + tags: + - tag: component + value: application + triggers: + - uuid: fb110a37f0fc4a62b51df72e33bc3448 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.version,#1)<>last(/PHP-FPM by Zabbix agent/php-fpm.version,#2) and length(last(/PHP-FPM by Zabbix agent/php-fpm.version))>0' + name: 'PHP-FPM: Version has changed' + event_name: 'PHP-FPM: Version has changed (new version: {ITEM.VALUE})' + priority: INFO + description: 'The PHP-FPM version has changed. Acknowledge (Ack) to close manually.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 71ea0957d99a4d48b18e73a21494c849 + name: 'PHP-FPM: Get processes summary' + key: 'proc.get[,,,summary]' + history: 0d + trends: '0' + value_type: TEXT + description: 'The aggregated data of summary metrics for all processes.' + tags: + - tag: component + value: raw + - uuid: c0c438492c63453496e83938745ffffc + name: 'PHP-FPM: php-fpm_ping' + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.PING.PAGE}","{$PHP_FPM.PORT}"]' + history: '0' + trends: '0' + value_type: TEXT + tags: + - tag: component + value: health + - uuid: 09ec73291f21417ab8f19f56fda3331f + name: 'PHP-FPM: Get status page' + key: 'web.page.get["{$PHP_FPM.HOST}","{$PHP_FPM.STATUS.PAGE}?json","{$PHP_FPM.PORT}"]' + history: '0' + trends: '0' + value_type: TEXT + preprocessing: + - type: REGEX + parameters: + - '^[.\s\S]*({.+})' + - \1 + tags: + - tag: component + value: raw + discovery_rules: + - uuid: a8abec999ac74339b077d226bdbcfcc9 + name: 'PHP-FPM process discovery' + type: DEPENDENT + key: php-fpm.proc.discovery + delay: '0' + filter: + evaltype: AND + conditions: + - macro: '{#NAME}' + value: '{$PHP_FPM.PROCESS_NAME}' + formulaid: A + description: 'The discovery of the PHP-FPM summary processes.' + item_prototypes: + - uuid: 985005cdf7b44332a59a5f7da7528d88 + name: 'PHP-FPM: Get process data' + type: DEPENDENT + key: 'php-fpm.proc.get[{#NAME}]' + delay: '0' + history: 0d + trends: '0' + value_type: TEXT + description: 'The summary metrics aggregated by a process `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - '$.[?(@["name"]=="{#NAME}")].first()' + error_handler: CUSTOM_VALUE + error_handler_params: 'Failed to retrieve process {#NAME} data' + master_item: + key: 'proc.get[,,,summary]' + tags: + - tag: component + value: raw + - uuid: ab8dc0d1ce344fe8ae6a22716a168fbd + name: 'PHP-FPM: Number of running processes' + type: DEPENDENT + key: 'php-fpm.proc.num[{#NAME}]' + delay: '0' + history: 7d + description: 'The number of running processes `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.processes + error_handler: CUSTOM_VALUE + error_handler_params: '0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + master_item: + key: 'php-fpm.proc.get[{#NAME}]' + tags: + - tag: component + value: system + trigger_prototypes: + - uuid: 21a03d0ada634602ae9089a2cf3b4d70 + expression: 'last(/PHP-FPM by Zabbix agent/php-fpm.proc.num[{#NAME}])=0' + name: 'PHP-FPM: Process is not running' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: ef771994ec9e482babf872d9f867d500 + name: 'PHP-FPM: Memory usage, %' + type: DEPENDENT + key: 'php-fpm.proc.pmem[{#NAME}]' + delay: '0' + history: 7d + value_type: FLOAT + units: '%' + description: 'The percentage of real memory used by a process `{#NAME}`.' + preprocessing: + - type: JSONPATH + parameters: + - $.pmem + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - uuid: f55a5ef29f864d0a8c1af25df2372f7c + name: 'PHP-FPM: Memory usage (rss)' + type: DEPENDENT + key: 'php-fpm.proc.rss[{#NAME}]' + delay: '0' + history: 7d + units: B + description: 'The summary of resident set size memory used by a process `{#NAME}` expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.rss + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - uuid: 4efc6da713264e629f987106b8252355 + name: 'PHP-FPM: Memory usage (vsize)' + type: DEPENDENT + key: 'php-fpm.proc.vmem[{#NAME}]' + delay: '0' + history: 7d + units: B + description: 'The summary of virtual memory used by a process `{#NAME}` expressed in bytes.' + preprocessing: + - type: JSONPATH + parameters: + - $.vsize + error_handler: DISCARD_VALUE + master_item: + key: 'php-fpm.proc.get[{#NAME}]' + tags: + - tag: component + value: memory + - uuid: a709eaae52ad4128a129c618db6525d2 + name: 'PHP-FPM: CPU utilization' + key: 'proc.cpu.util[{#NAME}]' + history: 7d + value_type: FLOAT + units: '%' + description: 'The percentage of the CPU utilization by a process `{#NAME}`.' + tags: + - tag: component + value: cpu + trigger_prototypes: + - uuid: bdf9962aee2049a8aec000b037b94d60 + expression: 'nodata(/PHP-FPM by Zabbix agent/php-fpm.uptime,30m)=1 and last(/PHP-FPM by Zabbix agent/php-fpm.proc.num[{#NAME}])>0' + name: 'PHP-FPM: Failed to fetch info data' + event_name: 'PHP-FPM: 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.' + manual_close: 'YES' + tags: + - tag: scope + value: notice + - uuid: 10d92102d7a24327ada7869a41119fee + expression: '(last(/PHP-FPM by Zabbix agent/php-fpm.ping)=0 or nodata(/PHP-FPM by Zabbix agent/php-fpm.ping,3m)=1) and last(/PHP-FPM by Zabbix agent/php-fpm.proc.num[{#NAME}])>0' + name: 'PHP-FPM: Service is down' + priority: HIGH + manual_close: 'YES' + tags: + - tag: scope + value: availability + graph_prototypes: + - uuid: 628b350f5fb6439fb4965f4e053f66d5 + name: 'PHP-FPM: Memory usage[{#NAME}]' + graph_items: + - drawtype: BOLD_LINE + color: 1A7C11 + item: + host: 'PHP-FPM by Zabbix agent' + key: 'php-fpm.proc.vmem[{#NAME}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: 2774A4 + item: + host: 'PHP-FPM by Zabbix agent' + key: 'php-fpm.proc.rss[{#NAME}]' + master_item: + key: 'proc.get[,,,summary]' + lld_macro_paths: + - lld_macro: '{#NAME}' + path: $.name + tags: + - tag: class + value: application + - tag: target + value: php-fpm + macros: + - macro: '{$PHP_FPM.HOST}' + value: localhost + description: 'The Hostname or an IP address of the PHP-FPM status for a host or container.' + - macro: '{$PHP_FPM.PING.PAGE}' + value: ping + description: 'The path of the PHP-FPM ping page.' + - macro: '{$PHP_FPM.PING.REPLY}' + value: pong + description: 'The expected reply to the ping.' + - macro: '{$PHP_FPM.PORT}' + value: '10061' + description: 'The port of the PHP-FPM status host or container.' + - macro: '{$PHP_FPM.PROCESS_NAME}' + value: php-fpm + description: 'The name of the PHP-FPM process.' + - macro: '{$PHP_FPM.QUEUE.WARN.MAX}' + value: '80' + description: 'The maximum percent of the PHP-FPM queue usage for a trigger expression.' + - macro: '{$PHP_FPM.STATUS.PAGE}' + value: status + description: 'The path of the PHP-FPM status page.' + valuemaps: + - uuid: 1caa1e7c41e14c7492ab8112f93ea068 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 36cd028132d94585877ad5726f0f9e3d + name: 'PHP-FPM: Process' + graph_items: + - color: 1A7C11 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_max_active + - sortorder: '1' + color: 2774A4 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_idle + - sortorder: '2' + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_total + - sortorder: '3' + color: A54F10 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.processes_active + - uuid: 768a3e8aaa4741239887b55be5842f4a + name: 'PHP-FPM: Queue' + graph_items: + - color: 1A7C11 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.listen_queue_len + - sortorder: '1' + color: 2774A4 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.listen_queue + - sortorder: '2' + color: F63100 + item: + host: 'PHP-FPM by Zabbix agent' + key: php-fpm.listen_queue_max diff --git a/PostgreSQL by Zabbix agent.yaml b/PostgreSQL by Zabbix agent.yaml new file mode 100644 index 0000000..1208587 --- /dev/null +++ b/PostgreSQL by Zabbix agent.yaml @@ -0,0 +1,2104 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 748ad4d098d447d492bb935c907f652f + name: Templates/Databases + templates: + - uuid: 399bd1ee587245ecac6f39beaa99886f + template: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL by Zabbix agent' + description: | + You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/384190-%C2%A0discussion-thread-for-official-zabbix-template-db-postgresql + + Template tooling version used: 0.41 + vendor: + name: Zabbix + version: 6.4-0 + groups: + - name: Templates/Databases + items: + - uuid: d17c6c15154d40d1afa5b1eafb2ed93e + name: 'Bgwriter: Buffers allocated per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_alloc.rate + delay: '0' + history: 7d + value_type: FLOAT + units: Bps + description: 'Number of buffers allocated' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_alloc + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: 2c3ee691d4a54fb6b566739a3a648df4 + name: 'Bgwriter: Buffers written directly by a backend per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend.rate + delay: '0' + history: 7d + value_type: FLOAT + units: Bps + description: 'Number of buffers written directly by a backend' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: 77e1eb202a6346ce9df0f1bb2c078688 + name: 'Bgwriter: Buffers backend fsync per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_backend_fsync.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'Number of times a backend had to execute its own fsync call (normally the background writer handles those even when the backend does its own write)' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_backend_fsync + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: e29d26a48d0143579bf3acc6655cd659 + name: 'Bgwriter: Buffers written during checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_checkpoint.rate + delay: '0' + history: 7d + value_type: FLOAT + units: Bps + description: 'Number of buffers written during checkpoints' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_checkpoint + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: 5151183461a54d2bbfaad04b8cab3798 + name: 'Bgwriter: Buffers written by the background writer per second' + type: DEPENDENT + key: pgsql.bgwriter.buffers_clean.rate + delay: '0' + history: 7d + value_type: FLOAT + units: Bps + description: 'Number of buffers written by the background writer' + preprocessing: + - type: JSONPATH + parameters: + - $.buffers_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: ff290c0602b9447e87240c1ecf467050 + name: 'Bgwriter: Requested checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_req.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'Number of requested checkpoints that have been performed' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_req + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + triggers: + - uuid: 65e7954489854ad3ad1698dead7c4c02 + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.bgwriter.checkpoints_req.rate) > {$PG.CHECKPOINTS_REQ.MAX.WARN}' + name: 'PostgreSQL: Required checkpoints occurs too frequently' + event_name: 'PostgreSQL: Required checkpoints occurs too frequently (over {$PG.CHECKPOINTS_REQ.MAX.WARN})' + priority: AVERAGE + description: | + Checkpoints are points in the sequence of transactions at which it is guaranteed that the heap and index data files have been updated with all information written before that checkpoint. At checkpoint time, all dirty data pages are flushed to disk and a special checkpoint record is written to the log file. + https://www.postgresql.org/docs/current/wal-configuration.html + tags: + - tag: scope + value: performance + - uuid: a5271230be8b431cb96580180e099b98 + name: 'Bgwriter: Scheduled checkpoints per second' + type: DEPENDENT + key: pgsql.bgwriter.checkpoints_timed.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'Number of scheduled checkpoints that have been performed' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoints_timed + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: 782d2368763b48ad8663aa9fb75c3326 + name: 'Bgwriter: Checkpoint sync time' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_sync_time + delay: '0' + history: 7d + value_type: FLOAT + units: s + description: 'Total amount of time that has been spent in the portion of checkpoint processing where files are synchronized to disk' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_sync_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: b5e5f463978c46dd9401963f48ea72eb + name: 'Bgwriter: Checkpoint write time' + type: DEPENDENT + key: pgsql.bgwriter.checkpoint_write_time + delay: '0' + history: 7d + value_type: FLOAT + units: s + description: 'Total amount of time that has been spent in the portion of checkpoint processing where files are written to disk, in milliseconds' + preprocessing: + - type: JSONPATH + parameters: + - $.checkpoint_write_time + - type: MULTIPLIER + parameters: + - '0.001' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: f273c71f92bf4ac0b6ec5a0a88d1239c + name: 'Bgwriter: Max written per second' + type: DEPENDENT + key: pgsql.bgwriter.maxwritten_clean.rate + delay: '0' + history: 7d + value_type: FLOAT + description: 'Number of times the background writer stopped a cleaning scan because it had written too many buffers' + preprocessing: + - type: JSONPATH + parameters: + - $.maxwritten_clean + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: bgwriter + - uuid: 1fc5ba48a0974bd7bf965b5f130deded + name: 'PostgreSQL: Get bgwriter' + key: 'pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 1h + trends: '0' + value_type: TEXT + description: 'Statistics about the background writer process''s activity' + tags: + - tag: component + value: raw + triggers: + - uuid: 768d28b9360b46cda3065f5082ba97ac + expression: 'nodata(/PostgreSQL by Zabbix agent/pgsql.bgwriter["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],30m) = 1' + name: 'PostgreSQL: Failed to get items' + event_name: 'PostgreSQL: Failed to get items (no data for 30m)' + priority: WARNING + description: 'Zabbix has not received data for items for the last 30 minutes' + dependencies: + - name: 'PostgreSQL: Service is down' + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - uuid: 70a7581fabd14e05bda762b79811187c + name: 'Status: Cache hit ratio %' + key: 'pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + value_type: FLOAT + units: '%' + description: 'Cache hit ratio' + tags: + - tag: component + value: cache + triggers: + - uuid: 4d87cc71b40f4b59ad27f30f33b15a69 + expression: 'max(/PostgreSQL by Zabbix agent/pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],5m) < {$PG.CACHE_HITRATIO.MIN.WARN}' + name: 'PostgreSQL: Cache hit ratio too low' + event_name: 'PostgreSQL: Cache hit ratio too low (under {$PG.CACHE_HITRATIO.MIN.WARN} in 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 248cbe5067324b9ca435f2aced5e2a5f + name: 'Status: Config hash' + key: 'pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + delay: 15m + history: 7d + trends: '0' + value_type: TEXT + description: 'PostgreSQL configuration hash' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + triggers: + - uuid: b727cfa6d3de4063b6a2dcb6cc84e27b + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],#1)<>last(/PostgreSQL by Zabbix agent/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],#2) and length(last(/PostgreSQL by Zabbix agent/pgsql.config.hash["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]))>0' + name: 'PostgreSQL: Configuration has changed' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: c78116d3acf24e6990ed27ba8008728c + name: 'Connections sum: Active' + type: DEPENDENT + key: pgsql.connections.sum.active + delay: '0' + history: 7d + description: 'Total number of connections executing a query' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + - uuid: be6eb6ecbfad420b889c58d1f1550b23 + name: 'Connections sum: Idle' + type: DEPENDENT + key: pgsql.connections.sum.idle + delay: '0' + history: 7d + description: 'Total number of connections waiting for a new client command' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + - uuid: 6471d014722c4072ae045df4c69578e3 + name: 'Connections sum: Idle in transaction' + type: DEPENDENT + key: pgsql.connections.sum.idle_in_transaction + delay: '0' + history: 7d + description: 'Total number of connections in a transaction state, but not executing a query' + preprocessing: + - type: JSONPATH + parameters: + - $.idle_in_transaction + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + - uuid: 197cc14f55db485b891614c7b7ee2a51 + name: 'Connections sum: Prepared' + type: DEPENDENT + key: pgsql.connections.sum.prepared + delay: '0' + history: 7d + description: | + Total number of prepared transactions + https://www.postgresql.org/docs/current/sql-prepare-transaction.html + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + - uuid: 24d23377c7cd4cc5b63f98a261c2501c + name: 'Connections sum: Total' + type: DEPENDENT + key: pgsql.connections.sum.total + delay: '0' + history: 7d + description: 'Total number of connections' + preprocessing: + - type: JSONPATH + parameters: + - $.total + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + - uuid: 488050d9aa8e4c2ea5b3e991ec5ddacc + name: 'Connections sum: Total %' + type: DEPENDENT + key: pgsql.connections.sum.total_pct + delay: '0' + history: 7d + units: '%' + description: 'Total number of connections in percentage' + preprocessing: + - type: JSONPATH + parameters: + - $.total_pct + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + triggers: + - uuid: 54ef12b8ff1e4383a3097c71478ceefa + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.connections.sum.total_pct,5m) > {$PG.CONN_TOTAL_PCT.MAX.WARN}' + name: 'PostgreSQL: Total number of connections is too high' + event_name: 'PostgreSQL: Total number of connections is too high (over {$PG.CONN_TOTAL_PCT.MAX.WARN} in 5m)' + priority: AVERAGE + tags: + - tag: scope + value: performance + - uuid: fadd1333189c4ed29db57cf2acd158d0 + name: 'Connections sum: Waiting' + type: DEPENDENT + key: pgsql.connections.sum.waiting + delay: '0' + history: 7d + description: | + Total number of waiting connections + https://www.postgresql.org/docs/current/monitoring-stats.html#WAIT-EVENT-TABLE + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: connections + - uuid: b0da0c4856a645ca8ef03405d2d8d4a5 + name: 'PostgreSQL: Get connections sum' + key: 'pgsql.connections.sum["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 1h + trends: '0' + value_type: TEXT + description: | + Collect all metrics from pg_stat_activity + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-ACTIVITY-VIEW + tags: + - tag: component + value: raw + - uuid: b44f263fb33e461e8c3d700fb7688c7b + name: 'PostgreSQL: Get dbstat' + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 1h + trends: '0' + value_type: TEXT + description: | + Collect all metrics from pg_stat_database per database + https://www.postgresql.org/docs/current/monitoring-stats.html#PG-STAT-DATABASE-VIEW + tags: + - tag: component + value: raw + - uuid: 7cee21f6225340ef80e9cdef7ce20b10 + name: 'PostgreSQL: Get locks' + key: 'pgsql.locks["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 1h + trends: '0' + value_type: TEXT + description: | + Collect all metrics from pg_locks per database + https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-TABLES + tags: + - tag: component + value: raw + - uuid: f42bd73b3af6451b8a3a6113dcc1b675 + name: 'Status: Ping time' + key: 'pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + value_type: FLOAT + units: s + preprocessing: + - type: REGEX + parameters: + - 'Time:\s+(\d+\.\d+)\s+ms' + - \1 + - type: MULTIPLIER + parameters: + - '0.001' + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: e19b5630737b4c63886b5df77a3c748c + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],5m) > {$PG.PING_TIME.MAX.WARN}' + name: 'PostgreSQL: Response too long' + event_name: 'PostgreSQL: Response too long (over {$PG.PING_TIME.MAX.WARN})' + priority: AVERAGE + dependencies: + - name: 'PostgreSQL: Service is down' + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: f5bd615243b344cb88dac1e83436cc85 + name: 'Status: Ping' + key: 'pgsql.ping["{$PG.HOST}","{$PG.PORT}"]' + history: 7d + valuemap: + name: 'Service state' + preprocessing: + - type: JAVASCRIPT + parameters: + - 'return value.search(/accepting connections/)>0 ? 1 : 0' + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1h + tags: + - tag: component + value: application + - tag: component + value: health + triggers: + - uuid: 6d9c2b5353ce4f6baeeb0f254fb7d1e2 + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.ping["{$PG.HOST}","{$PG.PORT}"]) = 0' + name: 'PostgreSQL: Service is down' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: 47bf580e1e4e48cf9c0e94fcf90288ac + name: 'PostgreSQL: Get queries' + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + history: 1h + trends: '0' + value_type: TEXT + description: 'Collect all metrics by query execution time' + tags: + - tag: component + value: raw + - uuid: d8a509bd011a4ecda5d439295e257e9d + name: 'Replication: standby count' + key: 'pgsql.replication.count["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + description: 'Number of standby servers' + tags: + - tag: component + value: replication + - uuid: 21f8bea1141249c7a4dfafad5bc3ef41 + name: 'Replication: lag in seconds' + key: 'pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + units: s + description: 'Replication lag with Master in seconds' + tags: + - tag: component + value: replication + triggers: + - uuid: 11831c52e86445498eed42de6a629b65 + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],5m) > {$PG.REPL_LAG.MAX.WARN}' + name: 'PostgreSQL: Streaming lag with {#MASTER} is too high' + event_name: 'PostgreSQL: Streaming lag with {#MASTER} is too high (over {$PG.REPL_LAG.MAX.WARN} in 5m)' + priority: AVERAGE + tags: + - tag: scope + value: availability + - tag: scope + value: performance + - uuid: 09f696124fca4c5b844bf66c9c912b87 + name: 'Replication: recovery role' + key: 'pgsql.replication.recovery_role["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + description: 'Replication role: 1 — recovery is still in progress (standby mode), 0 — master mode.' + valuemap: + name: 'PostgreSQL recovery role' + tags: + - tag: component + value: replication + - uuid: d449017462704508a4aad51a6b45fb30 + name: 'Replication: status' + key: 'pgsql.replication.status["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + description: 'Replication status: 0 — streaming is down, 1 — streaming is up, 2 — master mode' + valuemap: + name: 'PostgreSQL replication status' + tags: + - tag: component + value: replication + triggers: + - uuid: aef1e1d2bab540f8ab738b4a3fad863c + expression: 'max(/PostgreSQL by Zabbix agent/pgsql.replication.status["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],5m)=0' + name: 'PostgreSQL: Replication is down' + priority: AVERAGE + tags: + - tag: scope + value: availability + - uuid: 4883717865c84c19b48d46f009317de2 + name: 'Transactions: Max active transaction time' + type: DEPENDENT + key: pgsql.transactions.active + delay: '0' + history: 7d + value_type: FLOAT + units: s + description: 'Current max active transaction time' + preprocessing: + - type: JSONPATH + parameters: + - $.active + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: transactions + - uuid: 4c89121d71a14c15b6169417ea69d0a3 + name: 'Transactions: Max idle transaction time' + type: DEPENDENT + key: pgsql.transactions.idle + delay: '0' + history: 7d + value_type: FLOAT + units: s + description: 'Current max idle transaction time' + preprocessing: + - type: JSONPATH + parameters: + - $.idle + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: transactions + - uuid: 0ee43ddd9da246d19097107b45e4c8e8 + name: 'Transactions: Max prepared transaction time' + type: DEPENDENT + key: pgsql.transactions.prepared + delay: '0' + history: 7d + value_type: FLOAT + units: s + description: 'Current max prepared transaction time' + preprocessing: + - type: JSONPATH + parameters: + - $.prepared + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: transactions + - uuid: da341b2011714a1f994ecbe96bd52155 + name: 'Transactions: Max waiting transaction time' + type: DEPENDENT + key: pgsql.transactions.waiting + delay: '0' + history: 7d + value_type: FLOAT + units: s + description: 'Current max waiting transaction time' + preprocessing: + - type: JSONPATH + parameters: + - $.waiting + master_item: + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: transactions + - uuid: ff26a1c256bd40978f49a7a025538aa1 + name: 'PostgreSQL: Get transactions' + key: 'pgsql.transactions["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 1h + trends: '0' + value_type: TEXT + description: 'Collect metrics by transaction execution time' + tags: + - tag: component + value: raw + - uuid: 6418a2f286e64ecabf2295fca063f8af + name: 'Status: Uptime' + key: 'pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + history: 7d + units: uptime + tags: + - tag: component + value: application + triggers: + - uuid: 85565aba402740868a16c0e4639a98fc + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]) < 10m' + name: 'PostgreSQL: Service has been restarted' + event_name: 'PostgreSQL: Service has been restarted (uptime < 10m)' + priority: INFO + description: 'PostgreSQL uptime is less than 10 minutes' + tags: + - tag: scope + value: notice + - uuid: 321525ebcea44396922e96deec2e8ad1 + name: 'Status: Version' + key: 'pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + delay: 15m + history: 7d + trends: '0' + value_type: CHAR + description: 'PostgreSQL version' + preprocessing: + - type: DISCARD_UNCHANGED_HEARTBEAT + parameters: + - 1d + tags: + - tag: component + value: application + triggers: + - uuid: 8111eb42b0e74fffb43da474677ebc2f + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],#1)<>last(/PostgreSQL by Zabbix agent/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"],#2) and length(last(/PostgreSQL by Zabbix agent/pgsql.version["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]))>0' + name: 'PostgreSQL: Version has changed' + event_name: 'PostgreSQL: Version has changed (new version value received: {ITEM.VALUE})' + priority: INFO + tags: + - tag: scope + value: notice + - uuid: 5385ec7d39514039a641d18cba335ddc + name: 'WAL: Segments count' + type: DEPENDENT + key: pgsql.wal.count + delay: '0' + history: 7d + description: 'Number of WAL segments' + preprocessing: + - type: JSONPATH + parameters: + - $.count + master_item: + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: wal + - uuid: 7cd6c524ecab41f9a22489866d503361 + name: 'PostgreSQL: Get WAL' + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + delay: 5m + history: 1h + trends: '0' + value_type: TEXT + description: 'Master item to collect WAL metrics' + tags: + - tag: component + value: raw + - uuid: 5cc9c67621cc46e0a42b1eb79bda83b3 + name: 'WAL: Bytes written' + type: DEPENDENT + key: pgsql.wal.write + delay: '0' + history: 7d + units: B + description: 'WAL write in bytes' + preprocessing: + - type: JSONPATH + parameters: + - $.write + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.wal.stat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: wal + discovery_rules: + - uuid: 5c4c658507394f5bb362e601f7c59d63 + name: 'Database discovery' + key: 'pgsql.discovery.db["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + delay: 1h + filter: + conditions: + - macro: '{#DBNAME}' + value: '{$PG.LLD.FILTER.DBNAME}' + formulaid: A + item_prototypes: + - uuid: 69575e9785184ef5be2502e3cc282220 + name: 'DB {#DBNAME}: Database size' + key: 'pgsql.db.size["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{#DBNAME}"]' + delay: 15m + history: 7d + units: B + description: 'Database size' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 615e6567a85e421bb06ab8cac0eaba69 + name: 'DB {#DBNAME}: Blocks hit per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of times disk blocks were found already in the buffer cache, so that a read was not necessary' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].blks_hit' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: cache + - tag: database + value: '{#DBNAME}' + - uuid: 9136517d08b447869e5b8f5fd684c3b9 + name: 'DB {#DBNAME}: Disk blocks read per second' + type: DEPENDENT + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of disk blocks read in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].blks_read' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: a76f6d28995441ff9fe28bbc09445e64 + name: 'DB {#DBNAME}: Detected conflicts per second' + type: DEPENDENT + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of queries canceled due to conflicts with recovery in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].conflicts' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 3b51f02258bd4e02829f04ca016dd01d + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.dbstat.conflicts.rate["{#DBNAME}"],5m) > {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"}' + name: 'DB {#DBNAME}: Too many recovery conflicts' + event_name: 'DB {#DBNAME}: Too many recovery conflicts (over {$PG.CONFLICTS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: AVERAGE + description: | + The primary and standby servers are in many ways loosely connected. Actions on the primary will have an effect on the standby. As a result, there is potential for negative interactions or conflicts between them. + https://www.postgresql.org/docs/current/hot-standby.html#HOT-STANDBY-CONFLICT + tags: + - tag: scope + value: performance + - uuid: b874cc2dd80643208c2479ad25fae0ac + name: 'DB {#DBNAME}: Detected deadlocks per second' + type: DEPENDENT + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of detected deadlocks in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].deadlocks' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: deadlocks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 3bee63fa04d94586937e22aafab9bdd8 + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.dbstat.deadlocks.rate["{#DBNAME}"],5m) > {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'DB {#DBNAME}: Deadlock occurred' + event_name: 'DB {#DBNAME}: Deadlock occurred (over {$PG.DEADLOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: HIGH + tags: + - tag: scope + value: availability + - uuid: d235ead54c8b41f9a91398c75383e5d7 + name: 'DB {#DBNAME}: Temp_bytes written per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + delay: '0' + history: 7d + units: B + description: 'Total amount of data written to temporary files by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].temp_bytes' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: af4e35eee1764d3f97d9c1218867f885 + name: 'DB {#DBNAME}: Temp_files created per second' + type: DEPENDENT + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + delay: '0' + history: 7d + description: 'Total number of temporary files created by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].temp_files' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: storage + - tag: database + value: '{#DBNAME}' + - uuid: 35c6f93aefe4439bbc36f2f358440b16 + name: 'DB {#DBNAME}: Tuples deleted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of rows deleted by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tup_deleted' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 92f33d96f8a348088cdba593c0e66929 + name: 'DB {#DBNAME}: Tuples fetched per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of rows fetched by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tup_fetched' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 8c03c87a44fe43928c32087ca7561e88 + name: 'DB {#DBNAME}: Tuples inserted per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of rows inserted by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tup_inserted' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f6d378f4e38e455fa5a12467fe977657 + name: 'DB {#DBNAME}: Tuples returned per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of rows updated by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tup_returned' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 4c8de8c1064d43ffa18c4f37fead37f7 + name: 'DB {#DBNAME}: Tuples updated per second' + type: DEPENDENT + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of rows updated by queries in this database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tup_updated' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 81c33f5b3c31475fa5f28f4ad149a328 + name: 'DB {#DBNAME}: Commits per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Number of transactions in this database that have been committed' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].xact_commit' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 8e5080186d034323be21473099b0b0ce + name: 'DB {#DBNAME}: Rollbacks per second' + type: DEPENDENT + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Total number of transactions in this database that have been rolled back' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].xact_rollback' + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.dbstat["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: df9dd9bac2a54f1085b29fb22b394a1f + name: 'DB {#DBNAME}: Frozen XID before avtovacuum %' + type: DEPENDENT + key: 'pgsql.frozenxid.prc_before_av["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + units: '%' + description: | + reventing Transaction ID Wraparound Failures + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + preprocessing: + - type: JSONPATH + parameters: + - $.prc_before_av + master_item: + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + - uuid: 44ddd66ea37449cb8fab6979b98dfd3c + name: 'DB {#DBNAME}: Frozen XID before stop %' + type: DEPENDENT + key: 'pgsql.frozenxid.prc_before_stop["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + units: '%' + description: | + Preventing Transaction ID Wraparound Failures + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + preprocessing: + - type: JSONPATH + parameters: + - $.prc_before_stop + master_item: + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: transactions + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: 709df9c1e29a4ff68a3de9423ff7ae58 + expression: 'last(/PostgreSQL by Zabbix agent/pgsql.frozenxid.prc_before_stop["{#DBNAME}"])<{$PG.FROZENXID_PCT_STOP.MIN.HIGH:"{#DBNAME}"}' + name: 'DB {#DBNAME}: VACUUM FREEZE is required to prevent wraparound' + event_name: 'DB {#DBNAME}: VACUUM FREEZE is required to prevent wraparound (frozen XID less than {$PG.FROZENXID_PCT_STOP.MIN.HIGH:"{#DBNAME}"} %)' + priority: AVERAGE + description: | + Preventing Transaction ID Wraparound Failures + https://www.postgresql.org/docs/current/routine-vacuuming.html#VACUUM-FOR-WRAPAROUND + tags: + - tag: scope + value: availability + - uuid: ddf6d0b7b5fe4cbbb540687051b8e5f5 + name: 'DB {#DBNAME}: Get frozen XID' + key: 'pgsql.frozenxid["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + history: 1h + trends: '0' + value_type: TEXT + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + - uuid: 3d0acf4b45fc4a72bb2a214222f93f2a + name: 'DB {#DBNAME}: Locks total' + type: DEPENDENT + key: 'pgsql.locks.total["{#DBNAME}"]' + delay: '0' + history: 7d + description: 'Total number of locks in the database' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].total' + master_item: + key: 'pgsql.locks["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + tags: + - tag: component + value: locks + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: ef7d3c9866df44aa9b378e7f125a34de + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.locks.total["{#DBNAME}"],5m)>{$PG.LOCKS.MAX.WARN:"{#DBNAME}"}' + name: 'DB {#DBNAME}: Number of locks is too high' + event_name: 'DB {#DBNAME}: Number of locks is too high (over {$PG.LOCKS.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + tags: + - tag: scope + value: availability + - uuid: 939ab05c71ed4be9979662203ebba980 + name: 'DB {#DBNAME}: Queries slow maintenance count' + type: DEPENDENT + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + delay: '0' + history: 7d + description: 'Slow maintenance query count' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].mro_slow_count' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: bbc8f9bf86394cf28e0c2db44ee4711d + name: 'DB {#DBNAME}: Queries max maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + delay: '0' + history: 7d + units: s + description: 'Max maintenance query time' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].mro_time_max' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f1427228bfa14ad3b7bb9d63bcfaec59 + name: 'DB {#DBNAME}: Queries sum maintenance time' + type: DEPENDENT + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + delay: '0' + history: 7d + units: s + description: 'Sum maintenance query time' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].mro_time_sum' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 5d937f46f4684f1e8253ec62e0f75379 + name: 'DB {#DBNAME}: Queries slow query count' + type: DEPENDENT + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + delay: '0' + history: 7d + description: 'Slow query count' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].query_slow_count' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + trigger_prototypes: + - uuid: facc8f6976664da4ad5567d270f0f311 + expression: 'min(/PostgreSQL by Zabbix agent/pgsql.queries.query.slow_count["{#DBNAME}"],5m)>{$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"}' + name: 'DB {#DBNAME}: Too many slow queries' + event_name: 'DB {#DBNAME}: Too many slow queries (over {$PG.SLOW_QUERIES.MAX.WARN:"{#DBNAME}"} in 5m)' + priority: WARNING + tags: + - tag: scope + value: performance + - uuid: 044cc16d0a2f46b28d88eff86c33b30b + name: 'DB {#DBNAME}: Queries max query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + delay: '0' + history: 7d + units: s + description: 'Max query time' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].query_time_max' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: c6232400b39c4564a30a403859ffb4ee + name: 'DB {#DBNAME}: Queries sum query time' + type: DEPENDENT + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + delay: '0' + history: 7d + units: s + description: 'Sum query time' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].query_time_sum' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: f7099043ea6345f0a5531f70f9573a3e + name: 'DB {#DBNAME}: Queries slow transaction count' + type: DEPENDENT + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + delay: '0' + history: 7d + description: 'Slow transaction query count' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tx_slow_count' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: c6800ca30a564766ba745e875cb4e929 + name: 'DB {#DBNAME}: Queries max transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + delay: '0' + history: 7d + units: s + description: 'Max transaction query time' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tx_time_max' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: 0eda974576794768ac9ddc592ff27e19 + name: 'DB {#DBNAME}: Queries sum transaction time' + type: DEPENDENT + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + delay: '0' + history: 7d + units: s + description: 'Sum transaction query time' + preprocessing: + - type: JSONPATH + parameters: + - '$[''{#DBNAME}''].tx_time_sum' + master_item: + key: 'pgsql.queries["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{$PG.QUERY_ETIME.MAX.WARN}"]' + tags: + - tag: component + value: queries + - tag: database + value: '{#DBNAME}' + - uuid: cafcc00cce824c33a321da0e9ecc7f6e + name: 'DB {#DBNAME}: Index scans per second' + type: DEPENDENT + key: 'pgsql.scans.idx.rate["{#DBNAME}"]' + delay: '0' + history: 7d + description: 'Number of index scans in the database' + preprocessing: + - type: JSONPATH + parameters: + - $.idx + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: scans + - tag: database + value: '{#DBNAME}' + - uuid: f07396ca9d224e1b819f22efe6c4259d + name: 'DB {#DBNAME}: Sequential scans per second' + type: DEPENDENT + key: 'pgsql.scans.seq.rate["{#DBNAME}"]' + delay: '0' + history: 7d + value_type: FLOAT + description: 'Number of sequential scans in the database' + preprocessing: + - type: JSONPATH + parameters: + - $.seq + - type: CHANGE_PER_SECOND + parameters: + - '' + master_item: + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + tags: + - tag: component + value: scans + - tag: database + value: '{#DBNAME}' + - uuid: 4bf92e4b0fed4d32b808b299d9e1fb0c + name: 'DB {#DBNAME}: Get scans' + key: 'pgsql.scans["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{#DBNAME}"]' + history: 1h + trends: '0' + value_type: TEXT + description: 'Number of scans done for table/index in the database' + tags: + - tag: component + value: raw + - tag: database + value: '{#DBNAME}' + graph_prototypes: + - uuid: 3f8124b817f2437096c620d62ec2e055 + name: 'DB {#DBNAME}: Block hit/read' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.blks_hit.rate["{#DBNAME}"]' + - sortorder: '1' + color: 2774A4 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.blks_read.rate["{#DBNAME}"]' + - uuid: 6bd0a0d65b8d43ad946b145cf8a8b533 + name: 'DB {#DBNAME}: Database size' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.db.size["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}","{#DBNAME}"]' + - uuid: 41e765d906324595a396d8985b204ff5 + name: 'DB {#DBNAME}: Events' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.xact_commit.rate["{#DBNAME}"]' + - sortorder: '1' + color: 2774A4 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.conflicts.rate["{#DBNAME}"]' + - sortorder: '2' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.deadlocks.rate["{#DBNAME}"]' + - sortorder: '3' + color: A54F10 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.xact_rollback.rate["{#DBNAME}"]' + - uuid: 2b260fdf7623476095429434b5c79041 + name: 'DB {#DBNAME}: Locks' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.locks.total["{#DBNAME}"]' + - uuid: 8a60a92b41b146f49145b86bab559b2e + name: 'DB {#DBNAME}: Queries' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.mro.time_max["{#DBNAME}"]' + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.query.time_max["{#DBNAME}"]' + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.tx.time_max["{#DBNAME}"]' + - sortorder: '3' + drawtype: GRADIENT_LINE + color: A54F10 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.mro.time_sum["{#DBNAME}"]' + - sortorder: '4' + drawtype: GRADIENT_LINE + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.query.time_sum["{#DBNAME}"]' + - sortorder: '5' + drawtype: GRADIENT_LINE + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.tx.time_sum["{#DBNAME}"]' + - uuid: 93518b06f71e46ada3dabefa1726b867 + name: 'DB {#DBNAME}: Slow queries' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.mro.slow_count["{#DBNAME}"]' + - sortorder: '1' + color: 2774A4 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.query.slow_count["{#DBNAME}"]' + - sortorder: '2' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.queries.tx.slow_count["{#DBNAME}"]' + - uuid: 779b872280ad46c7a6cdf95c2df7c646 + name: 'DB {#DBNAME}: Temp files' + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.temp_bytes.rate["{#DBNAME}"]' + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.temp_files.rate["{#DBNAME}"]' + - uuid: f10be22e3bac4d66936c34ec99446c64 + name: 'DB {#DBNAME}: Tuples' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_deleted.rate["{#DBNAME}"]' + - sortorder: '1' + color: 2774A4 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_fetched.rate["{#DBNAME}"]' + - sortorder: '2' + color: F63100 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_inserted.rate["{#DBNAME}"]' + - sortorder: '3' + color: A54F10 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_returned.rate["{#DBNAME}"]' + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.dbstat.tup_updated.rate["{#DBNAME}"]' + tags: + - tag: class + value: database + - tag: target + value: postgresql + macros: + - macro: '{$PG.CACHE_HITRATIO.MIN.WARN}' + value: '90' + - macro: '{$PG.CHECKPOINTS_REQ.MAX.WARN}' + value: '5' + - macro: '{$PG.CONFLICTS.MAX.WARN}' + value: '0' + - macro: '{$PG.CONN_IDLE_IN_TRANS.MAX.WARN}' + value: '5' + - macro: '{$PG.CONN_TOTAL_PCT.MAX.WARN}' + value: '90' + - macro: '{$PG.CONN_WAIT.MAX.WARN}' + value: '0' + - macro: '{$PG.DB}' + value: postgres + - macro: '{$PG.DEADLOCKS.MAX.WARN}' + value: '0' + - macro: '{$PG.FROZENXID_PCT_STOP.MIN.HIGH}' + value: '75' + - macro: '{$PG.HOST}' + value: 127.0.0.1 + - macro: '{$PG.LLD.FILTER.DBNAME}' + value: '(.*)' + - macro: '{$PG.LOCKS.MAX.WARN}' + value: '100' + - macro: '{$PG.PASSWORD}' + description: 'Please set user''s password in this macro.' + - macro: '{$PG.PING_TIME.MAX.WARN}' + value: 1s + - macro: '{$PG.PORT}' + value: '5432' + - macro: '{$PG.QUERY_ETIME.MAX.WARN}' + value: '30' + - macro: '{$PG.REPL_LAG.MAX.WARN}' + value: 10m + - macro: '{$PG.SLOW_QUERIES.MAX.WARN}' + value: '5' + - macro: '{$PG.TRANS_ACTIVE.MAX.WARN}' + value: 30s + - macro: '{$PG.TRANS_IDLE.MAX.WARN}' + value: 30s + - macro: '{$PG.TRANS_WAIT.MAX.WARN}' + value: 30s + - macro: '{$PG.USER}' + value: zbx_monitor + dashboards: + - uuid: d95f29826778497a9ed265e0c335fd0f + name: 'PostgreSQL databases' + pages: + - widgets: + - type: graphprototype + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Tuples' + - type: graphprototype + x: '12' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Events' + - type: graphprototype + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Block hit/read' + - type: graphprototype + x: '12' + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Temp files' + - type: graphprototype + 'y': '10' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Locks' + - type: graphprototype + x: '12' + 'y': '10' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Database size' + - type: graphprototype + 'y': '15' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Queries' + - type: graphprototype + x: '12' + 'y': '15' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '2' + - type: INTEGER + name: columns + value: '1' + - type: INTEGER + name: rows + value: '1' + - type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'DB {#DBNAME}: Slow queries' + - uuid: f2ceabf59fd64ca9828ea55e9b9668bd + name: 'PostgreSQL stat' + pages: + - widgets: + - type: graph + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL connections' + - type: graph + x: '12' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL transactions' + - type: graph + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL ping' + - type: graph + x: '12' + 'y': '5' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL uptime' + - type: graph + 'y': '10' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL replication lag' + - type: graph + x: '12' + 'y': '10' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL WAL' + - type: graph + 'y': '15' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL bgwriter' + - type: graph + x: '12' + 'y': '15' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '0' + - type: GRAPH + name: graphid + value: + host: 'PostgreSQL by Zabbix agent' + name: 'PostgreSQL checkpoints' + valuemaps: + - uuid: 2e376ee568d04e7bbe98cbae4181f313 + name: 'PostgreSQL recovery role' + mappings: + - value: '0' + newvalue: Master + - value: '1' + newvalue: Standby + - uuid: 7f553f18ef6544ceaa4b50c4ebf0e583 + name: 'PostgreSQL replication status' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + - value: '2' + newvalue: Master + - uuid: 372bc939f3924aafa13c4821b83a9276 + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up + graphs: + - uuid: 6b4b92c62cb94e10b11f218ed35f6211 + name: 'PostgreSQL bgwriter' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_alloc.rate + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_clean.rate + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_backend.rate + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_checkpoint.rate + - sortorder: '4' + color: FC6EA3 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.maxwritten_clean.rate + - sortorder: '5' + color: 6C59DC + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.buffers_backend_fsync.rate + - uuid: 4a105d193df64be7898ac19a2f07faa4 + name: 'PostgreSQL checkpoints' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoints_timed.rate + - sortorder: '1' + color: 2774A4 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoints_req.rate + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoint_sync_time + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.bgwriter.checkpoint_write_time + - uuid: 8d41d719832049a5a1fcd6f4da67fb6a + name: 'PostgreSQL connections' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.total + - sortorder: '1' + color: 2774A4 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.total_pct + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.active + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.idle + - sortorder: '4' + color: FC6EA3 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.idle_in_transaction + - sortorder: '5' + color: 6C59DC + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.prepared + - sortorder: '6' + color: AC8C14 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.connections.sum.waiting + - uuid: 1e9a55ee61824779a9f46f42ec21abef + name: 'PostgreSQL ping' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.ping["{$PG.HOST}","{$PG.PORT}"]' + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.ping.time["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + - uuid: d8cf31fc39584a63b9384d9c3ebf40ee + name: 'PostgreSQL replication lag' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.replication.lag.sec["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + - uuid: 10d1de74e9d848399ca038055e5cc8ce + name: 'PostgreSQL transactions' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.active + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.idle + - sortorder: '2' + color: F63100 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.prepared + - sortorder: '3' + color: A54F10 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.transactions.waiting + - uuid: 45fe7967596741129b4f2462922636bf + name: 'PostgreSQL uptime' + show_triggers: 'NO' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.uptime["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: 'pgsql.cache.hit["{$PG.HOST}","{$PG.PORT}","{$PG.USER}","{$PG.PASSWORD}","{$PG.DB}"]' + - uuid: 93ca2dc7a3ff4a458c45e2a56390ce72 + name: 'PostgreSQL WAL' + ymin_type_1: FIXED + graph_items: + - color: 1A7C11 + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.wal.write + - sortorder: '1' + color: 2774A4 + yaxisside: RIGHT + item: + host: 'PostgreSQL by Zabbix agent' + key: pgsql.wal.count diff --git a/Service - Dovecot.yaml b/Service - Dovecot.yaml new file mode 100644 index 0000000..0b09b97 --- /dev/null +++ b/Service - Dovecot.yaml @@ -0,0 +1,68 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 6a84cbfc3fb840d58521727cfe3a9800 + template: 'Service - Dovecot' + name: 'Service - Dovecot' + groups: + - name: Templates + items: + - uuid: 255135e1c0dd439e905d68fb46ef7d7f + name: 'Dovecot Device Count' + key: dovecot.devicecount + delay: 60s + request_method: POST + tags: + - tag: Application + value: dovecot + - uuid: dd1cdd50632b4a93880e28f7226436d7 + name: 'Dovecot process count' + key: dovecot.processes + delay: 30s + request_method: POST + tags: + - tag: Application + value: dovecot + triggers: + - uuid: fb65a65170694efbba9f74d914c6e970 + expression: 'last(/Service - Dovecot/dovecot.processes)>6000' + name: 'Number of Dovecot processes high' + priority: WARNING + - uuid: f3ddf2bec10647209d6b3cffcfb6d353 + name: 'Dovecot User Count' + key: dovecot.usercount + delay: 600s + request_method: POST + tags: + - tag: Application + value: dovecot + triggers: + - uuid: c678c27311544077885e76b362aa1c4f + expression: 'last(/Service - Dovecot/dovecot.usercount)>1500' + name: 'Number of Dovecot online users high' + priority: WARNING + graphs: + - uuid: e650eb48751a42ed8bc86985760ff749 + name: 'Dovecot Device Count' + graph_items: + - color: 9999FF + item: + host: 'Service - Dovecot' + key: dovecot.devicecount + - uuid: b9e5ef35ec6f438a95ed5e488cdd08c2 + name: 'Dovecot process count' + graph_items: + - color: 1A7C11 + item: + host: 'Service - Dovecot' + key: dovecot.processes + - uuid: 3ea3668708034b7386b2dfc3d7c45e75 + name: 'Dovecot User Count' + graph_items: + - color: 1A7C11 + item: + host: 'Service - Dovecot' + key: dovecot.usercount diff --git a/Service - Ethercalc.yaml b/Service - Ethercalc.yaml new file mode 100644 index 0000000..eaa6cb4 --- /dev/null +++ b/Service - Ethercalc.yaml @@ -0,0 +1,19 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 82a4c529567745a5bc9715b2d0efc12f + template: 'Service - Ethercalc' + name: 'Service - Ethercalc' + groups: + - name: Templates + items: + - uuid: 1f0990a84913468aa79af3252dc654b4 + name: 'Total calcs' + key: 'ethercalc[calc_all]' + delay: 5s + tags: + - tag: Application + value: ethercalc diff --git a/Service - Etherpad.yaml b/Service - Etherpad.yaml new file mode 100644 index 0000000..f4f8452 --- /dev/null +++ b/Service - Etherpad.yaml @@ -0,0 +1,33 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: a658ec9bed5143518c8d052b95764c8d + template: 'Service - Etherpad' + name: 'Service - Etherpad' + groups: + - name: Templates + items: + - uuid: e1d6a94c64204a7487ef98dc842eb373 + name: 'Total pads' + key: 'etherpad[pads_totalpads]' + delay: 50m + tags: + - tag: Application + value: Etherpad + - uuid: 1730e1a9c9944df6a7d05758569bb309 + name: 'Total active pads' + key: 'etherpad[pad_activepads]' + delay: 5m + tags: + - tag: Application + value: Etherpad + - uuid: 88871b77aaeb465e81a4f5f7e5fb0f7b + name: 'Total active users' + key: 'etherpad[pad_activeusers]' + delay: 5m + tags: + - tag: Application + value: Etherpad diff --git a/Service - Framadate.yaml b/Service - Framadate.yaml new file mode 100644 index 0000000..06f9169 --- /dev/null +++ b/Service - Framadate.yaml @@ -0,0 +1,33 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 709eb484a88c458a99cd2b7a9ef94be6 + template: 'Service - Framadate' + name: 'Service - Framadate' + groups: + - name: Templates + items: + - uuid: b5884b213686444d9be4472550e542f0 + name: 'All Polls' + key: 'framadate[polls_all]' + delay: 50m + tags: + - tag: Application + value: framadate + - uuid: 78fddcd9b1cc47cebca0d74eca31aeb7 + name: 'All Event type Polls' + key: 'framadate[polls_events]' + delay: 50m + tags: + - tag: Application + value: framadate + - uuid: 7a58901ad19a4813a0b2240e32f31b55 + name: 'All Standard Polls' + key: 'framadate[polls_standard]' + delay: 50m + tags: + - tag: Application + value: framadate diff --git a/Service - Lufi.yaml b/Service - Lufi.yaml new file mode 100644 index 0000000..9e7e562 --- /dev/null +++ b/Service - Lufi.yaml @@ -0,0 +1,40 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 80622a50a5304c4d92b592a175a78f06 + template: 'Service - Lufi' + name: 'Service - Lufi' + groups: + - name: Templates + items: + - uuid: 9b433251a062440d96fc2b71003fb33e + name: 'Number of active files' + key: 'lufi[lufi_active]' + delay: 5s + tags: + - tag: Application + value: Lufi + - uuid: 294ebf2b35174afca339eee80d313c1a + name: 'Number of files' + key: 'lufi[lufi_allfiles]' + delay: 5s + tags: + - tag: Application + value: Lufi + - uuid: 255e8410c94a4becb2bcdff0b09387e3 + name: 'Number of deleted files' + key: 'lufi[lufi_deleted]' + delay: 5s + tags: + - tag: Application + value: Lufi + - uuid: 5d46afce28124971a54641685ebcbb72 + name: 'Size of all files' + key: 'lufi[lufi_size]' + delay: 5s + tags: + - tag: Application + value: Lufi diff --git a/Service - Nextcloud.yaml b/Service - Nextcloud.yaml new file mode 100644 index 0000000..0cc20ca --- /dev/null +++ b/Service - Nextcloud.yaml @@ -0,0 +1,159 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 58fb6d9c9e654fd68b56043126a4abff + template: 'Service - Nextcloud' + name: 'Service - Nextcloud' + description: 'This Template will get the monitoring data from the nextcloud xml monitoring.' + groups: + - name: Templates + items: + - uuid: be581cb15c344240bc7f0b4b205f5a8f + name: 'Active Users' + key: 'nextcloud[last5minutes]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: eca1e64779934b578d0e0257ec79b8df + name: 'Number files' + key: 'nextcloud[num_files]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: add31f850aee4744bdefdfa1c89b168b + name: 'Number shares' + key: 'nextcloud[num_shares]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: 068c54716457413fb28aaf2470b83797 + name: 'number of group shares' + key: 'nextcloud[num_shares_groups]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: 60f02537cbac4c19be09e234b9cd18ef + name: 'shares via link' + key: 'nextcloud[num_shares_link]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: 9a52301e24bb495ebd30fcbddbe7fddb + name: 'shares via link with out password' + key: 'nextcloud[num_shares_link_no_password]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: a5f4a037100043098f6411faecf85b69 + name: 'number of sharred with users' + key: 'nextcloud[num_shares_user]' + delay: '300' + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: afd3a5fc24c04e318367b4bffea3e19a + name: 'Nextcloud Version' + key: 'nextcloud[version]' + delay: '60480' + trends: '0' + value_type: TEXT + request_method: POST + tags: + - tag: Application + value: nextcloud + - uuid: cc78c1556d404f918d53666b636ecc20 + name: 'Nextcloud News Items' + key: 'nextcloud_news[nc_news_items]' + delay: '30' + tags: + - tag: Application + value: nextcloud_news + - uuid: 088d22eee5284d8386243bf3a0923e7e + name: 'Nextcloud News Read' + key: 'nextcloud_news[nc_news_read]' + delay: '30' + tags: + - tag: Application + value: nextcloud_news + - uuid: 5fe9b071c2e7498da4277df18b06d8d1 + name: 'Nextcloud News Unread' + key: 'nextcloud_news[nc_news_unread]' + delay: '30' + tags: + - tag: Application + value: nextcloud_news + graphs: + - uuid: dce2e074033f4df58f01bd81a4925039 + name: 'Active Users' + graph_items: + - color: 00C800 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[last5minutes]' + - uuid: 6837f8bcc2614ff0b903751bd56baaf9 + name: 'Nextcloud news' + graph_items: + - color: 4A148C + item: + host: 'Service - Nextcloud' + key: 'nextcloud_news[nc_news_items]' + - sortorder: '1' + color: 33691E + item: + host: 'Service - Nextcloud' + key: 'nextcloud_news[nc_news_read]' + - sortorder: '2' + color: '891515' + item: + host: 'Service - Nextcloud' + key: 'nextcloud_news[nc_news_unread]' + - uuid: bd7d7a96e26f45678bd602ba6cd65e4f + name: 'Number files' + graph_items: + - color: 00C800 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[num_files]' + - uuid: d82adc5751bc4980ac93ae6432e8422c + name: 'share statistics' + graph_items: + - color: C80000 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[num_shares]' + - sortorder: '1' + color: 0000C8 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[num_shares_groups]' + - sortorder: '2' + color: C800C8 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[num_shares_user]' + - sortorder: '3' + color: 00C8C8 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[num_shares_link]' + - sortorder: '4' + color: C8C800 + item: + host: 'Service - Nextcloud' + key: 'nextcloud[num_shares_link_no_password]' diff --git a/Service - PrivateBin.yaml b/Service - PrivateBin.yaml new file mode 100644 index 0000000..4894767 --- /dev/null +++ b/Service - PrivateBin.yaml @@ -0,0 +1,27 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: e40760d657aa42bfb2232fcab65155a4 + template: 'Service - PrivateBin' + name: 'Service - PrivateBin' + description: 'Template for monitoring of PrvateBin' + groups: + - name: Templates + items: + - uuid: 4246fb91d1d7440d90c1b31ac383fd23 + name: 'Size of all Pastebins' + key: 'privatebin[bin_size]' + delay: 5s + tags: + - tag: Application + value: PrivateBin + - uuid: e7d359c4e9ac48519dbdd4ca9bef9b12 + name: 'Amount of Pastebins' + key: 'privatebin[bin_total]' + delay: 50m + tags: + - tag: Application + value: PrivateBin diff --git a/Service - Prosody.yaml b/Service - Prosody.yaml new file mode 100644 index 0000000..9b26daa --- /dev/null +++ b/Service - Prosody.yaml @@ -0,0 +1,183 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 26742a8a9ccb4fbca803d6b4baa58a5d + template: 'Service - Prosody' + name: 'Service - Prosody' + groups: + - name: Templates + items: + - uuid: 541d5b6361de41cea585ca3db6209fff + name: 'Memory allocated' + type: TRAP + key: prosody.memory_allocated + delay: '0' + units: Bytes + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 1207731dbe104d628776d095ddb2f8ef + name: 'Memory used by Lua' + type: TRAP + key: prosody.memory_lua + delay: '0' + units: Bytes + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 50e915114e7c41c3bfdfad83881f063b + name: 'Memory returnable' + type: TRAP + key: prosody.memory_returnable + delay: '0' + units: Bytes + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 6ca14acdeda44096b5ff89a822f4d726 + name: 'Memory unused' + type: TRAP + key: prosody.memory_unused + delay: '0' + units: Bytes + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: d75825008c094d45b46cefb76635b187 + name: 'Memory used' + type: TRAP + key: prosody.memory_used + delay: '0' + units: Bytes + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 94ce64d794de4a29acd2511f2987af8b + name: 'Connected Clients' + type: TRAP + key: prosody.total_c2s + delay: '0' + units: Connections + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: e4be948b2467417d8978a2583f8ca1bf + name: 'Connected Components' + type: TRAP + key: prosody.total_component + delay: '0' + units: Connections + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 3c460cbe682c440589131a0491fc94c5 + name: 'Incoming server connections' + type: TRAP + key: prosody.total_s2sin + delay: '0' + units: Connections + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 351095ab83674db1934f410afcccfcf7 + name: 'Outgoing server connections' + type: TRAP + key: prosody.total_s2sout + delay: '0' + units: Connections + request_method: POST + tags: + - tag: Application + value: Prosody + - uuid: 5ebbeec834ba45e48fcf44a270066ba4 + name: 'Connected Users' + type: TRAP + key: prosody.total_users + delay: '0' + units: Users + request_method: POST + tags: + - tag: Application + value: Prosody + triggers: + - uuid: c2bf3938ac2d482390ce7f0a40e29cab + expression: 'last(/Service - Prosody/prosody.total_users,#1:now-5s)<250' + name: 'Suspicious low amount of users online' + priority: DISASTER + - uuid: 1652fa11ae774b2d9620d091fab6aa6b + name: 'Prosody Version' + type: TRAP + key: prosody.version + delay: '0' + trends: '0' + value_type: TEXT + request_method: POST + tags: + - tag: Application + value: Prosody + graphs: + - uuid: ce4a98da11ba4328a3679661b9036378 + name: 'Prosody Connections' + graph_items: + - color: 1A7C11 + item: + host: 'Service - Prosody' + key: prosody.total_c2s + - sortorder: '1' + color: F63100 + item: + host: 'Service - Prosody' + key: prosody.total_component + - sortorder: '2' + color: 2774A4 + item: + host: 'Service - Prosody' + key: prosody.total_users + - sortorder: '3' + color: A54F10 + item: + host: 'Service - Prosody' + key: prosody.total_s2sin + - sortorder: '4' + color: FC6EA3 + item: + host: 'Service - Prosody' + key: prosody.total_s2sout + - uuid: f40d5c78c4624355aad1dc81837990ab + name: 'Prosody Ram consumption' + graph_items: + - color: 1A7C11 + item: + host: 'Service - Prosody' + key: prosody.memory_allocated + - sortorder: '1' + color: F63100 + item: + host: 'Service - Prosody' + key: prosody.memory_returnable + - sortorder: '2' + color: 2774A4 + item: + host: 'Service - Prosody' + key: prosody.memory_unused + - sortorder: '3' + color: A54F10 + item: + host: 'Service - Prosody' + key: prosody.memory_used + - sortorder: '4' + color: FC6EA3 + item: + host: 'Service - Prosody' + key: prosody.memory_lua diff --git a/Site check.yaml b/Site check.yaml new file mode 100644 index 0000000..a713a4f --- /dev/null +++ b/Site check.yaml @@ -0,0 +1,809 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 5382aaf8b3d24deba717f9805b0dd511 + name: Containers + templates: + - uuid: 13760a2f17f14384962462d8ec37fa27 + template: 'Site check' + name: 'Site check' + groups: + - name: Containers + items: + - uuid: b31dc63160e64551aa444d9d7d28606a + name: 'Site Letsencrypt date to expire - apps.disroot.org' + key: 'site.score[ltpdate,apps.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 618c8db824444a8e978450b32c6aa68e + name: 'Site Letsencrypt date to expire - bin.disroot.org' + key: 'site.score[ltpdate,bin.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: f1078434e0d24b21a238c98b09ff3a93 + name: 'Site Letsencrypt date to expire - board.disroot.org' + key: 'site.score[ltpdate,board.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: b08956e1d2384b1993eaf4d677e879a3 + name: 'Site Letsencrypt date to expire - cloud.disroot.org' + key: 'site.score[ltpdate,cloud.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: cd61148f8c4443df99c8d4b7bdd1ebcf + name: 'Site Letsencrypt date to expire - cryptpad.disroot.org' + key: 'site.score[ltpdate,cryptpad.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 322a24b28f03491cb333fc53dc77f6ed + name: 'Site Letsencrypt date to expire - disroot.org' + key: 'site.score[ltpdate,disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 4c43c3de75644706b8cefe06fa36e877 + name: 'Site Letsencrypt date to expire - fe.disroot.org' + key: 'site.score[ltpdate,fe.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 332e1c11209442799a56c0b903101c72 + name: 'Site Letsencrypt date to expire - forum.disroot.org' + key: 'site.score[ltpdate,forum.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: fde369c6d3dc41809f71bd87cd6d38f1 + name: 'Site Letsencrypt date to expire - git.disroot.org' + key: 'site.score[ltpdate,git.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: efdc7cf3f489454a84e659592efdae88 + name: 'Site Letsencrypt date to expire - howto.disroot.org' + key: 'site.score[ltpdate,howtodisroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 7dade5e5ed47478b8352fb2e80ee570a + name: 'Site Letsencrypt date to expire - mail.disroot.org' + key: 'site.score[ltpdate,mail.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 02535fb38f3f4d1fafa123c06d2ab55f + name: 'Site Letsencrypt date to expire - ncapps.disroot.org' + key: 'site.score[ltpdate,ncapps.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 9e2e7f14cfe847a1be101fe08cfb0014 + name: 'Site Letsencrypt date to expire - pad.disroot.org' + key: 'site.score[ltpdate,pad.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 9924d38d00a649a6b2976cd99c73af1a + name: 'Site Letsencrypt date to expire - search.disroot.org' + key: 'site.score[ltpdate,search.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 12cc03c162274486bf038b026fccf1c2 + name: 'Site Letsencrypt date to expire - state.disroot.org' + key: 'site.score[ltpdate,state.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 7788e7eced864c44b0af86cb58a615fb + name: 'Site Letsencrypt date to expire - upload.disroot.org' + key: 'site.score[ltpdate,upload.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 72ae2a7c55494708ab9b501d497abfd5 + name: 'Site Letsencrypt date to expire - user.disroot.org' + key: 'site.score[ltpdate,user.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: e2f5851f107f4c69904bb0b7de8dd93d + name: 'Site Letsencrypt days to expire - apps.disroot.org' + key: 'site.score[ltpday,apps.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: d0c994a3b4784481bfaf82517ebbd4f0 + expression: 'last(/Site check/site.score[ltpday,apps.disroot.org])<7' + name: 'apps.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 4a2e81ece8c34a18be08aa8b670dea26 + expression: 'last(/Site check/site.score[ltpday,apps.disroot.org])<25' + name: 'apps.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 8a46b358ed5442f3a2eb8eb38a98c81d + name: 'Site Letsencrypt days to expire - bin.disroot.org' + key: 'site.score[ltpday,bin.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 5cd71a51cc114484a8e1fedd1b0d34a3 + expression: 'last(/Site check/site.score[ltpday,bin.disroot.org])<7' + name: 'bin.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 95743b6759564d1591f1036acb036fb9 + expression: 'last(/Site check/site.score[ltpday,bin.disroot.org])<25' + name: 'bin.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 83cef36ffedb457caaf8b9092b71f03d + name: 'Site Letsencrypt days to expire - board.disroot.org' + key: 'site.score[ltpday,board.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 7c550ef2627a4f41a3314b98bf470ae9 + expression: 'last(/Site check/site.score[ltpday,board.disroot.org])<7' + name: 'board.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 264884ba77804a58b26e9f288a39b185 + expression: 'last(/Site check/site.score[ltpday,board.disroot.org])<25' + name: 'board.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 32a8f943ddbd404f819197eb7a070a44 + name: 'Site Letsencrypt days to expire - cloud.disroot.org' + key: 'site.score[ltpday,cloud.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 090674edbd054c138be8120f286d7b24 + expression: 'last(/Site check/site.score[ltpday,cloud.disroot.org])<7' + name: 'cloud.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 58d2dae6b91a4c86b4524fdbb6337ded + expression: 'last(/Site check/site.score[ltpday,cloud.disroot.org])<25' + name: 'cloud.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 93905f89293f48dd96d2b6d8a583ac13 + name: 'Site Letsencrypt days to expire - cryptpad.disroot.org' + key: 'site.score[ltpday,cryptpad.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: ae21e3bb786646bab0d89b0981b7af66 + expression: 'last(/Site check/site.score[ltpday,cryptpad.disroot.org])<7' + name: 'cryptpad.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 9dd61e034d8846819103b65c175fb560 + expression: 'last(/Site check/site.score[ltpday,cryptpad.disroot.org])<25' + name: 'cryptpad.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: f11a0c09c7f44408b1b354a24b1478ad + name: 'Site Letsencrypt days to expire - disroot.org' + key: 'site.score[ltpday,disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 1fe82e1319314df3b489ebedd1cdcafd + expression: 'last(/Site check/site.score[ltpday,disroot.org])<7' + name: 'disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 9d258efa10c048dfb91f941ba6264f75 + expression: 'last(/Site check/site.score[ltpday,disroot.org])<25' + name: 'disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 2a75dea67d614894812cb0ba3540f366 + name: 'Site Letsencrypt days to expire - fe.disroot.org' + key: 'site.score[ltpday,fe.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: e10d5604a23546a89899ad1d70a72f87 + expression: 'last(/Site check/site.score[ltpday,fe.disroot.org])<7' + name: 'fe.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 28f156364d2c4bd088ec7a23e8624c01 + expression: 'last(/Site check/site.score[ltpday,fe.disroot.org])<25' + name: 'fe.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: e1c5e5a99ddb45c9a4b199a24a767edd + name: 'Site Letsencrypt days to expire - forum.disroot.org' + key: 'site.score[ltpday,forum.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: d854b523b5754cd7a022db60d5ad9418 + expression: 'last(/Site check/site.score[ltpday,forum.disroot.org])<7' + name: 'forum.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: b52a3bcee8094c35a1607b876a2490f5 + expression: 'last(/Site check/site.score[ltpday,forum.disroot.org])<25' + name: 'forum.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 126496160665432792706d443a24fa5d + name: 'Site Letsencrypt days to expire - git.disroot.org' + key: 'site.score[ltpday,git.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: fb4ec1a8a9924311837e44895547ef84 + expression: 'last(/Site check/site.score[ltpday,git.disroot.org])<7' + name: 'git.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 417ae63119ae4cc2a2a5a3d47ffd39b6 + expression: 'last(/Site check/site.score[ltpday,git.disroot.org])<25' + name: 'git.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 1700bb53f0094e54a4c4bf72721ac57b + name: 'Site Letsencrypt days to expire - howto.disroot.org' + key: 'site.score[ltpday,howto.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + - uuid: 1a7f1d86bfa14e0d9938af441fc6ebe4 + name: 'Site Letsencrypt days to expire - mail.disroot.org' + key: 'site.score[ltpday,mail.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 20787439917e4ee29503b9d37bad8fe5 + expression: 'last(/Site check/site.score[ltpday,mail.disroot.org])<7' + name: 'mail.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: e501be87b453499daed85ae3397a55bc + expression: 'last(/Site check/site.score[ltpday,mail.disroot.org])<25' + name: 'mail.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 49ac14ef2c3f4b5a9c33eddb51ae9e36 + name: 'Site Letsencrypt days to expire - ncapps.disroot.org' + key: 'site.score[ltpday,ncapps.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 888c6320a80e4afeb91ee7e1ccc8612a + expression: 'last(/Site check/site.score[ltpday,ncapps.disroot.org])<7' + name: 'ncapps.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: e9c654da73e24746b608e4f418372873 + expression: 'last(/Site check/site.score[ltpday,ncapps.disroot.org])<25' + name: 'ncapps.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: b00cbffb3c754743b9dd3a99a6481597 + name: 'Site Letsencrypt days to expire - pad.disroot.org' + key: 'site.score[ltpday,pad.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 8bd30468e29e459295b6658b0a7e894a + expression: 'last(/Site check/site.score[ltpday,pad.disroot.org])<7' + name: 'pad.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 288072e61821410aa516908d1fa68b51 + expression: 'last(/Site check/site.score[ltpday,pad.disroot.org])<25' + name: 'pad.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: ae49200add9840de82335b652d7854d4 + name: 'Site Letsencrypt days to expire - search.disroot.org' + key: 'site.score[ltpday,search.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 5cf1f38805ea4067b5cf0d4d8fea5136 + expression: 'last(/Site check/site.score[ltpday,search.disroot.org])<7' + name: 'search.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 315b30d3fb0a48ddac456bc642f22178 + expression: 'last(/Site check/site.score[ltpday,search.disroot.org])<25' + name: 'search.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 2adc87738bf441f894b00c1e2ae3c5ac + name: 'Site Letsencrypt days to expire - state.disroot.org' + key: 'site.score[ltpday,state.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: f6939f47324345358f8505e2a06a83d7 + expression: 'last(/Site check/site.score[ltpday,state.disroot.org])<7' + name: 'state.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 481f38c63f7f48a090683cd6d6ec2e26 + expression: 'last(/Site check/site.score[ltpday,state.disroot.org])<25' + name: 'state.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 6cc3b097271f46c2bf55b69f12e82079 + name: 'Site Letsencrypt days to expire - upload.disroot.org' + key: 'site.score[ltpday,upload.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: 708357a58904498f872b5e5cecf90133 + expression: 'last(/Site check/site.score[ltpday,upload.disroot.org])<7' + name: 'upload.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: fc275ea150f2453ca869cdaef7d481b8 + expression: 'last(/Site check/site.score[ltpday,upload.disroot.org])<25' + name: 'upload.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: 63499c281fb5431881433f29b0db9cf4 + name: 'Site Letsencrypt days to expire - user.disroot.org' + key: 'site.score[ltpday,user.disroot.org]' + delay: 1d + tags: + - tag: Application + value: 'Site check letsencrypt' + triggers: + - uuid: f89ed741c5a44efe87645618bbadb0a9 + expression: 'last(/Site check/site.score[ltpday,user.disroot.org])<7' + name: 'user.disroot.org - Site Letsencrypt exires in a week!' + priority: DISASTER + - uuid: 2f08ddb3ce9f43749b91b86f58816670 + expression: 'last(/Site check/site.score[ltpday,user.disroot.org])<25' + name: 'user.disroot.org - Site Letsencrypt exires soon' + priority: WARNING + - uuid: d33edec45c0149fd863388036619d0c3 + name: 'Site Score - apps.disroot.org' + key: 'site.score[score,apps.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 7b8e12b8879e4bc7b174400784c078b1 + expression: '(last(/Site check/site.score[score,apps.disroot.org],#1)<>last(/Site check/site.score[score,apps.disroot.org],#2))>0' + name: 'Site Score - apps.disroot.org' + priority: WARNING + - uuid: a48e046a9dfe4e3ebace34321c3a28b0 + name: 'Site Score - bin.disroot.org' + key: 'site.score[score,bin.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: d39e6b572534495dace07581b465aac0 + expression: '(last(/Site check/site.score[score,bin.disroot.org],#1)<>last(/Site check/site.score[score,bin.disroot.org],#2))>0' + name: 'Site Score - bin.disroot.org' + priority: WARNING + - uuid: cc0c5df534164d2186f1e7ae74b8047b + name: 'Site Score - board.disroot.org' + key: 'site.score[score,board.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: fad878a4c05d46ec939772b80af4292a + expression: '(last(/Site check/site.score[score,board.disroot.org],#1)<>last(/Site check/site.score[score,board.disroot.org],#2))>0' + name: 'Site Score - board.disroot.org' + priority: WARNING + - uuid: 035ddfea120b450ebf939239f2539078 + name: 'Site Score - cloud.disroot.org' + key: 'site.score[score,cloud.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: ee9fb7bea2a041cd87c2c8795c23eb6a + expression: '(last(/Site check/site.score[score,cloud.disroot.org],#1)<>last(/Site check/site.score[score,cloud.disroot.org],#2))>0' + name: 'Site Score - cloud.disroot.org' + priority: WARNING + - uuid: 91cb7b61cd104d1fbd9891d8ac2bd792 + name: 'Site Score - cryptpad.disroot.org' + key: 'site.score[score,cryptpad.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: a4c03807533d4d0487489981c8d0cac2 + expression: '(last(/Site check/site.score[score,cryptpad.disroot.org],#1)<>last(/Site check/site.score[score,cryptpad.disroot.org],#2))>0' + name: 'Site Score - cryptpad.disroot.org' + priority: WARNING + - uuid: 3d5ceb23895d4d8a8b21ecff0b873362 + name: 'Site Score - disroot.org' + key: 'site.score[score,disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: eb859595894e4482a222b62a7e5a042e + expression: '(last(/Site check/site.score[score,disroot.org],#1)<>last(/Site check/site.score[score,disroot.org],#2))>0' + name: 'Site Score - disroot.org' + priority: WARNING + - uuid: 459f90e2102c46679d8b734e1693f0b0 + name: 'Site Score - fe.disroot.org' + key: 'site.score[score,fe.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 00a11eade98b4417a53462519d88d71c + expression: '(last(/Site check/site.score[score,fe.disroot.org],#1)<>last(/Site check/site.score[score,fe.disroot.org],#2))>0' + name: 'Site Score - fe.disroot.org' + priority: WARNING + - uuid: f063a4c79d534e0a99b260f336682582 + name: 'Site Score - forum.disroot.org' + key: 'site.score[score,forum.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 069a82562d47471cb719c7b11a0d22e5 + expression: '(last(/Site check/site.score[score,forum.disroot.org],#1)<>last(/Site check/site.score[score,forum.disroot.org],#2))>0' + name: 'Site Score - forum.disroot.org' + priority: WARNING + - uuid: a214290bd0b744d78f90c57bffd03a37 + name: 'Site Score - git.disroot.org' + key: 'site.score[score,git.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: c0705f68261446ce99378e482ca1de42 + expression: '(last(/Site check/site.score[score,git.disroot.org],#1)<>last(/Site check/site.score[score,git.disroot.org],#2))>0' + name: 'Site Score - git.disroot.org' + priority: WARNING + - uuid: bb19712c999b4555b3b30b036139c5bb + name: 'Site Score - howto.disroot.org' + key: 'site.score[score,howto.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + - uuid: 39a20a1f6c4a4d70b279d48c23879423 + name: 'Site Score - mail.disroot.org' + key: 'site.score[score,mail.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 520d2ab8d8424326ae3618e59aedf978 + expression: '(last(/Site check/site.score[score,mail.disroot.org],#1)<>last(/Site check/site.score[score,mail.disroot.org],#2))>0' + name: 'Site Score - mail.disroot.org' + priority: WARNING + - uuid: 54ebc72c9c3a4f199ee58b49419ca9e3 + name: 'Site Score - ncapps.disroot.org' + key: 'site.score[score,ncapps.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 7beb433b926c4a16b8be44ca0354d39b + expression: '(last(/Site check/site.score[score,ncapps.disroot.org],#1)<>last(/Site check/site.score[score,ncapps.disroot.org],#2))>0' + name: 'Site Score - ncapps.disroot.org' + priority: WARNING + - uuid: fa9d68212d4f4964b313bfe44320071f + name: 'Site Score - pad.disroot.org' + key: 'site.score[score,pad.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: e89702f556514d5687dfde643d416710 + expression: '(last(/Site check/site.score[score,pad.disroot.org],#1)<>last(/Site check/site.score[score,pad.disroot.org],#2))>0' + name: 'Site Score - pad.disroot.org' + priority: WARNING + - uuid: 1c78a796d4f4452aad9d688744d1fb86 + name: 'Site Score - search.disroot.org' + key: 'site.score[score,search.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: c40dc67649314076947f3cb2fbcea624 + expression: '(last(/Site check/site.score[score,search.disroot.org],#1)<>last(/Site check/site.score[score,search.disroot.org],#2))>0' + name: 'Site Score - search.disroot.org' + priority: WARNING + - uuid: b07be006ce49404ba882283b9eaaa8c2 + name: 'Site Score - state.disroot.org' + key: 'site.score[score,state.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: dabd591415384e0785dbfb0cc12f09ed + expression: '(last(/Site check/site.score[score,state.disroot.org],#1)<>last(/Site check/site.score[score,state.disroot.org],#2))>0' + name: 'Site Score - state.disroot.org' + priority: WARNING + - uuid: 27a3b69da8034c259c9a8dec54e31c72 + name: 'Site Score - upload.disroot.org' + key: 'site.score[score,upload.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 62f34372940a4636b3cf54966daae3ad + expression: '(last(/Site check/site.score[score,upload.disroot.org],#1)<>last(/Site check/site.score[score,upload.disroot.org],#2))>0' + name: 'Site Score - upload.disroot.org' + priority: WARNING + - uuid: 905297692a0f4f14ad7c05839155d98a + name: 'Site Score - user.disroot.org' + key: 'site.score[score,user.disroot.org]' + delay: 24h + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: 'Site check Score' + triggers: + - uuid: 7162845bf4fc4414900e39dc294ddd25 + expression: '(last(/Site check/site.score[score,user.disroot.org],#1)<>last(/Site check/site.score[score,user.disroot.org],#2))>0' + name: 'Site Score - user.disroot.org' + priority: WARNING + - uuid: df3eb4ea7327499eaa50e9bacfb18468 + name: 'apps.disroot.org - Site Up Code' + key: 'site.score[up,apps.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: a4535f653cd6477b805c441d2b621965 + expression: 'last(/Site check/site.score[up,apps.disroot.org])<>200' + name: 'apps.disroot.org - is down!' + priority: HIGH + - uuid: d6b6fb44cd6b4b388a0d3812ff3a105d + name: 'bin.disroot.org - Site Up Code' + key: 'site.score[up,bin.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: c4c66b4802ab4dc58f592c5b32629176 + expression: 'last(/Site check/site.score[up,bin.disroot.org])<>200' + name: 'bin.disroot.org - is down!' + priority: HIGH + - uuid: ebc7080d17a34667a4e18d611756698f + name: 'board.disroot.org - Site Up Code' + key: 'site.score[up,board.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: def483625e464f0d852d8130a488ba69 + expression: 'last(/Site check/site.score[up,board.disroot.org])<>200' + name: 'board.disroot.org - is down!' + priority: HIGH + - uuid: 98e1685c5ba544ecbb81199b62cb5f6b + name: 'cloud.disroot.org - Site Up Code' + key: 'site.score[up,cloud.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: fac2b77c7a944d9da3e5237d46de0efc + expression: 'last(/Site check/site.score[up,cloud.disroot.org])<>200' + name: 'cloud.disroot.org - is down!' + priority: HIGH + - uuid: c715be42a6cb4ef2891236e49a29269d + name: 'cryptpad.disroot.org - Site Up Code' + key: 'site.score[up,cryptpad.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 3551c76809dc4cedbbce392b49d9fda2 + expression: 'last(/Site check/site.score[up,cryptpad.disroot.org])<>200' + name: 'cryptpad.disroot.org - is down!' + priority: HIGH + - uuid: e79b84c73b3749f283193296a467846a + name: 'disroot.org - Site Up Code' + key: 'site.score[up,disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 3ea0ce3c6a634fe9b243cb9e3c69fcb9 + expression: 'last(/Site check/site.score[up,disroot.org])<>200' + name: 'disroot.org - is down!' + priority: HIGH + - uuid: 1bb4e6515406439a87a8048c8f9149fc + name: 'fe.disroot.org - Site Up Code' + key: 'site.score[up,fe.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 9275dde55982453bb2f2ce650cfffcd6 + expression: 'last(/Site check/site.score[up,fe.disroot.org])<>200' + name: 'fe.disroot.org - is down!' + priority: HIGH + - uuid: 02cbb9be68c34f32b270c9d454890601 + name: 'forum.disroot.org - Site Up Code' + key: 'site.score[up,forum.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 4cf4745a36ed4118bffa31071977417c + expression: 'last(/Site check/site.score[up,forum.disroot.org])<>200' + name: 'forum.disroot.org - is down!' + priority: HIGH + - uuid: 2ccdc0dec9a54cc489c321fbf108050b + name: 'git.disroot.org - Site Up Code' + key: 'site.score[up,git.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: e06d7373e77f4a6680e2f382da609820 + expression: 'last(/Site check/site.score[up,git.disroot.org])<>200' + name: 'git.disroot.org - is down!' + priority: HIGH + - uuid: daaf618053cc4690a7455d3e47678ad6 + name: 'Site Up - howto.disroot.org' + key: 'site.score[up,howto.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + - uuid: fb39b0606ac3408e98741788fa4383e0 + name: 'mail.disroot.org - Site Up Code' + key: 'site.score[up,mail.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 0f2eba20f97740a38946f4990a87387a + expression: 'last(/Site check/site.score[up,mail.disroot.org])<>200' + name: 'mail.disroot.org - is down!' + priority: HIGH + - uuid: b15228c88e4442199883b781122e3a07 + name: 'ncapps.disroot.org - Site Up Code' + key: 'site.score[up,ncapps.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 911e2783b4794a8db6a6cf7fe579f80f + expression: 'last(/Site check/site.score[up,ncapps.disroot.org])<>200' + name: 'ncapps.disroot.org - is down!' + priority: HIGH + - uuid: e9812ff4de5c409b99f355bf9587f3de + name: 'pad.disroot.org - Site Up Code' + key: 'site.score[up,pad.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: a0cb445590f543b9b5dd696fb8ce2cd4 + expression: 'last(/Site check/site.score[up,pad.disroot.org])<>200' + name: 'pad.disroot.org - is down!' + priority: HIGH + - uuid: ee747deeae51459bb475f3422fccfdfb + name: 'search.disroot.org - Site Up Code' + key: 'site.score[up,search.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: f3380bfeff414fbebd7f0183be7fbece + expression: 'last(/Site check/site.score[up,search.disroot.org])<>200' + name: 'search.disroot.org - is down!' + priority: HIGH + - uuid: ab90b88a1f0645ab844e8e1215e94df3 + name: 'state.disroot.org - Site Up Code' + key: 'site.score[up,state.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: faed609fb91443d1b024c7619bec53ed + expression: 'last(/Site check/site.score[up,state.disroot.org])<>200' + name: 'state.disroot.org - is down!' + priority: HIGH + - uuid: 99bae7cbb48147018e37ac199b4fdf8d + name: 'upload.disroot.org - Site Up Code' + key: 'site.score[up,upload.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 53b34d76501441e297f45b4c84523e73 + expression: 'last(/Site check/site.score[up,upload.disroot.org])<>200' + name: 'upload.disroot.org - is down!' + priority: HIGH + - uuid: 3228f26158cc4471b2e408202fa413f3 + name: 'user.disroot.org - Site Up Code' + key: 'site.score[up,user.disroot.org]' + tags: + - tag: Application + value: 'Site check Up' + triggers: + - uuid: 21a52843cfe24d04814156431b9eb09b + expression: 'last(/Site check/site.score[up,user.disroot.org])<>200' + name: 'user.disroot.org - is down!' + priority: HIGH diff --git a/Template App Postfix.yaml b/Template App Postfix.yaml new file mode 100644 index 0000000..623b2d3 --- /dev/null +++ b/Template App Postfix.yaml @@ -0,0 +1,317 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: e5cc2a8a065c4272866ee0277ccc417f + template: 'Template App Postfix' + name: 'Template App Postfix' + groups: + - name: Templates + items: + - uuid: c39bb96edc4949ec8d4870b46fbda929 + name: 'Port 25/SMTP is running' + type: SIMPLE + key: 'net.tcp.service[smtp]' + request_method: POST + triggers: + - uuid: 2c8a65a4507f40d098f388b01fbb579e + expression: 'last(/Template App Postfix/net.tcp.service[smtp])<>1' + name: 'SMTP Service is down on {HOST.NAME}' + priority: HIGH + - uuid: b5fa080b20e2420c8dab14c671186fa6 + name: 'Postfix Mail Queue' + key: postfix.pfmailq + delay: 5m + history: 30d + units: mails + request_method: POST + tags: + - tag: Application + value: Postfix + triggers: + - uuid: 7e61ac55a28c4af38b1bf5eca24e4d00 + expression: 'last(/Template App Postfix/postfix.pfmailq)>400' + name: 'Postfix: Too many mails in mail queue on {HOST.NAME}' + priority: AVERAGE + - uuid: 47e0dfc8d07b4c989cef45d1fb73f7ce + expression: 'last(/Template App Postfix/postfix.pfmailq)>1000' + name: 'Postfix: Waaaay too many mails in mail queue on {HOST.NAME}' + priority: DISASTER + - uuid: 7cd3ee0f095745479f41a130f9f4d0fe + name: 'Postfix Bounced' + key: 'postfix[bounced]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + triggers: + - uuid: ab1160bd66b24df2bcde8331f7e05e2c + expression: 'last(/Template App Postfix/postfix[bounced])>50' + name: 'Postfix: Too many bounced mails on {HOST.NAME}' + priority: WARNING + - uuid: 2bd4be03b4594fa1b9164c457945314c + name: 'Postfix Bytes Delivered' + key: 'postfix[bytes_delivered]' + delay: '5' + history: 30d + units: B + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: 58cdfb43b842476d8b2e00043055a574 + name: 'Postfix Bytes Received' + key: 'postfix[bytes_received]' + delay: 10m + history: 30d + units: B + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: bb47ae2f75a74a3d8dc91e01a3f748b3 + name: 'Postfix Deferred' + key: 'postfix[deferred]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + triggers: + - uuid: f6b29344b2a1463f8e1e8754dbf64fbc + expression: 'last(/Template App Postfix/postfix[deferred])>50' + name: 'Postfix: Too many deferred mails on {HOST.NAME}' + priority: HIGH + - uuid: a216b3ef611143dab8b82bc16c8e30f0 + name: 'Postfix Delivered' + key: 'postfix[delivered]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: 1d8d84e7ef164558b159efd2a88f402a + name: 'Postfix Discarded' + key: 'postfix[discarded]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: dc6e94bf570c4028b82fad8d23ff4a41 + name: 'Postfix Forwarded' + key: 'postfix[forwarded]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: 0cf6423c8e0140d0916b337480b146e2 + name: 'Postfix Held' + key: 'postfix[held]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + triggers: + - uuid: ae21f25514ef4d1b9271ed891a332493 + expression: 'last(/Template App Postfix/postfix[held])>100' + name: 'Postfix: Too many held mails in mail queue on {HOST.NAME}' + priority: WARNING + - uuid: a956a25859c541cf8e383775dbb94a62 + name: 'Postfix Received' + key: 'postfix[received]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: 6f5fd2fa88ae42a38598e23ffa82e778 + name: 'Postfix Rejected' + key: 'postfix[rejected]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + - uuid: 55da764ec6d84e74a7dd2a221f3fafbb + name: 'Postfix Reject Warnings' + key: 'postfix[reject_warnings]' + delay: 10m + history: 30d + units: mails + preprocessing: + - type: SIMPLE_CHANGE + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: Postfix + triggers: + - uuid: b8d8d224c132410fbadb7cc751bb5440 + expression: 'last(/Template App Postfix/postfix[rejected])>60 or last(/Template App Postfix/postfix[reject_warnings])>60' + name: 'Postfix: Too many rejected mails on {HOST.NAME}' + priority: HIGH + graphs: + - uuid: b623609c08684947935db8eb6b92fb8d + name: 'Postfix Error Pie' + yaxismax: '0' + show_work_period: 'NO' + show_triggers: 'NO' + type: EXPLODED + show_3d: 'YES' + graph_items: + - color: C80000 + item: + host: 'Template App Postfix' + key: 'postfix[bounced]' + - sortorder: '1' + color: 00C800 + item: + host: 'Template App Postfix' + key: 'postfix[deferred]' + - sortorder: '2' + color: 0000C8 + item: + host: 'Template App Postfix' + key: 'postfix[discarded]' + - sortorder: '3' + color: C800C8 + item: + host: 'Template App Postfix' + key: 'postfix[rejected]' + - sortorder: '4' + color: 00C8C8 + item: + host: 'Template App Postfix' + key: 'postfix[reject_warnings]' + - uuid: 913c1703abdf43db8f840051e7e23d2f + name: 'Postfix Mails Scoreboard' + height: '300' + show_work_period: 'NO' + show_triggers: 'NO' + graph_items: + - color: '009900' + item: + host: 'Template App Postfix' + key: 'postfix[bounced]' + - sortorder: '1' + color: FF99FF + item: + host: 'Template App Postfix' + key: 'postfix[reject_warnings]' + - sortorder: '2' + color: AAAA00 + item: + host: 'Template App Postfix' + key: postfix.pfmailq + - sortorder: '3' + color: EE00EE + item: + host: 'Template App Postfix' + key: 'postfix[discarded]' + - sortorder: '4' + color: '880088' + item: + host: 'Template App Postfix' + key: 'postfix[rejected]' + - sortorder: '5' + color: 0000CC + item: + host: 'Template App Postfix' + key: 'postfix[received]' + - sortorder: '6' + color: FF6666 + item: + host: 'Template App Postfix' + key: 'postfix[held]' + - sortorder: '7' + color: FFFF33 + item: + host: 'Template App Postfix' + key: 'postfix[forwarded]' + - sortorder: '8' + color: 00EE00 + item: + host: 'Template App Postfix' + key: 'postfix[delivered]' + - sortorder: '9' + color: EE0000 + item: + host: 'Template App Postfix' + key: 'postfix[deferred]' + - uuid: 4481f1f55f1f465ab51994f9bd2ed575 + name: 'Postfix Traffic' + show_work_period: 'NO' + show_triggers: 'NO' + graph_items: + - color: C80000 + item: + host: 'Template App Postfix' + key: 'postfix[bytes_received]' + - sortorder: '1' + color: 00C800 + item: + host: 'Template App Postfix' + key: 'postfix[bytes_delivered]' diff --git a/Template App Zabbix Agent (copie).yaml b/Template App Zabbix Agent (copie).yaml new file mode 100644 index 0000000..b11df31 --- /dev/null +++ b/Template App Zabbix Agent (copie).yaml @@ -0,0 +1,80 @@ +zabbix_export: + version: '6.4' + template_groups: + - + uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - + uuid: 29faeb6410e24c959b92967f466750e6 + template: 'Template App Zabbix Agent' + name: 'Template App Zabbix Agent' + groups: + - + name: Templates + items: + - + uuid: 1f436557772f4629a425ef311b306a70 + name: 'Host name of zabbix_agentd running' + key: agent.hostname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + #request_method: POST + tags: + - + tag: Application + value: 'Zabbix agent' + triggers: + - + uuid: ed938d0e260647ab99ee603f69afea90 + expression: '(last(/Template App Zabbix Agent/agent.hostname,#1)<>last(/Template App Zabbix Agent/agent.hostname,#2))>0' + name: 'Host name of zabbix_agentd was changed on {HOST.NAME}' + priority: INFO + - + uuid: bf419e8cb21342e596cd3727af5b3ebf + name: 'Agent ping' + key: agent.ping + history: 1w + description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.' + valuemap: + name: 'Zabbix agent ping status' + #request_method: POST + tags: + - + tag: Application + value: 'Zabbix agent' + triggers: + - + uuid: 43555408eeab4ee2bd0d2b059dcd488f + expression: 'nodata(/Template App Zabbix Agent/agent.ping,5m)=1' + name: 'Zabbix agent on {HOST.NAME} is unreachable for 5 minutes' + priority: AVERAGE + - + uuid: 848edd2ec1cf4a279f65db59e2b83039 + name: 'Version of zabbix_agent(d) running' + key: agent.version + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + #request_method: POST + tags: + - + tag: Application + value: 'Zabbix agent' + triggers: + - + uuid: b4663ca19dc54caa8ced01bf0fc84c1d + expression: '(last(/Template App Zabbix Agent/agent.version,#1)<>last(/Template App Zabbix Agent/agent.version,#2))>0' + name: 'Version of zabbix_agent(d) was changed on {HOST.NAME}' + priority: INFO + valuemaps: + - + uuid: 2bbdd800972b4752b18d300712301e9d + name: 'Zabbix agent ping status' + mappings: + - + value: '1' + newvalue: Up diff --git a/Template App Zabbix Agent.yaml b/Template App Zabbix Agent.yaml index b11df31..ab4385f 100644 --- a/Template App Zabbix Agent.yaml +++ b/Template App Zabbix Agent.yaml @@ -1,80 +1,66 @@ zabbix_export: version: '6.4' template_groups: - - - uuid: 7df96b18c230490a9a0a9e2307226338 + - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - - - uuid: 29faeb6410e24c959b92967f466750e6 + - uuid: 29faeb6410e24c959b92967f466750e6 template: 'Template App Zabbix Agent' name: 'Template App Zabbix Agent' groups: - - - name: Templates + - name: Templates items: - - - uuid: 1f436557772f4629a425ef311b306a70 + - uuid: 1f436557772f4629a425ef311b306a70 name: 'Host name of zabbix_agentd running' key: agent.hostname delay: 1h history: 1w trends: '0' value_type: CHAR - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: 'Zabbix agent' triggers: - - - uuid: ed938d0e260647ab99ee603f69afea90 + - uuid: ed938d0e260647ab99ee603f69afea90 expression: '(last(/Template App Zabbix Agent/agent.hostname,#1)<>last(/Template App Zabbix Agent/agent.hostname,#2))>0' name: 'Host name of zabbix_agentd was changed on {HOST.NAME}' priority: INFO - - - uuid: bf419e8cb21342e596cd3727af5b3ebf + - uuid: bf419e8cb21342e596cd3727af5b3ebf name: 'Agent ping' key: agent.ping history: 1w description: 'The agent always returns 1 for this item. It could be used in combination with nodata() for availability check.' valuemap: name: 'Zabbix agent ping status' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: 'Zabbix agent' triggers: - - - uuid: 43555408eeab4ee2bd0d2b059dcd488f + - uuid: 43555408eeab4ee2bd0d2b059dcd488f expression: 'nodata(/Template App Zabbix Agent/agent.ping,5m)=1' name: 'Zabbix agent on {HOST.NAME} is unreachable for 5 minutes' priority: AVERAGE - - - uuid: 848edd2ec1cf4a279f65db59e2b83039 + - uuid: 848edd2ec1cf4a279f65db59e2b83039 name: 'Version of zabbix_agent(d) running' key: agent.version delay: 1h history: 1w trends: '0' value_type: CHAR - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: 'Zabbix agent' triggers: - - - uuid: b4663ca19dc54caa8ced01bf0fc84c1d + - uuid: b4663ca19dc54caa8ced01bf0fc84c1d expression: '(last(/Template App Zabbix Agent/agent.version,#1)<>last(/Template App Zabbix Agent/agent.version,#2))>0' name: 'Version of zabbix_agent(d) was changed on {HOST.NAME}' priority: INFO valuemaps: - - - uuid: 2bbdd800972b4752b18d300712301e9d + - uuid: 2bbdd800972b4752b18d300712301e9d name: 'Zabbix agent ping status' mappings: - - - value: '1' + - value: '1' newvalue: Up diff --git a/Template App Zabbix Server.yaml b/Template App Zabbix Server.yaml new file mode 100644 index 0000000..3b1f356 --- /dev/null +++ b/Template App Zabbix Server.yaml @@ -0,0 +1,788 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: e2d2b4e4ac28483996cc11fe42823d57 + template: 'Template App Zabbix Server' + name: 'Template App Zabbix Server' + groups: + - name: Templates + items: + - uuid: cac7bb12993945fe848df86f7c4502ed + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,alerter,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 20963ffd33864196ab909b60d7acdc0a + expression: 'avg(/Template App Zabbix Server/zabbix[process,alerter,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,alerter,avg,busy],10m)<65' + name: 'Zabbix alerter processes more than 75% busy' + priority: AVERAGE + - uuid: 301e7fe93a024444b19766e665e9d156 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,configuration syncer,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 63d681dba0b94487886a1d9b3360d1d1 + expression: 'avg(/Template App Zabbix Server/zabbix[process,configuration syncer,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,configuration syncer,avg,busy],10m)<65' + name: 'Zabbix configuration syncer processes more than 75% busy' + priority: AVERAGE + - uuid: 7507b0f58c6748d68f7bf1c0f802566c + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,db watchdog,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 846ed1f1ac1a4f6896ec264c2dfd6e6e + expression: 'avg(/Template App Zabbix Server/zabbix[process,db watchdog,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,db watchdog,avg,busy],10m)<65' + name: 'Zabbix db watchdog processes more than 75% busy' + priority: AVERAGE + - uuid: db7fee2552d5487fa608cf12f69aef41 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,discoverer,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 5c470ddbda674fe0a789447dd120c36d + expression: 'avg(/Template App Zabbix Server/zabbix[process,discoverer,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,discoverer,avg,busy],10m)<65' + name: 'Zabbix discoverer processes more than 75% busy' + priority: AVERAGE + - uuid: d12ce718fad34644b92d98cf2096e7df + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,escalator,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 9895b4318f50487d9c7f25abd48bb1a1 + expression: 'avg(/Template App Zabbix Server/zabbix[process,escalator,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,escalator,avg,busy],10m)<65' + name: 'Zabbix escalator processes more than 75% busy' + priority: AVERAGE + - uuid: 4d92eb7b411345cfbd6e2ea2ff5c1788 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,history syncer,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: a99ffd43a05e40f7abee83aa8c6c3ce5 + expression: 'avg(/Template App Zabbix Server/zabbix[process,history syncer,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,history syncer,avg,busy],10m)<65' + name: 'Zabbix history syncer processes more than 75% busy' + priority: AVERAGE + - uuid: 23f448b5acba472881857647ca1bb614 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,housekeeper,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: faa349f84dc043658fe51294ad87f766 + expression: 'avg(/Template App Zabbix Server/zabbix[process,housekeeper,avg,busy],30m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,housekeeper,avg,busy],30m)<65' + name: 'Zabbix housekeeper processes more than 75% busy' + priority: AVERAGE + - uuid: 419e937c4a1d4fa09c4b50ca88cbe3e2 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,http poller,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: c296c1ecdba44bd5b826ab4a86bbc300 + expression: 'avg(/Template App Zabbix Server/zabbix[process,http poller,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,http poller,avg,busy],10m)<65' + name: 'Zabbix http poller processes more than 75% busy' + priority: AVERAGE + - uuid: d5d469d5eb2e4e0ca0afc89b603d4065 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,icmp pinger,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: d5c6ea5711594a9587ab8d7094f1f481 + expression: 'avg(/Template App Zabbix Server/zabbix[process,icmp pinger,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,icmp pinger,avg,busy],10m)<65' + name: 'Zabbix icmp pinger processes more than 75% busy' + priority: AVERAGE + - uuid: c11d415de9c64fd6911f82d49db140d3 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,ipmi poller,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 5a4f841292fd4bb5bec2e28340c9e4c2 + expression: 'avg(/Template App Zabbix Server/zabbix[process,ipmi poller,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,ipmi poller,avg,busy],10m)<65' + name: 'Zabbix ipmi poller processes more than 75% busy' + priority: AVERAGE + - uuid: a8168691df3d43f1a1e106062f18ee06 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,java poller,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: d7705ba9c3f74554ac21c59c9a0dcc11 + expression: 'avg(/Template App Zabbix Server/zabbix[process,java poller,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,java poller,avg,busy],10m)<65' + name: 'Zabbix java poller processes more than 75% busy' + priority: AVERAGE + - uuid: cbec202e15be49de93dc0c5f58824ae3 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,poller,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: bb50da4052134ef1a478bface291b50a + expression: 'avg(/Template App Zabbix Server/zabbix[process,poller,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,poller,avg,busy],10m)<65' + name: 'Zabbix poller processes more than 75% busy' + priority: AVERAGE + - uuid: baf22e095078435d978a6c4374500db4 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,proxy poller,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 6a884c1fbf254637bb74b68571ee2ffa + expression: 'avg(/Template App Zabbix Server/zabbix[process,proxy poller,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,proxy poller,avg,busy],10m)<65' + name: 'Zabbix proxy poller processes more than 75% busy' + priority: AVERAGE + - uuid: 6fc9c055d4894c19b3b1075db106d995 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,self-monitoring,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: bf730ed3313f45248f483289c704f5e9 + expression: 'min(/Template App Zabbix Server/zabbix[process,self-monitoring,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'min(/Template App Zabbix Server/zabbix[process,self-monitoring,avg,busy],10m)<65' + name: 'Zabbix self-monitoring processes more than 75% busy' + priority: AVERAGE + - uuid: cb9a7c4f3373496da97f3e0b8c978366 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,snmp trapper,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 821611786e5e49bf941cbca370d6ed6b + expression: 'avg(/Template App Zabbix Server/zabbix[process,snmp trapper,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,snmp trapper,avg,busy],10m)<65' + name: 'Zabbix snmp trapper processes more than 75% busy' + priority: AVERAGE + - uuid: caeb7ecc88cc4c14bb80f901284be9a5 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,task manager,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 37c1c6ec07474a8a95b06c3c28e4bf96 + expression: 'avg(/Template App Zabbix Server/zabbix[process,task manager,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,task manager,avg,busy],10m)<65' + name: 'Zabbix task manager processes more than 75% busy' + priority: AVERAGE + - uuid: 3af0ec03af6542e18aaff505e3806089 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,timer,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 0c7715df608f4736a7077ff2f6098adc + expression: 'avg(/Template App Zabbix Server/zabbix[process,timer,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,timer,avg,busy],10m)<65' + name: 'Zabbix timer processes more than 75% busy' + priority: AVERAGE + - uuid: 0dd727eddfaf45a9a819a9d64c5b72c7 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,trapper,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 197c04bbf5204ce7ac80630f2948b6b0 + expression: 'avg(/Template App Zabbix Server/zabbix[process,trapper,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,trapper,avg,busy],10m)<65' + name: 'Zabbix trapper processes more than 75% busy' + priority: AVERAGE + - uuid: 4fd24bdb8935435e8617c9607b9c6ca1 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,unreachable poller,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: b0168864ef6849f185deb6ef22a056fa + expression: 'avg(/Template App Zabbix Server/zabbix[process,unreachable poller,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,unreachable poller,avg,busy],10m)<65' + name: 'Zabbix unreachable poller processes more than 75% busy' + priority: AVERAGE + - uuid: bad00e43cd064a0fb3a4b65b71bea926 + name: 'Zabbix $4 $2 processes, in %' + type: INTERNAL + key: 'zabbix[process,vmware collector,avg,busy]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 7e0881bb1b384deba18439ae098a7fbd + expression: 'avg(/Template App Zabbix Server/zabbix[process,vmware collector,avg,busy],10m)>75' + recovery_mode: RECOVERY_EXPRESSION + recovery_expression: 'avg(/Template App Zabbix Server/zabbix[process,vmware collector,avg,busy],10m)<65' + name: 'Zabbix vmware collector processes more than 75% busy' + priority: AVERAGE + - uuid: 2b2f695ed1ef4a7a871c80df9c911e90 + name: 'Zabbix queue over $2' + type: INTERNAL + key: 'zabbix[queue,10m]' + delay: 10m + history: 1w + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 53883a57e663421ca5fa794067a267b4 + expression: 'min(/Template App Zabbix Server/zabbix[queue,10m],10m)>100' + name: 'More than 100 items having missing data for more than 10 minutes' + priority: WARNING + description: 'zabbix[queue,10m] item is collecting data about how many items are missing data for more than 10 minutes (next parameter)' + - uuid: aaf58555c0774e848f51a351b6ae8462 + name: 'Zabbix queue' + type: INTERNAL + key: 'zabbix[queue]' + delay: 10m + history: 1w + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + - uuid: 108aed58a24e40ba927d395c9e5fa471 + name: 'Zabbix configuration cache, % free' + type: INTERNAL + key: 'zabbix[rcache,buffer,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 868eb3e0a28e43eda02ba2e0276abc99 + expression: 'min(/Template App Zabbix Server/zabbix[rcache,buffer,pfree],10m)<25' + name: 'Less than 25% free in the configuration cache' + priority: AVERAGE + description: 'Consider increasing CacheSize in the zabbix_server.conf configuration file' + - uuid: 73375c845e8343e3a3921174c5f7c946 + name: 'Zabbix value cache, % free' + type: INTERNAL + key: 'zabbix[vcache,buffer,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 9d152e7c0048444a8b2b614a18c88af9 + expression: 'min(/Template App Zabbix Server/zabbix[vcache,buffer,pfree],10m)<5' + name: 'Less than 5% free in the value cache' + priority: AVERAGE + - uuid: 69b14487a9744dbb866f2e6ee131d0e5 + name: 'Zabbix value cache hits' + type: INTERNAL + key: 'zabbix[vcache,cache,hits]' + history: 1w + value_type: FLOAT + units: vps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + - uuid: c78439859fd248cdb15e1eee37be2220 + name: 'Zabbix value cache misses' + type: INTERNAL + key: 'zabbix[vcache,cache,misses]' + history: 1w + value_type: FLOAT + units: vps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + - uuid: 07379df0114445b7b06818736f011ca6 + name: 'Zabbix value cache operating mode' + type: INTERNAL + key: 'zabbix[vcache,cache,mode]' + history: 1w + valuemap: + name: 'Value cache operating mode' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: ee3db7e7bc104f1598ca36e735bce53f + expression: 'last(/Template App Zabbix Server/zabbix[vcache,cache,mode])=1' + name: 'Zabbix value cache working in low memory mode' + priority: HIGH + - uuid: 47d68dc9471f418bb97a014fe4318856 + name: 'Zabbix vmware cache, % free' + type: INTERNAL + key: 'zabbix[vmware,buffer,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 0e433df72cc947e69769018fdcb04fe9 + expression: 'min(/Template App Zabbix Server/zabbix[vmware,buffer,pfree],10m)<25' + name: 'Less than 25% free in the vmware cache' + priority: AVERAGE + - uuid: 85c5b8695936478797106f3109d39e63 + name: 'Zabbix $2 write cache, % free' + type: INTERNAL + key: 'zabbix[wcache,history,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: ad581d6c23e4418fbd8850eeb402ba7e + expression: 'min(/Template App Zabbix Server/zabbix[wcache,history,pfree],10m)<25' + name: 'Less than 25% free in the history cache' + priority: AVERAGE + - uuid: 449a68361d484421b1efb60ee991f1e8 + name: 'Zabbix history index cache, % free' + type: INTERNAL + key: 'zabbix[wcache,index,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 51b36248e80041e3bf8096e46bcc50f9 + expression: 'min(/Template App Zabbix Server/zabbix[wcache,index,pfree],10m)<25' + name: 'Less than 25% free in the history index cache' + priority: AVERAGE + - uuid: 53cfb78d092e49138b879e88cf1d9b0f + name: 'Zabbix $2 write cache, % free' + type: INTERNAL + key: 'zabbix[wcache,trend,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + triggers: + - uuid: 5c966d8845c647a0afb6540fcbaa8571 + expression: 'min(/Template App Zabbix Server/zabbix[wcache,trend,pfree],10m)<25' + name: 'Less than 25% free in the trends cache' + priority: AVERAGE + - uuid: db364af6bcb24881850f3979933fccb0 + name: 'Values processed by Zabbix server per second' + type: INTERNAL + key: 'zabbix[wcache,values]' + history: 1w + value_type: FLOAT + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: 'Zabbix server' + dashboards: + - uuid: 6815a90fb9b745fd8f1b1f47697893d6 + name: 'Zabbix server health' + pages: + - widgets: + - type: graph + width: '12' + height: '6' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template App Zabbix Server' + name: 'Zabbix server performance' + - type: graph + x: '12' + width: '12' + height: '6' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template App Zabbix Server' + name: 'Zabbix data gathering process busy %' + - type: graph + 'y': '6' + width: '12' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template App Zabbix Server' + name: 'Zabbix internal process busy %' + - type: graph + x: '12' + 'y': '6' + width: '12' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template App Zabbix Server' + name: 'Zabbix cache usage, % free' + - type: graph + 'y': '11' + width: '24' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template App Zabbix Server' + name: 'Value cache effectiveness' + valuemaps: + - uuid: 97bbea700550483bbd8405b4dd9d8005 + name: 'Value cache operating mode' + mappings: + - value: '0' + newvalue: Normal + - value: '1' + newvalue: 'Low memory' + graphs: + - uuid: d2841f4fbb33411d9ab1b1b48e7e959f + name: 'Value cache effectiveness' + type: STACKED + graph_items: + - color: C80000 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[vcache,cache,misses]' + - sortorder: '1' + color: 00C800 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[vcache,cache,hits]' + - uuid: 7d699465cae24c33b93605653a0c9ae7 + name: 'Zabbix cache usage, % free' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: '009900' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[wcache,trend,pfree]' + - sortorder: '1' + color: DD0000 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[rcache,buffer,pfree]' + - sortorder: '2' + color: 00DDDD + item: + host: 'Template App Zabbix Server' + key: 'zabbix[wcache,index,pfree]' + - sortorder: '3' + color: 3333FF + item: + host: 'Template App Zabbix Server' + key: 'zabbix[wcache,history,pfree]' + - sortorder: '4' + color: '999900' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[vcache,buffer,pfree]' + - sortorder: '5' + color: 00FF00 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[vmware,buffer,pfree]' + - uuid: e4fddc2e4924446fbf17122d752f955f + name: 'Zabbix data gathering process busy %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: '990099' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,trapper,avg,busy]' + - sortorder: '1' + color: '990000' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,poller,avg,busy]' + - sortorder: '2' + color: 0000EE + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,ipmi poller,avg,busy]' + - sortorder: '3' + color: FF33FF + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,discoverer,avg,busy]' + - sortorder: '4' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,icmp pinger,avg,busy]' + - sortorder: '5' + color: '003300' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,http poller,avg,busy]' + - sortorder: '6' + color: CCCC00 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,proxy poller,avg,busy]' + - sortorder: '7' + color: 33FFFF + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,unreachable poller,avg,busy]' + - sortorder: '8' + color: DD0000 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,java poller,avg,busy]' + - sortorder: '9' + color: '000099' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,snmp trapper,avg,busy]' + - sortorder: '10' + color: 00FF00 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,vmware collector,avg,busy]' + - uuid: 5ec89f81a91d4500880201799f778a20 + name: 'Zabbix internal process busy %' + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - color: 00EE00 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,timer,avg,busy]' + - sortorder: '1' + color: 0000EE + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,escalator,avg,busy]' + - sortorder: '2' + color: FFAA00 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,housekeeper,avg,busy]' + - sortorder: '3' + color: 00EEEE + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,alerter,avg,busy]' + - sortorder: '4' + color: '990099' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,configuration syncer,avg,busy]' + - sortorder: '5' + color: '666600' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,db watchdog,avg,busy]' + - sortorder: '6' + color: EE0000 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,history syncer,avg,busy]' + - sortorder: '7' + color: FF66FF + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,self-monitoring,avg,busy]' + - sortorder: '8' + color: '009900' + item: + host: 'Template App Zabbix Server' + key: 'zabbix[process,task manager,avg,busy]' + - uuid: 3d256a358da74f469700eea05173343a + name: 'Zabbix server performance' + graph_items: + - drawtype: GRADIENT_LINE + color: 00C800 + item: + host: 'Template App Zabbix Server' + key: 'zabbix[wcache,values]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: C80000 + yaxisside: RIGHT + item: + host: 'Template App Zabbix Server' + key: 'zabbix[queue]' diff --git a/Template Containers (copie).yaml b/Template Containers (copie).yaml new file mode 100644 index 0000000..3ba0156 --- /dev/null +++ b/Template Containers (copie).yaml @@ -0,0 +1,640 @@ +zabbix_export: + version: '6.4' + template_groups: + - + uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - + uuid: 2a0bf3ed9dcb4ea3b2d1bb1c3c67d08c + template: 'Template Containers' + name: 'Template Containers' + templates: + - + name: 'Template App Zabbix Agent' + groups: + - + name: Templates + items: + - + uuid: bd4a837bc9d04eb1b14cd747e7fe9936 + name: 'Check OS version' + key: ct.issue + trends: '0' + value_type: TEXT + tags: + - + tag: Application + value: OS + - + uuid: 2c2a0494d2be490fb87958809c1e64a5 + name: 'Host local time' + key: ct.localtime + history: 1w + value_type: FLOAT + units: unixtime + #request_method: POST + tags: + - + tag: Application + value: General + - + tag: Application + value: OS + - + uuid: 9015e63c80664d10aa2fcb07803c35f0 + name: 'Number of processes' + key: ct.processes + history: 1w + value_type: FLOAT + description: 'Total number of processes in any state.' + #request_method: POST + tags: + - + tag: Application + value: Processes + triggers: + - + uuid: 7b050ef8ba224bb287500f9c0c432e51 + expression: 'avg(/Template Containers/ct.processes,5m)>360' + name: 'Too many processes on {HOST.NAME}' + priority: WARNING + - + uuid: 21206e98dac54fa2abfadd24cb19f3ef + name: 'Available memory' + key: ct.ramfree + history: 1w + value_type: FLOAT + units: B + description: 'Available memory is defined as free+cached+buffers memory.' + #request_method: POST + tags: + - + tag: Application + value: Memory + triggers: + - + uuid: 9385b95fab7c4c5ab488391db49c605c + expression: 'last(/Template Containers/ct.ramfree)<20M' + name: 'Lack of available memory on server {HOST.NAME}' + priority: AVERAGE + - + uuid: 1693208d45ca45ecbfcb8bee72358702 + name: 'Free memory %' + key: ct.ramfree_proc + delay: 30s + value_type: FLOAT + units: '%' + #request_method: POST + tags: + - + tag: Application + value: Memory + - + uuid: 259596fd666a4daa98c70c64727f106b + name: 'Total memory' + key: ct.ramtotal + delay: 1h + history: 1w + value_type: FLOAT + units: B + #request_method: POST + tags: + - + tag: Application + value: Memory + - + uuid: dcf2518ae91546a297c333af00ecbff8 + name: 'Used memory' + key: ct.ramused + history: 1w + value_type: FLOAT + units: B + tags: + - + tag: Application + value: Memory + - + uuid: f6cbea88973b4c26a506b9f2815850e4 + name: 'Free swap space' + key: ct.swapfree + history: 1w + value_type: FLOAT + units: B + #request_method: POST + tags: + - + tag: Application + value: Memory + - + uuid: f257ad585bd04e3e8ae11f6eb52ab906 + name: 'Free swap space in %' + key: ct.swapfree_proc + delay: 2m + history: 1w + value_type: FLOAT + units: '%' + #request_method: POST + tags: + - + tag: Application + value: Memory + triggers: + - + uuid: e2d6356947d849619533c047e4b9b2f7 + expression: 'last(/Template Containers/ct.swapfree_proc)<50' + name: 'Lack of free swap space on {HOST.NAME}' + status: DISABLED + priority: WARNING + description: 'It probably means that the systems requires more physical memory.' + - + uuid: 79fd627f5bb149a29928b916df583773 + name: 'Total swap space' + key: ct.swaptotal + delay: 5s + history: 1w + value_type: FLOAT + units: B + #request_method: POST + tags: + - + tag: Application + value: Memory + - + uuid: 75ca486de2674db99a86a107bf6d2e1c + name: 'System uptime' + key: ct.uptime + delay: 10m + history: 1w + value_type: FLOAT + units: uptime + #request_method: POST + tags: + - + tag: Application + value: General + - + tag: Application + value: OS + triggers: + - + uuid: f0a28dbe802245dfae81fb99463c69e8 + expression: 'change(/Template Containers/ct.uptime)<0' + name: '{HOST.NAME} has just been restarted' + status: DISABLED + priority: INFO + - + uuid: 5c7f36dad687457082c19ba8d0ee8465 + name: 'Maximum number of opened files' + key: kernel.maxfiles + delay: 1h + history: 1w + value_type: FLOAT + description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.' + preprocessing: + - + type: RTRIM + parameters: + - '3' + #request_method: POST + tags: + - + tag: Application + value: OS + triggers: + - + uuid: 502e41028ba542469b87d7825071ec50 + expression: 'last(/Template Containers/kernel.maxfiles)<1024' + name: 'Configured max number of opened files is too low on {HOST.NAME}' + priority: INFO + - + uuid: 56196557228142f4b4b1b621c52c471a + name: 'Maximum number of processes' + key: kernel.maxproc + delay: 1h + history: 1w + value_type: FLOAT + description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.' + #request_method: POST + tags: + - + tag: Application + value: OS + triggers: + - + uuid: 63102e632a3e46c283de5e47e5555ab2 + expression: 'last(/Template Containers/kernel.maxproc)<256' + name: 'Configured max number of processes is too low on {HOST.NAME}' + priority: INFO + - + uuid: e41ad00080c44b67b17b23eeb636d797 + name: 'Host boot time' + key: system.boottime + delay: 10m + history: 1w + value_type: FLOAT + units: unixtime + #request_method: POST + tags: + - + tag: Application + value: General + - + tag: Application + value: OS + - + uuid: 95c8bde2b7de414d95393cd83cfe4524 + name: 'Host name' + key: system.hostname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + description: 'System host name.' + inventory_link: NAME + #request_method: POST + tags: + - + tag: Application + value: General + - + tag: Application + value: OS + triggers: + - + uuid: 1399a6aca6134bf58120c1b2cc2f32e5 + expression: '(last(/Template Containers/system.hostname,#1)<>last(/Template Containers/system.hostname,#2))>0' + name: 'Hostname was changed on {HOST.NAME}' + priority: INFO + - + uuid: d3aefc22659244cba82aab6e6fb2ee15 + name: 'System information' + key: system.uname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + description: 'The information as normally returned by ''uname -a''.' + inventory_link: OS + #request_method: POST + tags: + - + tag: Application + value: General + - + tag: Application + value: OS + triggers: + - + uuid: 0dcd0f691c0b4a7d9c6b2834e1909fe3 + expression: '(last(/Template Containers/system.uname,#1)<>last(/Template Containers/system.uname,#2))>0' + name: 'Host information was changed on {HOST.NAME}' + priority: INFO + - + uuid: 1bbf2e280d684da9967edd614eef117e + name: 'Number of logged in users' + key: system.users.num + history: 1w + value_type: FLOAT + description: 'Number of users who are currently logged in.' + #request_method: POST + tags: + - + tag: Application + value: OS + - + tag: Application + value: Security + - + uuid: fc384b1da607499cb9beaf6d1400b756 + name: 'Checksum of $1' + key: 'vfs.file.cksum[/etc/passwd]' + delay: 1h + history: 1w + #request_method: POST + tags: + - + tag: Application + value: Security + triggers: + - + uuid: cf943a0ff206434f952cf4afccf7d56a + expression: '(last(/Template Containers/vfs.file.cksum[/etc/passwd],#1)<>last(/Template Containers/vfs.file.cksum[/etc/passwd],#2))>0' + name: '/etc/passwd has been changed on {HOST.NAME}' + priority: WARNING + manual_close: 'YES' + - + uuid: 7e0bfdb626d54991ad3bec1e7a475454 + name: 'Checksum of $1' + key: 'vfs.file.cksum[/etc/ssh/authorized_keys/root]' + delay: 30s + tags: + - + tag: Application + value: Security + triggers: + - + uuid: 01471f5580da4f508978209d800bb93a + expression: '(last(/Template Containers/vfs.file.cksum[/etc/ssh/authorized_keys/root],#1)<>last(/Template Containers/vfs.file.cksum[/etc/ssh/authorized_keys/root],#2))>0' + name: 'SSH Authorized keys has been changed on {HOST.NAME}' + priority: DISASTER + discovery_rules: + - + uuid: e73a591b26e54034a3882898035c842c + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - + macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery".' + item_prototypes: + - + uuid: 5424543ac5094381b3780ab87c7662df + name: 'Incoming network traffic on $1' + key: 'net.if.in[{#IFNAME}]' + history: 1w + units: bps + preprocessing: + - + type: CHANGE_PER_SECOND + parameters: + - '' + - + type: MULTIPLIER + parameters: + - '8' + #request_method: POST + tags: + - + tag: Application + value: 'Network interfaces' + - + uuid: 4a0a9d9e65064bf7a10f3c4e86e3421e + name: 'Outgoing network traffic on $1' + key: 'net.if.out[{#IFNAME}]' + history: 1w + units: bps + preprocessing: + - + type: CHANGE_PER_SECOND + parameters: + - '' + - + type: MULTIPLIER + parameters: + - '8' + #request_method: POST + tags: + - + tag: Application + value: 'Network interfaces' + graph_prototypes: + - + uuid: 5c3afcd1707147aabdff69c4a51a3943 + name: 'Network traffic on {#IFNAME}' + ymin_type_1: FIXED + graph_items: + - + drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'Template Containers' + key: 'net.if.in[{#IFNAME}]' + - + sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'Template Containers' + key: 'net.if.out[{#IFNAME}]' + #request_method: POST + - + uuid: 4741e4182b31472989a12b66cd213613 + name: 'Mounted filesystem discovery' + key: vfs.fs.discovery + delay: 1h + filter: + conditions: + - + macro: '{#FSTYPE}' + value: '@File systems for discovery' + formulaid: A + description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".' + item_prototypes: + - + uuid: aae745998c7a4567b6b93ddcba76e8e6 + name: 'Free inodes on $1 (percentage)' + key: 'vfs.fs.inode[{#FSNAME},pfree]' + history: 1w + value_type: FLOAT + units: '%' + #request_method: POST + tags: + - + tag: Application + value: Filesystems + trigger_prototypes: + - + uuid: d1b24d36174f412fb91304bbcf5ae312 + expression: 'last(/Template Containers/vfs.fs.inode[{#FSNAME},pfree])<20' + name: 'Free inodes is less than 20% on volume {#FSNAME}' + priority: WARNING + - + uuid: 6d614e33c0b943eb8cc430d2fb470310 + name: 'Free disk space on $1' + key: 'vfs.fs.size[{#FSNAME},free]' + history: 1w + units: B + #request_method: POST + tags: + - + tag: Application + value: Filesystems + - + uuid: ff75d66fa0444440978ecb0e6baa3aee + name: 'Free disk space on $1 (percentage)' + key: 'vfs.fs.size[{#FSNAME},pfree]' + history: 1w + value_type: FLOAT + units: '%' + #request_method: POST + tags: + - + tag: Application + value: Filesystems + trigger_prototypes: + - + uuid: 6a0bea5a05cb4eccbe5094c9c2b8a529 + expression: 'last(/Template Containers/vfs.fs.size[{#FSNAME},pfree])<5' + name: 'Free disk space is less than 5% on volume {#FSNAME}' + priority: DISASTER + - + uuid: 61be12520bfd435fbc6ce85ec478b5d8 + expression: 'last(/Template Containers/vfs.fs.size[{#FSNAME},pfree])<15' + name: 'Free disk space is less than 20% on volume {#FSNAME}' + priority: WARNING + - + uuid: 5f44a96642ff49a8bdd1e23ef4395965 + name: 'Total disk space on $1' + key: 'vfs.fs.size[{#FSNAME},total]' + delay: 1h + history: 1w + units: B + #request_method: POST + tags: + - + tag: Application + value: Filesystems + - + uuid: 6ed1b4e043ee4d4ab7ddc3f5cbbb0111 + name: 'Used disk space on $1' + key: 'vfs.fs.size[{#FSNAME},used]' + history: 1w + units: B + #request_method: POST + tags: + - + tag: Application + value: Filesystems + graph_prototypes: + - + uuid: 98516d05dcea4891a0cb9cf47f8562d8 + name: 'Disk space usage {#FSNAME}' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: STACKED + graph_items: + - + color: C80000 + type: GRAPH_SUM + item: + host: 'Template Containers' + key: 'vfs.fs.size[{#FSNAME},total]' + - + sortorder: '1' + color: 00C800 + item: + host: 'Template Containers' + key: 'vfs.fs.size[{#FSNAME},free]' + #request_method: POST + dashboards: + - + uuid: ed2584b7c71845f780a55fb9fb46b4a9 + name: 'System performance' + pages: + - + widgets: + - + type: graphprototype + width: '12' + height: '5' + fields: + - + type: INTEGER + name: columns + value: '1' + - + type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'Template Containers' + name: 'Disk space usage {#FSNAME}' + - + type: graphprototype + x: '12' + width: '12' + height: '5' + fields: + - + type: INTEGER + name: columns + value: '1' + - + type: GRAPH_PROTOTYPE + name: graphid + value: + host: 'Template Containers' + name: 'Network traffic on {#IFNAME}' + - + type: graph + 'y': '5' + width: '12' + height: '5' + fields: + - + type: GRAPH + name: graphid + value: + host: 'Template Containers' + name: 'Memory usage' + - + type: graph + x: '12' + 'y': '5' + width: '12' + height: '5' + fields: + - + type: GRAPH + name: graphid + value: + host: 'Template Containers' + name: 'Container - Number of processes' + graphs: + - + uuid: b8d6a23897ad4e0bb11ac68f06e9218b + name: 'Container - Number of processes' + graph_items: + - + color: '666600' + item: + host: 'Template Containers' + key: ct.processes + - + uuid: d4e234a581c1482c8416de642f0d6715 + name: 'Memory usage' + show_work_period: 'NO' + show_triggers: 'NO' + ymin_type_1: FIXED + graph_items: + - + drawtype: GRADIENT_LINE + color: D7CCC8 + item: + host: 'Template Containers' + key: ct.ramtotal + - + sortorder: '1' + drawtype: FILLED_REGION + color: 00796B + item: + host: 'Template Containers' + key: ct.ramused + - + uuid: 1e41269f0a1a4a0aa969106cde5bdb7f + name: 'Swap usage' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - + color: AA0000 + type: GRAPH_SUM + item: + host: 'Template Containers' + key: ct.swaptotal + - + sortorder: '1' + color: 00AA00 + item: + host: 'Template Containers' + key: ct.swapfree diff --git a/Template Containers.yaml b/Template Containers.yaml index 3ba0156..f426898 100644 --- a/Template Containers.yaml +++ b/Template Containers.yaml @@ -1,190 +1,157 @@ zabbix_export: version: '6.4' template_groups: - - - uuid: 7df96b18c230490a9a0a9e2307226338 + - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - - - uuid: 2a0bf3ed9dcb4ea3b2d1bb1c3c67d08c + - uuid: 2a0bf3ed9dcb4ea3b2d1bb1c3c67d08c template: 'Template Containers' name: 'Template Containers' templates: - - - name: 'Template App Zabbix Agent' + - name: 'Template App Zabbix Agent' groups: - - - name: Templates + - name: Templates items: - - - uuid: bd4a837bc9d04eb1b14cd747e7fe9936 + - uuid: bd4a837bc9d04eb1b14cd747e7fe9936 name: 'Check OS version' key: ct.issue trends: '0' value_type: TEXT tags: - - - tag: Application + - tag: Application value: OS - - - uuid: 2c2a0494d2be490fb87958809c1e64a5 + - uuid: 2c2a0494d2be490fb87958809c1e64a5 name: 'Host local time' key: ct.localtime history: 1w value_type: FLOAT units: unixtime - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: General - - - tag: Application + - tag: Application value: OS - - - uuid: 9015e63c80664d10aa2fcb07803c35f0 + - uuid: 9015e63c80664d10aa2fcb07803c35f0 name: 'Number of processes' key: ct.processes history: 1w value_type: FLOAT description: 'Total number of processes in any state.' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Processes triggers: - - - uuid: 7b050ef8ba224bb287500f9c0c432e51 + - uuid: 7b050ef8ba224bb287500f9c0c432e51 expression: 'avg(/Template Containers/ct.processes,5m)>360' name: 'Too many processes on {HOST.NAME}' priority: WARNING - - - uuid: 21206e98dac54fa2abfadd24cb19f3ef + - uuid: 21206e98dac54fa2abfadd24cb19f3ef name: 'Available memory' key: ct.ramfree history: 1w value_type: FLOAT units: B description: 'Available memory is defined as free+cached+buffers memory.' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Memory triggers: - - - uuid: 9385b95fab7c4c5ab488391db49c605c + - uuid: 9385b95fab7c4c5ab488391db49c605c expression: 'last(/Template Containers/ct.ramfree)<20M' name: 'Lack of available memory on server {HOST.NAME}' priority: AVERAGE - - - uuid: 1693208d45ca45ecbfcb8bee72358702 + - uuid: 1693208d45ca45ecbfcb8bee72358702 name: 'Free memory %' key: ct.ramfree_proc delay: 30s value_type: FLOAT units: '%' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Memory - - - uuid: 259596fd666a4daa98c70c64727f106b + - uuid: 259596fd666a4daa98c70c64727f106b name: 'Total memory' key: ct.ramtotal delay: 1h history: 1w value_type: FLOAT units: B - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Memory - - - uuid: dcf2518ae91546a297c333af00ecbff8 + - uuid: dcf2518ae91546a297c333af00ecbff8 name: 'Used memory' key: ct.ramused history: 1w value_type: FLOAT units: B tags: - - - tag: Application + - tag: Application value: Memory - - - uuid: f6cbea88973b4c26a506b9f2815850e4 + - uuid: f6cbea88973b4c26a506b9f2815850e4 name: 'Free swap space' key: ct.swapfree history: 1w value_type: FLOAT units: B - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Memory - - - uuid: f257ad585bd04e3e8ae11f6eb52ab906 + - uuid: f257ad585bd04e3e8ae11f6eb52ab906 name: 'Free swap space in %' key: ct.swapfree_proc delay: 2m history: 1w value_type: FLOAT units: '%' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Memory triggers: - - - uuid: e2d6356947d849619533c047e4b9b2f7 + - uuid: e2d6356947d849619533c047e4b9b2f7 expression: 'last(/Template Containers/ct.swapfree_proc)<50' name: 'Lack of free swap space on {HOST.NAME}' status: DISABLED priority: WARNING description: 'It probably means that the systems requires more physical memory.' - - - uuid: 79fd627f5bb149a29928b916df583773 + - uuid: 79fd627f5bb149a29928b916df583773 name: 'Total swap space' key: ct.swaptotal delay: 5s history: 1w value_type: FLOAT units: B - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Memory - - - uuid: 75ca486de2674db99a86a107bf6d2e1c + - uuid: 75ca486de2674db99a86a107bf6d2e1c name: 'System uptime' key: ct.uptime delay: 10m history: 1w value_type: FLOAT units: uptime - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: General - - - tag: Application + - tag: Application value: OS triggers: - - - uuid: f0a28dbe802245dfae81fb99463c69e8 + - uuid: f0a28dbe802245dfae81fb99463c69e8 expression: 'change(/Template Containers/ct.uptime)<0' name: '{HOST.NAME} has just been restarted' status: DISABLED priority: INFO - - - uuid: 5c7f36dad687457082c19ba8d0ee8465 + - uuid: 5c7f36dad687457082c19ba8d0ee8465 name: 'Maximum number of opened files' key: kernel.maxfiles delay: 1h @@ -192,58 +159,48 @@ zabbix_export: value_type: FLOAT description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.' preprocessing: - - - type: RTRIM + - type: RTRIM parameters: - '3' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: OS triggers: - - - uuid: 502e41028ba542469b87d7825071ec50 + - uuid: 502e41028ba542469b87d7825071ec50 expression: 'last(/Template Containers/kernel.maxfiles)<1024' name: 'Configured max number of opened files is too low on {HOST.NAME}' priority: INFO - - - uuid: 56196557228142f4b4b1b621c52c471a + - uuid: 56196557228142f4b4b1b621c52c471a name: 'Maximum number of processes' key: kernel.maxproc delay: 1h history: 1w value_type: FLOAT description: 'It could be increased by using sysctrl utility or modifying file /etc/sysctl.conf.' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: OS triggers: - - - uuid: 63102e632a3e46c283de5e47e5555ab2 + - uuid: 63102e632a3e46c283de5e47e5555ab2 expression: 'last(/Template Containers/kernel.maxproc)<256' name: 'Configured max number of processes is too low on {HOST.NAME}' priority: INFO - - - uuid: e41ad00080c44b67b17b23eeb636d797 + - uuid: e41ad00080c44b67b17b23eeb636d797 name: 'Host boot time' key: system.boottime delay: 10m history: 1w value_type: FLOAT units: unixtime - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: General - - - tag: Application + - tag: Application value: OS - - - uuid: 95c8bde2b7de414d95393cd83cfe4524 + - uuid: 95c8bde2b7de414d95393cd83cfe4524 name: 'Host name' key: system.hostname delay: 1h @@ -252,22 +209,18 @@ zabbix_export: value_type: CHAR description: 'System host name.' inventory_link: NAME - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: General - - - tag: Application + - tag: Application value: OS triggers: - - - uuid: 1399a6aca6134bf58120c1b2cc2f32e5 + - uuid: 1399a6aca6134bf58120c1b2cc2f32e5 expression: '(last(/Template Containers/system.hostname,#1)<>last(/Template Containers/system.hostname,#2))>0' name: 'Hostname was changed on {HOST.NAME}' priority: INFO - - - uuid: d3aefc22659244cba82aab6e6fb2ee15 + - uuid: d3aefc22659244cba82aab6e6fb2ee15 name: 'System information' key: system.uname delay: 1h @@ -276,233 +229,192 @@ zabbix_export: value_type: CHAR description: 'The information as normally returned by ''uname -a''.' inventory_link: OS - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: General - - - tag: Application + - tag: Application value: OS triggers: - - - uuid: 0dcd0f691c0b4a7d9c6b2834e1909fe3 + - uuid: 0dcd0f691c0b4a7d9c6b2834e1909fe3 expression: '(last(/Template Containers/system.uname,#1)<>last(/Template Containers/system.uname,#2))>0' name: 'Host information was changed on {HOST.NAME}' priority: INFO - - - uuid: 1bbf2e280d684da9967edd614eef117e + - uuid: 1bbf2e280d684da9967edd614eef117e name: 'Number of logged in users' key: system.users.num history: 1w value_type: FLOAT description: 'Number of users who are currently logged in.' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: OS - - - tag: Application + - tag: Application value: Security - - - uuid: fc384b1da607499cb9beaf6d1400b756 + - uuid: fc384b1da607499cb9beaf6d1400b756 name: 'Checksum of $1' key: 'vfs.file.cksum[/etc/passwd]' delay: 1h history: 1w - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Security triggers: - - - uuid: cf943a0ff206434f952cf4afccf7d56a + - uuid: cf943a0ff206434f952cf4afccf7d56a expression: '(last(/Template Containers/vfs.file.cksum[/etc/passwd],#1)<>last(/Template Containers/vfs.file.cksum[/etc/passwd],#2))>0' name: '/etc/passwd has been changed on {HOST.NAME}' priority: WARNING manual_close: 'YES' - - - uuid: 7e0bfdb626d54991ad3bec1e7a475454 + - uuid: 7e0bfdb626d54991ad3bec1e7a475454 name: 'Checksum of $1' key: 'vfs.file.cksum[/etc/ssh/authorized_keys/root]' delay: 30s tags: - - - tag: Application + - tag: Application value: Security triggers: - - - uuid: 01471f5580da4f508978209d800bb93a + - uuid: 01471f5580da4f508978209d800bb93a expression: '(last(/Template Containers/vfs.file.cksum[/etc/ssh/authorized_keys/root],#1)<>last(/Template Containers/vfs.file.cksum[/etc/ssh/authorized_keys/root],#2))>0' name: 'SSH Authorized keys has been changed on {HOST.NAME}' priority: DISASTER discovery_rules: - - - uuid: e73a591b26e54034a3882898035c842c + - uuid: e73a591b26e54034a3882898035c842c name: 'Network interface discovery' key: net.if.discovery delay: 1h filter: conditions: - - - macro: '{#IFNAME}' + - macro: '{#IFNAME}' value: '@Network interfaces for discovery' formulaid: A description: 'Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery".' item_prototypes: - - - uuid: 5424543ac5094381b3780ab87c7662df + - uuid: 5424543ac5094381b3780ab87c7662df name: 'Incoming network traffic on $1' key: 'net.if.in[{#IFNAME}]' history: 1w units: bps preprocessing: - - - type: CHANGE_PER_SECOND + - type: CHANGE_PER_SECOND parameters: - '' - - - type: MULTIPLIER + - type: MULTIPLIER parameters: - '8' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: 'Network interfaces' - - - uuid: 4a0a9d9e65064bf7a10f3c4e86e3421e + - uuid: 4a0a9d9e65064bf7a10f3c4e86e3421e name: 'Outgoing network traffic on $1' key: 'net.if.out[{#IFNAME}]' history: 1w units: bps preprocessing: - - - type: CHANGE_PER_SECOND + - type: CHANGE_PER_SECOND parameters: - '' - - - type: MULTIPLIER + - type: MULTIPLIER parameters: - '8' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: 'Network interfaces' graph_prototypes: - - - uuid: 5c3afcd1707147aabdff69c4a51a3943 + - uuid: 5c3afcd1707147aabdff69c4a51a3943 name: 'Network traffic on {#IFNAME}' ymin_type_1: FIXED graph_items: - - - drawtype: GRADIENT_LINE + - drawtype: GRADIENT_LINE color: 00AA00 item: host: 'Template Containers' key: 'net.if.in[{#IFNAME}]' - - - sortorder: '1' + - sortorder: '1' drawtype: GRADIENT_LINE color: 3333FF item: host: 'Template Containers' key: 'net.if.out[{#IFNAME}]' - #request_method: POST - - - uuid: 4741e4182b31472989a12b66cd213613 + request_method: POST + - uuid: 4741e4182b31472989a12b66cd213613 name: 'Mounted filesystem discovery' key: vfs.fs.discovery delay: 1h filter: conditions: - - - macro: '{#FSTYPE}' + - macro: '{#FSTYPE}' value: '@File systems for discovery' formulaid: A description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".' item_prototypes: - - - uuid: aae745998c7a4567b6b93ddcba76e8e6 + - uuid: aae745998c7a4567b6b93ddcba76e8e6 name: 'Free inodes on $1 (percentage)' key: 'vfs.fs.inode[{#FSNAME},pfree]' history: 1w value_type: FLOAT units: '%' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Filesystems trigger_prototypes: - - - uuid: d1b24d36174f412fb91304bbcf5ae312 + - uuid: d1b24d36174f412fb91304bbcf5ae312 expression: 'last(/Template Containers/vfs.fs.inode[{#FSNAME},pfree])<20' name: 'Free inodes is less than 20% on volume {#FSNAME}' priority: WARNING - - - uuid: 6d614e33c0b943eb8cc430d2fb470310 + - uuid: 6d614e33c0b943eb8cc430d2fb470310 name: 'Free disk space on $1' key: 'vfs.fs.size[{#FSNAME},free]' history: 1w units: B - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Filesystems - - - uuid: ff75d66fa0444440978ecb0e6baa3aee + - uuid: ff75d66fa0444440978ecb0e6baa3aee name: 'Free disk space on $1 (percentage)' key: 'vfs.fs.size[{#FSNAME},pfree]' history: 1w value_type: FLOAT units: '%' - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Filesystems trigger_prototypes: - - - uuid: 6a0bea5a05cb4eccbe5094c9c2b8a529 + - uuid: 6a0bea5a05cb4eccbe5094c9c2b8a529 expression: 'last(/Template Containers/vfs.fs.size[{#FSNAME},pfree])<5' name: 'Free disk space is less than 5% on volume {#FSNAME}' priority: DISASTER - - - uuid: 61be12520bfd435fbc6ce85ec478b5d8 + - uuid: 61be12520bfd435fbc6ce85ec478b5d8 expression: 'last(/Template Containers/vfs.fs.size[{#FSNAME},pfree])<15' name: 'Free disk space is less than 20% on volume {#FSNAME}' priority: WARNING - - - uuid: 5f44a96642ff49a8bdd1e23ef4395965 + - uuid: 5f44a96642ff49a8bdd1e23ef4395965 name: 'Total disk space on $1' key: 'vfs.fs.size[{#FSNAME},total]' delay: 1h history: 1w units: B - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Filesystems - - - uuid: 6ed1b4e043ee4d4ab7ddc3f5cbbb0111 + - uuid: 6ed1b4e043ee4d4ab7ddc3f5cbbb0111 name: 'Used disk space on $1' key: 'vfs.fs.size[{#FSNAME},used]' history: 1w units: B - #request_method: POST + request_method: POST tags: - - - tag: Application + - tag: Application value: Filesystems graph_prototypes: - - - uuid: 98516d05dcea4891a0cb9cf47f8562d8 + - uuid: 98516d05dcea4891a0cb9cf47f8562d8 name: 'Disk space usage {#FSNAME}' width: '600' height: '340' @@ -510,114 +422,94 @@ zabbix_export: show_triggers: 'NO' type: STACKED graph_items: - - - color: C80000 + - color: C80000 type: GRAPH_SUM item: host: 'Template Containers' key: 'vfs.fs.size[{#FSNAME},total]' - - - sortorder: '1' + - sortorder: '1' color: 00C800 item: host: 'Template Containers' key: 'vfs.fs.size[{#FSNAME},free]' - #request_method: POST + request_method: POST dashboards: - - - uuid: ed2584b7c71845f780a55fb9fb46b4a9 + - uuid: ed2584b7c71845f780a55fb9fb46b4a9 name: 'System performance' pages: - - - widgets: - - - type: graphprototype + - widgets: + - type: graphprototype width: '12' height: '5' fields: - - - type: INTEGER + - type: INTEGER name: columns value: '1' - - - type: GRAPH_PROTOTYPE + - type: GRAPH_PROTOTYPE name: graphid value: host: 'Template Containers' name: 'Disk space usage {#FSNAME}' - - - type: graphprototype + - type: graphprototype x: '12' width: '12' height: '5' fields: - - - type: INTEGER + - type: INTEGER name: columns value: '1' - - - type: GRAPH_PROTOTYPE + - type: GRAPH_PROTOTYPE name: graphid value: host: 'Template Containers' name: 'Network traffic on {#IFNAME}' - - - type: graph + - type: graph 'y': '5' width: '12' height: '5' fields: - - - type: GRAPH + - type: GRAPH name: graphid value: host: 'Template Containers' name: 'Memory usage' - - - type: graph + - type: graph x: '12' 'y': '5' width: '12' height: '5' fields: - - - type: GRAPH + - type: GRAPH name: graphid value: host: 'Template Containers' name: 'Container - Number of processes' graphs: - - - uuid: b8d6a23897ad4e0bb11ac68f06e9218b + - uuid: b8d6a23897ad4e0bb11ac68f06e9218b name: 'Container - Number of processes' graph_items: - - - color: '666600' + - color: '666600' item: host: 'Template Containers' key: ct.processes - - - uuid: d4e234a581c1482c8416de642f0d6715 + - uuid: d4e234a581c1482c8416de642f0d6715 name: 'Memory usage' show_work_period: 'NO' show_triggers: 'NO' ymin_type_1: FIXED graph_items: - - - drawtype: GRADIENT_LINE + - drawtype: GRADIENT_LINE color: D7CCC8 item: host: 'Template Containers' key: ct.ramtotal - - - sortorder: '1' + - sortorder: '1' drawtype: FILLED_REGION color: 00796B item: host: 'Template Containers' key: ct.ramused - - - uuid: 1e41269f0a1a4a0aa969106cde5bdb7f + - uuid: 1e41269f0a1a4a0aa969106cde5bdb7f name: 'Swap usage' width: '600' height: '340' @@ -626,14 +518,12 @@ zabbix_export: type: PIE show_3d: 'YES' graph_items: - - - color: AA0000 + - color: AA0000 type: GRAPH_SUM item: host: 'Template Containers' key: ct.swaptotal - - - sortorder: '1' + - sortorder: '1' color: 00AA00 item: host: 'Template Containers' diff --git a/Template ICMP Ping.yaml b/Template ICMP Ping.yaml new file mode 100644 index 0000000..a4231f7 --- /dev/null +++ b/Template ICMP Ping.yaml @@ -0,0 +1,74 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 71979c94746f43babcbb1b34a7eec0a6 + template: 'Template ICMP Ping' + name: 'Template ICMP Ping' + groups: + - name: Templates + items: + - uuid: 0d18054748f54a00af3bf8f1d008202f + name: 'ICMP ping' + type: SIMPLE + key: icmpping + history: 1w + valuemap: + name: 'Service state' + request_method: POST + tags: + - tag: Application + value: ICMP + triggers: + - uuid: 4ea8f8380fc14a1dafde80997db408c8 + expression: 'max(/Template ICMP Ping/icmpping,#3)=0' + name: '{HOST.NAME} is unavailable by ICMP' + priority: AVERAGE + - uuid: dc8aa465cde84fe0be03bc3a53dac531 + name: 'ICMP loss' + type: SIMPLE + key: icmppingloss + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: ICMP + triggers: + - uuid: 10887da4f6054a2eb4ec0e23872c8d1c + expression: 'min(/Template ICMP Ping/icmppingloss,5m)>20' + name: 'Ping loss is too high on {HOST.NAME}' + priority: WARNING + dependencies: + - name: '{HOST.NAME} is unavailable by ICMP' + expression: 'max(/Template ICMP Ping/icmpping,#3)=0' + - uuid: 7139ecf865e6482eb879bcb854310f4c + name: 'ICMP response time' + type: SIMPLE + key: icmppingsec + history: 1w + value_type: FLOAT + units: s + request_method: POST + tags: + - tag: Application + value: ICMP + triggers: + - uuid: 473b1ddcb059414695d4e400ea29560a + expression: 'avg(/Template ICMP Ping/icmppingsec,5m)>0.15' + name: 'Response time is too high on {HOST.NAME}' + priority: WARNING + dependencies: + - name: '{HOST.NAME} is unavailable by ICMP' + expression: 'max(/Template ICMP Ping/icmpping,#3)=0' + valuemaps: + - uuid: d5ccd0fdcc824a949b023ef5a145903b + name: 'Service state' + mappings: + - value: '0' + newvalue: Down + - value: '1' + newvalue: Up diff --git a/Template LDAP Server.yaml b/Template LDAP Server.yaml new file mode 100644 index 0000000..bce624c --- /dev/null +++ b/Template LDAP Server.yaml @@ -0,0 +1,83 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 5c520e3c0d4a4a0198587952e1e6fb96 + template: 'Template LDAP Server' + name: 'Template LDAP Server' + description: 'Monitoring LDAP Service' + groups: + - name: Templates + items: + - uuid: 4d2a3410b2ee48ba9960a4759b058498 + name: 'Users accepted' + type: TRAP + key: ldap.user_accepted + delay: '0' + units: Users + request_method: POST + tags: + - tag: Application + value: LDAP + - uuid: ac3319ffd1994c85a8d15e3d0f4af189 + name: 'Users Application' + type: TRAP + key: ldap.user_application + delay: '0' + units: Users + request_method: POST + tags: + - tag: Application + value: LDAP + - uuid: c90de4eb1878428d8235a13a0301b05c + name: 'User COunt' + key: ldap.user_count + delay: '86400s;14m/1-7,07:00-07:15' + request_method: POST + tags: + - tag: Application + value: LDAP + triggers: + - uuid: 6aabd844d7574843919cd6017d8ddf72 + expression: 'last(/Template LDAP Server/ldap.user_count)>60000' + name: 'User count reached Barrier' + priority: INFO + manual_close: 'YES' + - uuid: a07ff7e665ec409f9b99ce010b95702e + name: 'Users denied' + type: TRAP + key: ldap.user_denied + delay: '0' + units: Users + request_method: POST + tags: + - tag: Application + value: LDAP + graphs: + - uuid: 49d4bfe42bd4404daae5a575d493fcdf + name: 'Disroot Tinder' + graph_items: + - color: 00DD00 + item: + host: 'Template LDAP Server' + key: ldap.user_accepted + - sortorder: '1' + color: BBBB00 + item: + host: 'Template LDAP Server' + key: ldap.user_application + - sortorder: '2' + color: BB0000 + item: + host: 'Template LDAP Server' + key: ldap.user_denied + - uuid: 1a980eacc9ca4a9a91187858d99a9926 + name: 'LDAP - User Count' + type: STACKED + graph_items: + - color: 1A7C11 + item: + host: 'Template LDAP Server' + key: ldap.user_count diff --git a/Template LSI RAID (agent + trapper).yaml b/Template LSI RAID (agent + trapper).yaml new file mode 100644 index 0000000..354248e --- /dev/null +++ b/Template LSI RAID (agent + trapper).yaml @@ -0,0 +1,245 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 6a5f57eaa3bc4041b7dedd87defbd38e + template: 'Template LSI RAID' + name: 'Template LSI RAID (agent + trapper)' + groups: + - name: Templates + discovery_rules: + - uuid: 1414c486fe36428aae5fa2a50d9a5efd + name: 'RAID discovery adapters' + type: TRAP + key: hw.raid.discovery.adapters + delay: '0' + item_prototypes: + - uuid: 488ad62ac49d424ead936f5d3266cce8 + name: 'Adapter {#ADAPTER_ID} firmware' + key: 'hw.raid.adapter[{#ADAPTER_ID},"fw_version"]' + delay: '86400' + history: 7d + trends: '0' + value_type: CHAR + request_method: POST + tags: + - tag: Application + value: 'LSI RAID adapter' + - uuid: 4d23e9edd40d40f7b82264818124109b + name: 'Adapter {#ADAPTER_ID} model' + key: 'hw.raid.adapter[{#ADAPTER_ID},"product_name"]' + delay: '86400' + history: 7d + trends: '0' + value_type: CHAR + request_method: POST + tags: + - tag: Application + value: 'LSI RAID adapter' + request_method: POST + - uuid: eb70286ed6d74df9ba91a98824caad06 + name: 'RAID discovery bbu' + type: TRAP + key: hw.raid.discovery.bbu + delay: '0' + item_prototypes: + - uuid: ca38da6751854290bc8bdc871a76fae5 + name: 'BBU state on adapter:{#ADAPTER_ID}' + type: TRAP + key: 'hw.raid.bbu[{#ADAPTER_ID},"bbu_state"]' + delay: '0' + history: 7d + valuemap: + name: 'LSI RAID BBU & LD Status' + request_method: POST + tags: + - tag: Application + value: 'LSI RAID BBU' + trigger_prototypes: + - uuid: e1e2bdd4760346b3b5338781f473f6e2 + expression: 'last(/Template LSI RAID/hw.raid.bbu[{#ADAPTER_ID},"bbu_state"])=1' + name: 'BBU is not in optimal state on adapter:{#ADAPTER_ID}' + priority: HIGH + description: 'Backup Battery Unit on RAID adapter is not in operational state. RAID volumes performance can be degraded' + - uuid: 696ebe8794e14de7ae8ae69c5ffc6301 + expression: 'nodata(/Template LSI RAID/hw.raid.bbu[{#ADAPTER_ID},"bbu_state"],720s)=1' + name: 'RAID info is outdated on {HOST.NAME}' + priority: DISASTER + description: 'RAID INFO not updated more than 10 minutes. Check task scheduler on host and connectivity' + - uuid: e9dbcd4b7f9e4299985488a7b53f0b33 + name: 'BBU on adapter {#ADAPTER_ID}:manufacture date' + key: 'hw.raid.bbu[{#ADAPTER_ID},"date_manufactured"]' + delay: '86400' + history: 7d + trends: '0' + status: DISABLED + value_type: CHAR + request_method: POST + tags: + - tag: Application + value: 'LSI RAID BBU' + - uuid: 0937b02d389b47dca9a154a36cd93c92 + name: 'BBU design capacity on adapter:{#ADAPTER_ID}' + key: 'hw.raid.bbu[{#ADAPTER_ID},"design_capacity"]' + delay: '86400' + history: 1d + status: DISABLED + request_method: POST + tags: + - tag: Application + value: 'LSI RAID BBU' + - uuid: cf267e7bacbc45b5830e1a0c35eb1c56 + name: 'BBU current capacity on adapter:{#ADAPTER_ID}' + key: 'hw.raid.bbu[{#ADAPTER_ID},"full_capacity"]' + delay: '300' + history: 7d + status: DISABLED + request_method: POST + tags: + - tag: Application + value: 'LSI RAID BBU' + - uuid: a4745a0c94e748e791c6ab316123648f + name: 'BBU state of charge on adapter:{#ADAPTER_ID}' + type: TRAP + key: 'hw.raid.bbu[{#ADAPTER_ID},"state_of_charge"]' + delay: '0' + history: 7d + units: '%' + request_method: POST + tags: + - tag: Application + value: 'LSI RAID BBU' + trigger_prototypes: + - uuid: e638200938f94f4894aed8dea6017e12 + expression: 'avg(/Template LSI RAID/hw.raid.bbu[{#ADAPTER_ID},"state_of_charge"],#3)<55' + name: 'BBU on adapter:{#ADAPTER_ID} charge capacity degraded' + priority: WARNING + request_method: POST + - uuid: 250fbfab47434d2e8dd8cfb5bc9aa294 + name: 'RAID discovery pdisks' + type: TRAP + key: hw.raid.discovery.pdisks + delay: '0' + item_prototypes: + - uuid: 40d9f77361af4de8b31a48e2d9eb18f3 + name: 'Disk state Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + type: TRAP + key: 'hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"firmware_state"]' + delay: '0' + history: 7d + valuemap: + name: 'LSI RAID PhysDrv Status' + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Physical Volume' + trigger_prototypes: + - uuid: 962cc00f8cc54ad393a148410e1d10d7 + expression: 'last(/Template LSI RAID/hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"firmware_state"])=1' + name: 'Disk state Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID} is not Optimal' + priority: HIGH + - uuid: c610d2fcf98443e780296a216578fa35 + name: 'Disk model Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + key: 'hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"inquiry_data"]' + delay: '86400' + history: 7d + trends: '0' + value_type: TEXT + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Physical Volume' + - uuid: 65471053ecac455fb1922b010537744e + name: 'Disk Media errors Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + type: TRAP + key: 'hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"media_errors"]' + delay: '0' + history: 7d + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Physical Volume' + trigger_prototypes: + - uuid: 345df6f34fef4d1b9a327aaaddb26158 + expression: 'last(/Template LSI RAID/hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"media_errors"])<>0' + name: 'Disk have media errors Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + priority: WARNING + - uuid: 151adbbb9945419fb746fdb6f25a2090 + name: 'Disk predictive errors Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + type: TRAP + key: 'hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"predictive_errors"]' + delay: '0' + history: 7d + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Physical Volume' + trigger_prototypes: + - uuid: fcfa8492af8b425bb6f2b25a2f06a6bf + expression: 'last(/Template LSI RAID/hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"predictive_errors"])<>0' + name: 'Disk have predictive errors Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + priority: WARNING + - uuid: 2de9ed0e3048480bacc55e572e9b235e + name: 'Disk size Adapter:{#ADAPTER_ID},ENC:{#ENCLOSURE_ID},Disk:{#PDRIVE_ID}' + key: 'hw.raid.physical_disk[{#ADAPTER_ID},{#ENCLOSURE_ID},{#PDRIVE_ID},"raw_size"]' + delay: '86400' + history: 7d + trends: '0' + value_type: CHAR + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Physical Volume' + request_method: POST + - uuid: 2aaff77ea3cf4f078a81e2ea8bb85f42 + name: 'RAID discovery vdisks' + type: TRAP + key: hw.raid.discovery.vdisks + delay: '0' + item_prototypes: + - uuid: 4ca547b6f8f74631adada8e4ec160db9 + name: 'RAID Volume size Adapter:{#ADAPTER_ID},ID:{#VDRIVE_ID}' + key: 'hw.raid.logical_disk[{#ADAPTER_ID},{#VDRIVE_ID},"vd_size"]' + delay: '86400' + history: 7d + trends: '0' + value_type: TEXT + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Logical Volume' + - uuid: c5b1520d494244c1badb3d1928c7c568 + name: 'RAID Volume state Adapter:{#ADAPTER_ID},ID:{#VDRIVE_ID}' + type: TRAP + key: 'hw.raid.logical_disk[{#ADAPTER_ID},{#VDRIVE_ID},"vd_state"]' + delay: '0' + history: 7d + valuemap: + name: 'LSI RAID BBU & LD Status' + request_method: POST + tags: + - tag: Application + value: 'LSI RAID Logical Volume' + trigger_prototypes: + - uuid: 6d1c81494297400c8be97dd803b2dcc4 + expression: 'last(/Template LSI RAID/hw.raid.logical_disk[{#ADAPTER_ID},{#VDRIVE_ID},"vd_state"])=1' + name: 'RAID Volume Adapter:{#ADAPTER_ID},ID:{#VDRIVE_ID} state is not Optimal' + priority: HIGH + request_method: POST + valuemaps: + - uuid: e9854f652e514485aff320f9486cdefd + name: 'LSI RAID BBU & LD Status' + mappings: + - value: '0' + newvalue: Optimal + - value: '1' + newvalue: Failed + - uuid: cf4b20f478c84c2f95b91fce163d03c7 + name: 'LSI RAID PhysDrv Status' + mappings: + - value: '0' + newvalue: '(Online|Hostpare|Unconfigured good)' + - value: '1' + newvalue: Failed diff --git a/Template LSI RAID - H700.yaml b/Template LSI RAID - H700.yaml new file mode 100644 index 0000000..1180bd0 --- /dev/null +++ b/Template LSI RAID - H700.yaml @@ -0,0 +1,80 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: ea47d74ef60345a8bc150e7fc70a3369 + name: 'Proxmox Hosts' + templates: + - uuid: bf5067ead4744c0fb1c14ad128eb7b9c + template: 'Template LSI RAID - H700' + name: 'Template LSI RAID - H700' + groups: + - name: 'Proxmox Hosts' + items: + - uuid: 1eb1e35292b941bea6e1ce673f59de41 + name: 'RAID - Arrays Bad' + key: raid.arrays_bad + delay: 180s + value_type: FLOAT + tags: + - tag: Application + value: PERC_H700 + triggers: + - uuid: 1ca423803d3748b6a5bf376fa3848391 + expression: 'last(/Template LSI RAID - H700/raid.arrays_bad)>0' + name: 'RAID - Broken Array' + priority: DISASTER + - uuid: b84e190eb87e4f36b63be1160a04cb32 + name: 'RAID - Arrays Good' + key: raid.arrays_good + delay: 30s + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: PERC_H700 + - uuid: 49395ce2acfb4bd787221510dfe2a3c1 + name: 'RAID - BBU Status' + key: raid.bbu_status + delay: 300s + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: PERC_H700 + triggers: + - uuid: 1502e6cfb4e442e7a4c2ceb815eff5d1 + expression: '(last(/Template LSI RAID - H700/raid.bbu_status,#1)<>last(/Template LSI RAID - H700/raid.bbu_status,#2))>0' + name: 'RAID - BBU Status Changed' + priority: AVERAGE + - uuid: 1b45a23f792a43718390b9eef05d7287 + name: 'RAID - Disk Bad' + key: raid.disk_bad + delay: 180s + value_type: FLOAT + tags: + - tag: Application + value: PERC_H700 + triggers: + - uuid: b2701fbb245345db9bdb55a91fdf7d04 + expression: 'last(/Template LSI RAID - H700/raid.disk_bad)>0' + name: 'RAID - Broken Disks' + priority: DISASTER + type: MULTIPLE + - uuid: c8ab70ead87349809d544b6bc69a08b9 + name: 'RAID - Disk Good' + key: raid.disk_good + delay: 30s + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: PERC_H700 + - uuid: 627325d36482413aaca4c173382ae210 + name: 'RAID - Controller status' + key: raid.status + delay: 30s + trends: '0' + value_type: TEXT + tags: + - tag: Application + value: PERC_H700 diff --git a/Template OS Linux.yaml b/Template OS Linux.yaml new file mode 100644 index 0000000..60bd34b --- /dev/null +++ b/Template OS Linux.yaml @@ -0,0 +1,758 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: edc9f0a5a5d54797bf68e37364743831 + template: 'Template OS Linux' + name: 'Template OS Linux' + templates: + - name: 'Template App Zabbix Agent' + groups: + - name: Templates + items: + - uuid: 6f0d30b413f746f1857c142a7d4ab2dc + 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.' + request_method: POST + tags: + - tag: Application + value: OS + triggers: + - uuid: d56828a661f9498a99cfb645cd8f30fa + expression: 'last(/Template OS Linux/kernel.maxfiles)<1024' + name: 'Configured max number of opened files is too low on {HOST.NAME}' + priority: INFO + - uuid: 679313e0039c461a8f34badfb9390545 + 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.' + request_method: POST + tags: + - tag: Application + value: OS + triggers: + - uuid: b9c6644db41a49fbaf84b22c30f72dc4 + expression: 'last(/Template OS Linux/kernel.maxproc)<256' + name: 'Configured max number of processes is too low on {HOST.NAME}' + priority: INFO + - uuid: 2bb3314953be4cd290cce97926ad6276 + name: 'Number of running processes' + key: 'proc.num[,,run]' + history: 1w + description: 'Number of processes in running state.' + request_method: POST + tags: + - tag: Application + value: Processes + triggers: + - uuid: aae64f9f597a437da98726646f970f9b + expression: 'avg(/Template OS Linux/proc.num[,,run],5m)>30' + name: 'Too many processes running on {HOST.NAME}' + priority: WARNING + - uuid: 160ccce412104e75be08bcedd30c8d29 + name: 'Number of processes' + key: 'proc.num[]' + history: 1w + description: 'Total number of processes in any state.' + request_method: POST + tags: + - tag: Application + value: Processes + triggers: + - uuid: 4da0d3f0571f4ea6be35fb5224e319c4 + expression: 'avg(/Template OS Linux/proc.num[],5m)>300' + name: 'Too many processes on {HOST.NAME}' + priority: WARNING + - uuid: dbe46edd97724bb6bcad126dcfc21098 + name: 'Host boot time' + key: system.boottime + delay: 10m + history: 1w + units: unixtime + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + - uuid: 4cead1ac32c142958f93fe4c1b17b0f8 + name: 'Interrupts per second' + key: system.cpu.intr + history: 1w + units: ips + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 1cd6d414685a4ccbacf2b0d35b15c815 + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[percpu,avg1]' + history: 1w + value_type: FLOAT + description: 'The processor load is calculated as system CPU load divided by number of CPU cores.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + triggers: + - uuid: 7b8def10fd044d9e881eb0611dcb8fa0 + expression: 'avg(/Template OS Linux/system.cpu.load[percpu,avg1],5m)>5' + name: 'Processor load is too high on {HOST.NAME}' + priority: WARNING + - uuid: 8cf7c02cf20e461e8cd2ece183a3549e + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[percpu,avg5]' + history: 1w + value_type: FLOAT + description: 'The processor load is calculated as system CPU load divided by number of CPU cores.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: a8aa7983c18f4788855ff8cd9ec4c926 + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[percpu,avg15]' + history: 1w + value_type: FLOAT + description: 'The processor load is calculated as system CPU load divided by number of CPU cores.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 4e9dc5be89a04b53a3c51bfa757f24c1 + name: 'Context switches per second' + key: system.cpu.switches + history: 1w + units: sps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 3f2ae412e35e4e77913c42bcb4ffbde2 + name: 'CPU $2 time' + key: 'system.cpu.util[,idle]' + history: 1w + value_type: FLOAT + units: '%' + description: 'The time the CPU has spent doing nothing.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: e2e95d5be1084c9c86543d4096047b03 + name: 'CPU $2 time' + key: 'system.cpu.util[,interrupt]' + history: 1w + value_type: FLOAT + units: '%' + description: 'The amount of time the CPU has been servicing hardware interrupts.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 46c5c8d4c6a54730a2e2f787a20c5b96 + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + triggers: + - uuid: ec27ff72fd4d43c48aa062bf086328a5 + expression: 'avg(/Template OS Linux/system.cpu.util[,iowait],5m)>20' + 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: 33c3075263ca4eff8ca6e2482e109986 + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 685a286f36b84e1d835f660b045b9798 + name: 'CPU $2 time' + key: 'system.cpu.util[,softirq]' + history: 1w + value_type: FLOAT + units: '%' + description: 'The amount of time the CPU has been servicing software interrupts.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: fe3b012c9c0c4a948053ab21f8c9eea0 + name: 'CPU $2 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).' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 1128787dc4fa4b97af14f048f00c373e + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: c8122476f16649ef950a23fe9f6c1e38 + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 9e656b572c3840fc9289df61b8011bd6 + name: 'Host name' + key: system.hostname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + description: 'System host name.' + inventory_link: NAME + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + triggers: + - uuid: 5f1c31b67601425c90fb98f4992317d7 + expression: '(last(/Template OS Linux/system.hostname,#1)<>last(/Template OS Linux/system.hostname,#2))>0' + name: 'Hostname was changed on {HOST.NAME}' + priority: INFO + - uuid: b8a5f879099f4f33adc12e83097bf2c9 + name: 'Host local time' + key: system.localtime + history: 1w + units: unixtime + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + - uuid: 25164c261b274ea786dd87524196929b + name: 'Free swap space' + key: 'system.swap.size[,free]' + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Memory + - uuid: c42386b5947247e3a73bcdbffda72b30 + name: 'Free swap space in %' + key: 'system.swap.size[,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: Memory + triggers: + - uuid: 8895f11bcf214f69aa2b9a86f732a182 + expression: 'last(/Template OS Linux/system.swap.size[,pfree])<50' + name: 'Lack of free swap space on {HOST.NAME}' + priority: WARNING + description: 'It probably means that the systems requires more physical memory.' + - uuid: 4801328922504974a936f6585a0c696c + name: 'Total swap space' + key: 'system.swap.size[,total]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Memory + - uuid: e87dcaa3544e453dbc78a762627fe974 + name: 'System information' + key: system.uname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + description: 'The information as normally returned by ''uname -a''.' + inventory_link: OS + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + triggers: + - uuid: fa85891b0e6947f58e42dae3d212234e + expression: '(last(/Template OS Linux/system.uname,#1)<>last(/Template OS Linux/system.uname,#2))>0' + name: 'Host information was changed on {HOST.NAME}' + priority: INFO + - uuid: 22214fa5dd054ff2b2d059693d454cb0 + name: 'System uptime' + key: system.uptime + delay: 10m + history: 1w + units: uptime + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + triggers: + - uuid: 517678f9284c43429c67bd81d5090c54 + expression: 'change(/Template OS Linux/system.uptime)<0' + name: '{HOST.NAME} has just been restarted' + priority: INFO + - uuid: 455f53504e424fd08c91b1c64354c1d1 + name: 'Number of logged in users' + key: system.users.num + history: 1w + description: 'Number of users who are currently logged in.' + request_method: POST + tags: + - tag: Application + value: OS + - tag: Application + value: Security + - uuid: f37e2658e2764108aea57bf3277618d3 + name: 'Checksum of $1' + key: 'vfs.file.cksum[/etc/passwd]' + delay: 1h + history: 1w + request_method: POST + tags: + - tag: Application + value: Security + triggers: + - uuid: abc4e5489e8e4fad83868d5eab177963 + expression: '(last(/Template OS Linux/vfs.file.cksum[/etc/passwd],#1)<>last(/Template OS Linux/vfs.file.cksum[/etc/passwd],#2))>0' + name: '/etc/passwd has been changed on {HOST.NAME}' + priority: WARNING + - uuid: 21e695f785f9449696dfd4c0266866c2 + name: 'Available memory' + key: 'vm.memory.size[available]' + history: 1w + units: B + description: 'Available memory is defined as free+cached+buffers memory.' + request_method: POST + tags: + - tag: Application + value: Memory + triggers: + - uuid: 3dacd2129863462b843b032902ef85b3 + expression: 'last(/Template OS Linux/vm.memory.size[available])<20M' + name: 'Lack of available memory on server {HOST.NAME}' + priority: AVERAGE + - uuid: 29d122c53a1c471e9b5e7f083cd94a93 + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Memory + discovery_rules: + - uuid: b61ebb5701344b7c84d2b86217e954bd + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery".' + item_prototypes: + - uuid: 9dfcdcb258004c769b9c1d730f5552ac + name: 'Incoming network traffic on $1' + key: 'net.if.in[{#IFNAME}]' + history: 1w + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + request_method: POST + tags: + - tag: Application + value: 'Network interfaces' + - uuid: 0c3dd4e928de40eea133d2e376961f9b + name: 'Outgoing network traffic on $1' + key: 'net.if.out[{#IFNAME}]' + history: 1w + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + request_method: POST + tags: + - tag: Application + value: 'Network interfaces' + graph_prototypes: + - uuid: aa9f75260fc74786aed342426869c276 + name: 'Network traffic on {#IFNAME}' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'Template OS Linux' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'Template OS Linux' + key: 'net.if.out[{#IFNAME}]' + request_method: POST + - uuid: d99e64a41e6b4e57bb9126f761e235fe + name: 'Mounted filesystem discovery' + key: vfs.fs.discovery + delay: 1h + filter: + conditions: + - macro: '{#FSTYPE}' + value: '@File systems for discovery' + formulaid: A + description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".' + item_prototypes: + - uuid: 3fd5f0e4403f411986ed98dc911f9f5d + name: 'Free inodes on $1 (percentage)' + key: 'vfs.fs.inode[{#FSNAME},pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: Filesystems + trigger_prototypes: + - uuid: d364415d4f754401b8413d0971f06100 + expression: 'last(/Template OS Linux/vfs.fs.inode[{#FSNAME},pfree])<20' + name: 'Free inodes is less than 20% on volume {#FSNAME}' + priority: WARNING + - uuid: 8d0f848e29ef482c9ff4329fbbe47dab + name: 'Free disk space on $1' + key: 'vfs.fs.size[{#FSNAME},free]' + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Filesystems + - uuid: 959519ac683e49579cd63bdbd22b2748 + name: 'Free disk space on $1 (percentage)' + key: 'vfs.fs.size[{#FSNAME},pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: Filesystems + trigger_prototypes: + - uuid: c39ed468d32a48f1a87e40183e9570f4 + expression: 'last(/Template OS Linux/vfs.fs.size[{#FSNAME},pfree])<20' + name: 'Free disk space is less than 20% on volume {#FSNAME}' + priority: WARNING + - uuid: 244717e2a2814e7b9ef511e15874678a + name: 'Total disk space on $1' + key: 'vfs.fs.size[{#FSNAME},total]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Filesystems + - uuid: 0f1c38fb55b74deabae4db657534be2b + name: 'Used disk space on $1' + key: 'vfs.fs.size[{#FSNAME},used]' + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Filesystems + graph_prototypes: + - uuid: b15c43ed55564882aff4432bcea20d07 + name: 'Disk space usage {#FSNAME}' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - color: C80000 + type: GRAPH_SUM + item: + host: 'Template OS Linux' + key: 'vfs.fs.size[{#FSNAME},total]' + - sortorder: '1' + color: 00C800 + item: + host: 'Template OS Linux' + key: 'vfs.fs.size[{#FSNAME},free]' + request_method: POST + dashboards: + - uuid: facf223bf2dd4fcaa11d3cdacdcb032a + name: 'System performance' + pages: + - widgets: + - type: graph + width: '12' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template OS Linux' + name: 'CPU load' + - type: graph + x: '12' + width: '12' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template OS Linux' + name: 'CPU utilization' + - type: graph + 'y': '5' + width: '12' + height: '7' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template OS Linux' + name: 'Memory usage' + - type: graph + x: '12' + 'y': '5' + width: '12' + height: '7' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template OS Linux' + name: 'Swap usage' + - type: graph + 'y': '12' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '1' + - type: ITEM + name: itemid + value: + host: 'Template OS Linux' + key: 'proc.num[]' + - type: graph + x: '12' + 'y': '12' + width: '12' + height: '5' + fields: + - type: INTEGER + name: source_type + value: '1' + - type: ITEM + name: itemid + value: + host: 'Template OS Linux' + key: 'proc.num[,,run]' + graphs: + - uuid: b3df089f2510423499ebf9233b1ddb38 + name: 'CPU jumps' + graph_items: + - color: '009900' + item: + host: 'Template OS Linux' + key: system.cpu.switches + - sortorder: '1' + color: '000099' + item: + host: 'Template OS Linux' + key: system.cpu.intr + - uuid: ddbadd2946274c3abb1da2973b847a10 + name: 'CPU load' + ymin_type_1: FIXED + graph_items: + - color: '009900' + item: + host: 'Template OS Linux' + key: 'system.cpu.load[percpu,avg1]' + - sortorder: '1' + color: '000099' + item: + host: 'Template OS Linux' + key: 'system.cpu.load[percpu,avg5]' + - sortorder: '2' + color: '990000' + item: + host: 'Template OS Linux' + key: 'system.cpu.load[percpu,avg15]' + - uuid: 382b0f47048b45c3a81c2b16e014e551 + name: 'CPU utilization' + show_triggers: 'NO' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: FF5555 + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,steal]' + - sortorder: '1' + drawtype: FILLED_REGION + color: 55FF55 + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,softirq]' + - sortorder: '2' + drawtype: FILLED_REGION + color: '009999' + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,interrupt]' + - sortorder: '3' + drawtype: FILLED_REGION + color: '990099' + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,nice]' + - sortorder: '4' + drawtype: FILLED_REGION + color: '999900' + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,iowait]' + - sortorder: '5' + drawtype: FILLED_REGION + color: '990000' + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,system]' + - sortorder: '6' + drawtype: FILLED_REGION + color: '000099' + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,user]' + - sortorder: '7' + drawtype: FILLED_REGION + color: '009900' + item: + host: 'Template OS Linux' + key: 'system.cpu.util[,idle]' + - uuid: 63962d90e11e4ed0992dbc6aed212cde + name: 'Memory usage' + ymin_type_1: FIXED + ymax_type_1: ITEM + ymax_item_1: + host: 'Template OS Linux' + key: 'vm.memory.size[total]' + graph_items: + - drawtype: GRADIENT_LINE + color: 00C800 + item: + host: 'Template OS Linux' + key: 'vm.memory.size[available]' + - uuid: 229091297b684721b676add922834065 + name: 'Swap usage' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - color: AA0000 + type: GRAPH_SUM + item: + host: 'Template OS Linux' + key: 'system.swap.size[,total]' + - sortorder: '1' + color: 00AA00 + item: + host: 'Template OS Linux' + key: 'system.swap.size[,free]' diff --git a/Template Proxmox-Host.yaml b/Template Proxmox-Host.yaml new file mode 100644 index 0000000..54c00ca --- /dev/null +++ b/Template Proxmox-Host.yaml @@ -0,0 +1,756 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 46d8ce9ead5b4f2993bf3c5a228e5518 + template: 'Template Proxmox-Host' + name: 'Template Proxmox-Host' + templates: + - name: 'Template App Zabbix Agent' + groups: + - name: Templates + items: + - uuid: e7f949a9e3724eefb3933049581648a1 + name: 'Email Data Size' + key: dir_size.email + units: B + request_method: POST + tags: + - tag: Application + value: 'Apps Data Size' + - uuid: 3434468861334b1ab225aff0f31c8a23 + name: 'Lufi Data Size' + key: dir_size.lufi + units: B + request_method: POST + tags: + - tag: Application + value: 'Apps Data Size' + - uuid: 1e3824075f174c3fa065fd21c2ad7072 + name: 'Matrix Data Size' + key: dir_size.matrix + units: B + request_method: POST + tags: + - tag: Application + value: 'Apps Data Size' + - uuid: a2b5bae1200942ebafd42193f164d4cb + name: 'Nextcloud Data Size' + key: dir_size.owncloud + units: B + request_method: POST + tags: + - tag: Application + value: 'Apps Data Size' + - uuid: 86740b5b9b7b4d0884b9cee30a2693d8 + 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.' + request_method: POST + tags: + - tag: Application + value: OS + triggers: + - uuid: a83c44282c534206bbcdc80362e6390d + expression: 'last(/Template Proxmox-Host/kernel.maxfiles)<1024' + name: 'Configured max number of opened files is too low on {HOST.NAME}' + priority: INFO + - uuid: 6bc15b0b67c44fe59cf9456c799fcab2 + 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.' + request_method: POST + tags: + - tag: Application + value: OS + triggers: + - uuid: f01c3bdd7c364e37adc9731df00a32ab + expression: 'last(/Template Proxmox-Host/kernel.maxproc)<256' + name: 'Configured max number of processes is too low on {HOST.NAME}' + priority: INFO + - uuid: e67611ed4bbe44839791985cede0213d + name: 'Host boot time' + key: system.boottime + delay: 10m + history: 1w + units: unixtime + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + - uuid: 00aee661e6974379936b94ededa07a19 + name: 'Interrupts per second' + key: system.cpu.intr + history: 1w + units: ips + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 40eb034ea1154bb5936bcf77ce98ad95 + name: 'Processor load (1 min average per core)' + key: 'system.cpu.load[all,avg1]' + history: 1w + value_type: FLOAT + description: 'The processor load is calculated as system CPU load divided by number of CPU cores.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 10ff7a58b0de4b74a374dbb434fc56eb + name: 'Processor load (5 min average per core)' + key: 'system.cpu.load[all,avg5]' + history: 1w + value_type: FLOAT + description: 'The processor load is calculated as system CPU load divided by number of CPU cores.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + triggers: + - uuid: e105de80c5624c979c7dd033e3b1b1e2 + expression: 'avg(/Template Proxmox-Host/system.cpu.load[all,avg5],5m)>20' + name: 'Processor load is too high on {HOST.NAME}' + priority: WARNING + - uuid: 6d73b0503a354a0783e165397373664d + name: 'Processor load (15 min average per core)' + key: 'system.cpu.load[all,avg15]' + history: 1w + value_type: FLOAT + description: 'The processor load is calculated as system CPU load divided by number of CPU cores.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 1f76e40a9bc84b71aadc880fa261dbed + name: 'Context switches per second' + key: system.cpu.switches + history: 1w + units: sps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: fc0f3803c4b24aefb2083cc8cb1ef7dd + name: 'CPU $2 time' + key: 'system.cpu.util[,idle]' + history: 1w + value_type: FLOAT + units: '%' + description: 'The time the CPU has spent doing nothing.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: b0589eb1d5f84c96b0caa9c16aade1d3 + name: 'CPU $2 time' + key: 'system.cpu.util[,interrupt]' + history: 1w + value_type: FLOAT + units: '%' + description: 'The amount of time the CPU has been servicing hardware interrupts.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: b8f6b840697642b992cbc516972a4582 + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + triggers: + - uuid: 21606f46feec459aba9f58b7908f5863 + expression: 'avg(/Template Proxmox-Host/system.cpu.util[,iowait],5m)>20' + 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: bb9cf5a8677541608a836cd2e463bc4f + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 25bc46e333524a3785ab00330b138c26 + name: 'CPU $2 time' + key: 'system.cpu.util[,softirq]' + history: 1w + value_type: FLOAT + units: '%' + description: 'The amount of time the CPU has been servicing software interrupts.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 9ed01e2326704e78a5bc6998a2b13b2e + name: 'CPU $2 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).' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 51524f8e8e9f4b269b0acee6a60ee073 + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: 7550ee46b369404b8922a29d1a220810 + name: 'CPU $2 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.' + request_method: POST + tags: + - tag: Application + value: CPU + - tag: Application + value: Performance + - uuid: a2d2eecd7b97455aa3caf3258bf3b541 + name: 'Host name' + key: system.hostname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + description: 'System host name.' + inventory_link: NAME + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + triggers: + - uuid: 77a8187796984138a46a9222a431a6fd + expression: '(last(/Template Proxmox-Host/system.hostname,#1)<>last(/Template Proxmox-Host/system.hostname,#2))>0' + name: 'Hostname was changed on {HOST.NAME}' + priority: INFO + - uuid: a41a381ce82f4864a2e25eb3fe042e5b + name: 'Host local time' + key: system.localtime + history: 1w + units: unixtime + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + - uuid: 0d8a924ee3064810ab6cd4b8017ba51d + name: 'Free swap space' + key: 'system.swap.size[,free]' + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Memory + - uuid: 65ac2e42087d44be91bf384998cb881c + name: 'Free swap space in %' + key: 'system.swap.size[,pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: Memory + triggers: + - uuid: 80032cf0de474ab3a81f85932d74c1e4 + expression: 'last(/Template Proxmox-Host/system.swap.size[,pfree])<50' + name: 'Lack of free swap space on {HOST.NAME}' + priority: WARNING + description: 'It probably means that the systems requires more physical memory.' + - uuid: 09a1d18a75444bb78d49f04aa0fd0421 + name: 'Total swap space' + key: 'system.swap.size[,total]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Memory + - uuid: 70d9338e2a0a436b9e171767bbd9c8ce + name: 'System information' + key: system.uname + delay: 1h + history: 1w + trends: '0' + value_type: CHAR + description: 'The information as normally returned by ''uname -a''.' + inventory_link: OS + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + triggers: + - uuid: 271d411baa6d41f9ba428db93cd657e6 + expression: '(last(/Template Proxmox-Host/system.uname,#1)<>last(/Template Proxmox-Host/system.uname,#2))>0' + name: 'Host information was changed on {HOST.NAME}' + priority: INFO + - uuid: 4980099c3b324f8a9a8f9d687ef2abbb + name: 'System uptime' + key: system.uptime + delay: 10m + history: 1w + units: uptime + request_method: POST + tags: + - tag: Application + value: General + - tag: Application + value: OS + triggers: + - uuid: 8db870603d444cbca8a184cc2f48a2e1 + expression: 'change(/Template Proxmox-Host/system.uptime)<0' + name: '{HOST.NAME} has just been restarted' + priority: INFO + - uuid: 8d2b1a44aae24f6a97fa2137f6270171 + name: 'Number of logged in users' + key: system.users.num + history: 1w + description: 'Number of users who are currently logged in.' + request_method: POST + tags: + - tag: Application + value: OS + - tag: Application + value: Security + - uuid: 1c5d3c9031c8496c88fe2bcb25f52f03 + name: 'Checksum of $1' + key: 'vfs.file.cksum[/etc/passwd]' + delay: 1h + history: 1w + request_method: POST + tags: + - tag: Application + value: Security + triggers: + - uuid: a25c8c3661e44716b21161187a350ebc + expression: '(last(/Template Proxmox-Host/vfs.file.cksum[/etc/passwd],#1)<>last(/Template Proxmox-Host/vfs.file.cksum[/etc/passwd],#2))>0' + name: '/etc/passwd has been changed on {HOST.NAME}' + priority: WARNING + - uuid: 9425f2ba1fe7442ba4a564da93da56a2 + name: 'Available memory' + key: 'vm.memory.size[available]' + history: 1w + units: B + description: 'Available memory is defined as free+cached+buffers memory.' + request_method: POST + tags: + - tag: Application + value: Memory + triggers: + - uuid: 1d346ec876854756b3c585b82589417c + expression: 'last(/Template Proxmox-Host/vm.memory.size[available])<20M' + name: 'Lack of available memory on server {HOST.NAME}' + priority: AVERAGE + - uuid: 9b126c0dd2f14ad3aeb9c63f43a00c55 + name: 'Total memory' + key: 'vm.memory.size[total]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Memory + discovery_rules: + - uuid: c53010c6e97b47d2bc7f323b9e5e92fd + name: 'Network interface discovery' + key: net.if.discovery + delay: 1h + filter: + conditions: + - macro: '{#IFNAME}' + value: '@Network interfaces for discovery' + formulaid: A + description: 'Discovery of network interfaces as defined in global regular expression "Network interfaces for discovery".' + item_prototypes: + - uuid: 6661a3aa399c4d848f5461a9af5cadcb + name: 'Incoming network traffic on $1' + key: 'net.if.in[{#IFNAME}]' + history: 1w + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + request_method: POST + tags: + - tag: Application + value: 'Network interfaces' + - uuid: 6860c5da56ca4c4ab7bef10160177c99 + name: 'Outgoing network traffic on $1' + key: 'net.if.out[{#IFNAME}]' + history: 1w + units: bps + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + - type: MULTIPLIER + parameters: + - '8' + request_method: POST + tags: + - tag: Application + value: 'Network interfaces' + graph_prototypes: + - uuid: 56a7804a9b9542b9b64b6bf50a810d29 + name: 'Network traffic on {#IFNAME}' + ymin_type_1: FIXED + graph_items: + - drawtype: GRADIENT_LINE + color: 00AA00 + item: + host: 'Template Proxmox-Host' + key: 'net.if.in[{#IFNAME}]' + - sortorder: '1' + drawtype: GRADIENT_LINE + color: 3333FF + item: + host: 'Template Proxmox-Host' + key: 'net.if.out[{#IFNAME}]' + request_method: POST + - uuid: f2213d1ec382460eae55783a73fc6df1 + name: 'Mounted filesystem discovery' + key: vfs.fs.discovery + delay: 1h + filter: + conditions: + - macro: '{#FSTYPE}' + value: '@File systems for discovery' + formulaid: A + description: 'Discovery of file systems of different types as defined in global regular expression "File systems for discovery".' + item_prototypes: + - uuid: 8e0dd20f26f945c8bd07e96fb11c7d06 + name: 'Free inodes on $1 (percentage)' + key: 'vfs.fs.inode[{#FSNAME},pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: Filesystems + trigger_prototypes: + - uuid: ded69d37655b45a38f89f7c107f0d056 + expression: 'last(/Template Proxmox-Host/vfs.fs.inode[{#FSNAME},pfree])<20' + name: 'Free inodes is less than 20% on volume {#FSNAME}' + priority: WARNING + - uuid: f43bcb6ad33f42338be17a6cae9b25b6 + name: 'Free disk space on $1' + key: 'vfs.fs.size[{#FSNAME},free]' + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Filesystems + - uuid: e9479d8fe3dc4432b01356814fbe617b + name: 'Free disk space on $1 (percentage)' + key: 'vfs.fs.size[{#FSNAME},pfree]' + history: 1w + value_type: FLOAT + units: '%' + request_method: POST + tags: + - tag: Application + value: Filesystems + trigger_prototypes: + - uuid: cf90ab00ea51462a97a1b646ee6e67b8 + expression: 'last(/Template Proxmox-Host/vfs.fs.size[{#FSNAME},pfree])<10' + name: 'Free disk space is less than 20% on volume {#FSNAME}' + priority: WARNING + - uuid: e4672c181f7645438433ee446af98119 + name: 'Total disk space on $1' + key: 'vfs.fs.size[{#FSNAME},total]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Filesystems + - uuid: 15b6bb1ce50d4bdab5b21601307f0e6b + name: 'Used disk space on $1' + key: 'vfs.fs.size[{#FSNAME},used]' + delay: 1h + history: 1w + units: B + request_method: POST + tags: + - tag: Application + value: Filesystems + graph_prototypes: + - uuid: 1607fd2d82454e4a9c68695acb592f54 + name: 'Disk space usage {#FSNAME}' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + graph_items: + - color: 00C800 + item: + host: 'Template Proxmox-Host' + key: 'vfs.fs.size[{#FSNAME},free]' + - sortorder: '1' + color: C80000 + type: GRAPH_SUM + item: + host: 'Template Proxmox-Host' + key: 'vfs.fs.size[{#FSNAME},total]' + request_method: POST + dashboards: + - uuid: ef8d74bc14aa4633bc2989ca9cb0617d + name: 'System performance' + pages: + - widgets: + - type: graph + width: '12' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template Proxmox-Host' + name: 'CPU load' + - type: graph + x: '12' + width: '12' + height: '5' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template Proxmox-Host' + name: 'CPU utilization' + - type: graph + 'y': '5' + width: '12' + height: '7' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template Proxmox-Host' + name: 'Memory usage' + - type: graph + x: '12' + 'y': '5' + width: '12' + height: '7' + fields: + - type: GRAPH + name: graphid + value: + host: 'Template Proxmox-Host' + name: 'Swap usage' + graphs: + - uuid: 625ce72ef1e242e7bb4c9d7161a4f6d0 + name: 'Apps Data Size' + graph_items: + - color: 6666FF + item: + host: 'Template Proxmox-Host' + key: dir_size.email + - sortorder: '1' + color: 33FF33 + item: + host: 'Template Proxmox-Host' + key: dir_size.lufi + - sortorder: '2' + color: FF3333 + item: + host: 'Template Proxmox-Host' + key: dir_size.matrix + - sortorder: '3' + color: CCCC00 + item: + host: 'Template Proxmox-Host' + key: dir_size.owncloud + - uuid: 56fbb2d1c85f434b824354de16012fff + name: 'CPU jumps' + graph_items: + - color: '009900' + item: + host: 'Template Proxmox-Host' + key: system.cpu.switches + - sortorder: '1' + color: '000099' + item: + host: 'Template Proxmox-Host' + key: system.cpu.intr + - uuid: f60fd6225544499f8a7912b2073f60d2 + name: 'CPU load' + ymin_type_1: FIXED + graph_items: + - color: 8BC34A + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.load[all,avg1]' + - sortorder: '1' + color: 039BE5 + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.load[all,avg5]' + - sortorder: '2' + color: F44336 + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.load[all,avg15]' + - uuid: 0aefef6247db470288f74eaefafdfe43 + name: 'CPU utilization' + show_triggers: 'NO' + type: STACKED + ymin_type_1: FIXED + ymax_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: FF5555 + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,steal]' + - sortorder: '1' + drawtype: FILLED_REGION + color: 55FF55 + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,softirq]' + - sortorder: '2' + drawtype: FILLED_REGION + color: '009999' + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,interrupt]' + - sortorder: '3' + drawtype: FILLED_REGION + color: '990099' + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,nice]' + - sortorder: '4' + drawtype: FILLED_REGION + color: '999900' + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,iowait]' + - sortorder: '5' + drawtype: FILLED_REGION + color: '990000' + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,system]' + - sortorder: '6' + drawtype: FILLED_REGION + color: '000099' + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,user]' + - sortorder: '7' + drawtype: FILLED_REGION + color: '009900' + item: + host: 'Template Proxmox-Host' + key: 'system.cpu.util[,idle]' + - uuid: bb195218041c43e2b3e9a014dc7782a9 + name: 'Memory usage' + ymin_type_1: FIXED + ymax_type_1: ITEM + ymax_item_1: + host: 'Template Proxmox-Host' + key: 'vm.memory.size[total]' + graph_items: + - drawtype: GRADIENT_LINE + color: 00C800 + item: + host: 'Template Proxmox-Host' + key: 'vm.memory.size[available]' + - uuid: 5269d07722ed40f5be8e65b8bedb53f0 + name: 'Swap usage' + width: '600' + height: '340' + show_work_period: 'NO' + show_triggers: 'NO' + type: PIE + show_3d: 'YES' + graph_items: + - color: AA0000 + type: GRAPH_SUM + item: + host: 'Template Proxmox-Host' + key: 'system.swap.size[,total]' + - sortorder: '1' + color: 00AA00 + item: + host: 'Template Proxmox-Host' + key: 'system.swap.size[,free]' diff --git a/Template_Nginx.yaml b/Template_Nginx.yaml new file mode 100644 index 0000000..79cbe11 --- /dev/null +++ b/Template_Nginx.yaml @@ -0,0 +1,156 @@ +zabbix_export: + version: '6.4' + template_groups: + - uuid: 7df96b18c230490a9a0a9e2307226338 + name: Templates + templates: + - uuid: 1b0a936b34fe4b9b82ba136a3fc3c99c + template: Template_Nginx + name: Template_Nginx + groups: + - name: Templates + items: + - uuid: 8e977105d75b425aa7c6501a9750bf0f + name: 'Nginx $1/sec' + key: 'nginx[accepted_connections,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: Application + value: Nginx + - uuid: 7e0164d3e9ed4e168888b0d7d9b3150b + name: 'Nginx $1' + key: 'nginx[active_connections,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + tags: + - tag: Application + value: Nginx + - uuid: e895f25698d148708943d32a8c0e856b + name: 'Nginx $1/sec' + key: 'nginx[handled_connections,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: Application + value: Nginx + - uuid: 3f5317b7dd0944148346cfec0f7891e0 + name: 'Nginx $1/sec' + key: 'nginx[handled_requests,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + preprocessing: + - type: CHANGE_PER_SECOND + parameters: + - '' + tags: + - tag: Application + value: Nginx + - uuid: f51dd36d413b4b0dafae710f35902c5e + name: 'Nginx $1' + key: 'nginx[reading,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + tags: + - tag: Application + value: Nginx + - uuid: 037de810ee6041eca0b057bf145f71f8 + name: 'Nginx $1' + key: 'nginx[waiting,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + tags: + - tag: Application + value: Nginx + - uuid: c4fa65b0b7024b7ea5d9366c1b73bbff + name: 'Nginx $1' + key: 'nginx[writing,{$NGINX_STATUS_URL}]' + history: 30d + value_type: FLOAT + tags: + - tag: Application + value: Nginx + - uuid: e2823ec678684ebca2184bf75bf92117 + name: 'Number of $1 process' + snmp_oid: interfaces.ifTable.ifEntry.ifInOctets.1 + key: 'proc.num[nginx]' + delay: 5m + history: 30d + triggers: + - uuid: e210309656f2473eb35b157074e4e203 + expression: 'last(/Template_Nginx/proc.num[nginx])=0' + name: 'Nginx is not running on {HOSTNAME}' + priority: HIGH + description: | + Nginx is not running. + + It has been stopped / shutdown or has crashed. + Check on the server for more details: + - w / last + - dmesg logs + - /var/log/messages + - nginx error logs + macros: + - macro: '{$NGINX_STATUS_URL}' + value: 'http://127.0.0.1:10061/nginx_status' + graphs: + - uuid: fb04c72c70274d37988493531ec1ab38 + name: 'Nginx - Connections and Requests status' + show_work_period: 'NO' + show_triggers: 'NO' + ymin_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: FF9999 + calc_fnc: MAX + item: + host: Template_Nginx + key: 'nginx[accepted_connections,{$NGINX_STATUS_URL}]' + - sortorder: '1' + drawtype: BOLD_LINE + color: '990000' + calc_fnc: MAX + item: + host: Template_Nginx + key: 'nginx[handled_connections,{$NGINX_STATUS_URL}]' + - sortorder: '2' + color: '009900' + calc_fnc: MAX + item: + host: Template_Nginx + key: 'nginx[handled_requests,{$NGINX_STATUS_URL}]' + - uuid: 7d1b941135824797a08fe6a6af11b5fc + name: 'Nginx - Threads status' + show_work_period: 'NO' + show_triggers: 'NO' + type: STACKED + ymin_type_1: FIXED + graph_items: + - drawtype: FILLED_REGION + color: '990000' + calc_fnc: MAX + item: + host: Template_Nginx + key: 'nginx[writing,{$NGINX_STATUS_URL}]' + - sortorder: '1' + drawtype: FILLED_REGION + color: '999900' + calc_fnc: MAX + item: + host: Template_Nginx + key: 'nginx[reading,{$NGINX_STATUS_URL}]' + - sortorder: '2' + drawtype: FILLED_REGION + color: '009900' + calc_fnc: MAX + item: + host: Template_Nginx + key: 'nginx[waiting,{$NGINX_STATUS_URL}]'