Dostupná řešení
Azure PostgreSQL Flexible Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 7.4 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL flexible servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$HTTP.TLS.VERIFY} | TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure PostgreSQL Flexible Server", e.g. {$HTTP.TLS.VERIFY:"Azure PostgreSQL Flexible Server"}. |
full |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Connections succeeded | The count of succeeded connections. |
Dependent item | azure.db.pgsql.connections.succeeded Preprocessing
|
| Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Storage free | Free storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.free Preprocessing
|
| Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| CPU credits remaining | The total number of credits available to burst. |
Dependent item | azure.db.pgsql.cpu.credits.remaining Preprocessing
|
| CPU credits consumed | The total number of credits consumed by the database server. |
Dependent item | azure.db.pgsql.cpu.credits.consumed Preprocessing
|
| Data disk queue depth | The number of outstanding I/O operations to the data disk. |
Dependent item | azure.db.pgsql.disk.queue.depth Preprocessing
|
| Data disk IOPS | I/O operations per second. |
Dependent item | azure.db.pgsql.iops Preprocessing
|
| Data disk read IOPS | The number of the data disk I/O read operations per second. |
Dependent item | azure.db.pgsql.iops.read Preprocessing
|
| Data disk write IOPS | The number of the data disk I/O write operations per second. |
Dependent item | azure.db.pgsql.iops.write Preprocessing
|
| Data disk read Bps | Bytes read per second from the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.read Preprocessing
|
| Data disk write Bps | Bytes written per second to the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.write Preprocessing
|
| Transaction log storage used | The storage space used by transaction log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.txlogs.used Preprocessing
|
| Maximum used transaction IDs | The maximum number of used transaction IDs. |
Dependent item | azure.db.pgsql.txid.used.max Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL Flexible: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL Flexible: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL Flexible: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL Flexible: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL Flexible: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL Flexible: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL Flexible: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL Flexible: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Flexible Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 7.2 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL flexible servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Connections succeeded | The count of succeeded connections. |
Dependent item | azure.db.pgsql.connections.succeeded Preprocessing
|
| Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Storage free | Free storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.free Preprocessing
|
| Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| CPU credits remaining | The total number of credits available to burst. |
Dependent item | azure.db.pgsql.cpu.credits.remaining Preprocessing
|
| CPU credits consumed | The total number of credits consumed by the database server. |
Dependent item | azure.db.pgsql.cpu.credits.consumed Preprocessing
|
| Data disk queue depth | The number of outstanding I/O operations to the data disk. |
Dependent item | azure.db.pgsql.disk.queue.depth Preprocessing
|
| Data disk IOPS | I/O operations per second. |
Dependent item | azure.db.pgsql.iops Preprocessing
|
| Data disk read IOPS | The number of the data disk I/O read operations per second. |
Dependent item | azure.db.pgsql.iops.read Preprocessing
|
| Data disk write IOPS | The number of the data disk I/O write operations per second. |
Dependent item | azure.db.pgsql.iops.write Preprocessing
|
| Data disk read Bps | Bytes read per second from the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.read Preprocessing
|
| Data disk write Bps | Bytes written per second to the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.write Preprocessing
|
| Transaction log storage used | The storage space used by transaction log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.txlogs.used Preprocessing
|
| Maximum used transaction IDs | The maximum number of used transaction IDs. |
Dependent item | azure.db.pgsql.txid.used.max Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL Flexible: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL Flexible: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL Flexible: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL Flexible: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL Flexible: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL Flexible: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL Flexible: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL Flexible: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Flexible Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 7.0 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL flexible servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
| {$HTTP.TLS.VERIFY} | TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure PostgreSQL Flexible Server", e.g. {$HTTP.TLS.VERIFY:"Azure PostgreSQL Flexible Server"}. |
full |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Connections succeeded | The count of succeeded connections. |
Dependent item | azure.db.pgsql.connections.succeeded Preprocessing
|
| Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Storage free | Free storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.free Preprocessing
|
| Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| CPU credits remaining | The total number of credits available to burst. |
Dependent item | azure.db.pgsql.cpu.credits.remaining Preprocessing
|
| CPU credits consumed | The total number of credits consumed by the database server. |
Dependent item | azure.db.pgsql.cpu.credits.consumed Preprocessing
|
| Data disk queue depth | The number of outstanding I/O operations to the data disk. |
Dependent item | azure.db.pgsql.disk.queue.depth Preprocessing
|
| Data disk IOPS | I/O operations per second. |
Dependent item | azure.db.pgsql.iops Preprocessing
|
| Data disk read IOPS | The number of the data disk I/O read operations per second. |
Dependent item | azure.db.pgsql.iops.read Preprocessing
|
| Data disk write IOPS | The number of the data disk I/O write operations per second. |
Dependent item | azure.db.pgsql.iops.write Preprocessing
|
| Data disk read Bps | Bytes read per second from the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.read Preprocessing
|
| Data disk write Bps | Bytes written per second to the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.write Preprocessing
|
| Transaction log storage used | The storage space used by transaction log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.txlogs.used Preprocessing
|
| Maximum used transaction IDs | The maximum number of used transaction IDs. |
Dependent item | azure.db.pgsql.txid.used.max Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL Flexible: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL Flexible: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL Flexible: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL Flexible: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL Flexible: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL Flexible: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL Flexible: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL Flexible: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Flexible Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 6.4 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL flexible servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Azure PostgreSQL: Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Azure PostgreSQL: Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Azure PostgreSQL: Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Azure PostgreSQL: Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Azure PostgreSQL: Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Azure PostgreSQL: Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Azure PostgreSQL: Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Azure PostgreSQL: Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Azure PostgreSQL: Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Azure PostgreSQL: Connections succeeded | The count of succeeded connections. |
Dependent item | azure.db.pgsql.connections.succeeded Preprocessing
|
| Azure PostgreSQL: Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Azure PostgreSQL: Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Azure PostgreSQL: Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Azure PostgreSQL: Storage free | Free storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.free Preprocessing
|
| Azure PostgreSQL: Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Azure PostgreSQL: CPU credits remaining | The total number of credits available to burst. |
Dependent item | azure.db.pgsql.cpu.credits.remaining Preprocessing
|
| Azure PostgreSQL: CPU credits consumed | The total number of credits consumed by the database server. |
Dependent item | azure.db.pgsql.cpu.credits.consumed Preprocessing
|
| Azure PostgreSQL: Data disk queue depth | The number of outstanding I/O operations to the data disk. |
Dependent item | azure.db.pgsql.disk.queue.depth Preprocessing
|
| Azure PostgreSQL: Data disk IOPS | I/O operations per second. |
Dependent item | azure.db.pgsql.iops Preprocessing
|
| Azure PostgreSQL: Data disk read IOPS | The number of the data disk I/O read operations per second. |
Dependent item | azure.db.pgsql.iops.read Preprocessing
|
| Azure PostgreSQL: Data disk write IOPS | The number of the data disk I/O write operations per second. |
Dependent item | azure.db.pgsql.iops.write Preprocessing
|
| Azure PostgreSQL: Data disk read Bps | Bytes read per second from the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.read Preprocessing
|
| Azure PostgreSQL: Data disk write Bps | Bytes written per second to the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.write Preprocessing
|
| Azure PostgreSQL: Transaction log storage used | The storage space used by transaction log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.txlogs.used Preprocessing
|
| Azure PostgreSQL: Maximum used transaction IDs | The maximum number of used transaction IDs. |
Dependent item | azure.db.pgsql.txid.used.max Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL flexible server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. It works without any external scripts and uses the script item.
Requirements
For Zabbix version: 6.2 and higher.
Setup
See Zabbix template operation for basic instructions.
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure macros
{$AZURE.APP_ID},{$AZURE.PASSWORD},{$AZURE.TENANT_ID},{$AZURE.SUBSCRIPTION_ID}, and{$AZURE.RESOURCE_ID}.
Configuration
No specific Zabbix configuration is required.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.APP_ID} | The AppID of Microsoft Azure. |
`` |
| {$AZURE.DATA.TIMEOUT} | A response timeout for an API. |
60s |
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of the CPU utilization expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of the memory utilization expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of the storage utilization expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of the storage utilization expressed in %. |
80 |
| {$AZURE.PASSWORD} | Microsoft Azure password. |
`` |
| {$AZURE.RESOURCE_ID} | Microsoft Azure PostgreSQL server ID. |
`` |
| {$AZURE.SUBSCRIPTION_ID} | Microsoft Azure subscription ID. |
`` |
| {$AZURE.TENANT_ID} | Microsoft Azure tenant ID. |
`` |
Template links
There are no template links in this template.
Discovery rules
Items collected
| Group | Name | Description | Type | Key and additional info |
|---|---|---|---|---|
| Azure | Azure PostgreSQL: Get data | The result of API requests is expressed in the JSON. |
SCRIPT | azure.db.pgsql.data.get Expression: The text is too long. Please see the template. |
| Azure | Azure PostgreSQL: Get errors | A list of errors from API requests. |
DEPENDENT | azure.db.pgsql.data.errors Preprocessing: - JSONPATH: - DISCARD_UNCHANGED_HEARTBEAT: |
| Azure | Azure PostgreSQL: Availability state | The availability status of the resource. |
DEPENDENT | azure.db.pgsql.availability.state Preprocessing: - JSONPATH: ⛔️ON_FAIL: - STR_REPLACE: - STR_REPLACE: - STR_REPLACE: - STR_REPLACE: - IN_RANGE: ⛔️ON_FAIL: - DISCARD_UNCHANGED_HEARTBEAT: |
| Azure | Azure PostgreSQL: Availability status detailed | The summary description of the availability status. |
DEPENDENT | azure.db.pgsql.availability.details Preprocessing: - JSONPATH: - DISCARD_UNCHANGED_HEARTBEAT: |
| Azure | Azure PostgreSQL: Percentage CPU | The CPU percent of a host. |
DEPENDENT | azure.db.pgsql.cpu.percentage Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Memory utilization | The memory percent of a host. |
DEPENDENT | azure.db.pgsql.memory.percentage Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Network out | Network outbound traffic across the active connections. |
DEPENDENT | azure.db.pgsql.network.egress Preprocessing: - JSONPATH: - MULTIPLIER: |
| Azure | Azure PostgreSQL: Network in | Network inbound traffic across the active connections. |
DEPENDENT | azure.db.pgsql.network.ingress Preprocessing: - JSONPATH: - MULTIPLIER: |
| Azure | Azure PostgreSQL: Connections active | The count of active connections. |
DEPENDENT | azure.db.pgsql.connections.active Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Connections succeeded | The count of succeeded connections. |
DEPENDENT | azure.db.pgsql.connections.succeeded Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Connections failed | The count of failed connections. |
DEPENDENT | azure.db.pgsql.connections.failed Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Storage percent | The storage utilization expressed in %. |
DEPENDENT | azure.db.pgsql.storage.percent Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Storage used | Used storage space expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.used Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Storage free | Free storage space expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.free Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Backup storage used | Used backup storage expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.backup.used Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: CPU credits remaining | The total number of credits available to burst. |
DEPENDENT | azure.db.pgsql.cpu.credits.remaining Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: CPU credits consumed | The total number of credits consumed by the database server. |
DEPENDENT | azure.db.pgsql.cpu.credits.consumed Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Data disk queue depth | The number of outstanding I/O operations to the data disk. |
DEPENDENT | azure.db.pgsql.disk.queue.depth Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Data disk IOPS | I/O Operations per second. |
DEPENDENT | azure.db.pgsql.iops Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Data disk read IOPS | The number of the data disk I/O read operations per second. |
DEPENDENT | azure.db.pgsql.iops.read Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Data disk write IOPS | The number of the data disk I/O write operations per second. |
DEPENDENT | azure.db.pgsql.iops.write Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Data disk read Bps | Bytes read per second from the data disk during the monitoring period. |
DEPENDENT | azure.db.pgsql.disk.bps.read Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Data disk write Bps | Bytes written per second to the data disk during the monitoring period. |
DEPENDENT | azure.db.pgsql.disk.bps.write Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Transaction log storage used | The storage space used by a transaction log expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.txlogs.used Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Maximum used transaction IDs | The maximum number of used transaction IDs. |
DEPENDENT | azure.db.pgsql.txid.used.max Preprocessing: - JSONPATH: |
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.data.errors))>0 |
AVERAGE | |
| Azure PostgreSQL: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.availability.state)=2 |
HIGH | |
| Azure PostgreSQL: PostgreSQL server is degraded | The resource is in degraded state. |
last(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.availability.state)=1 |
AVERAGE | |
| Azure PostgreSQL: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.availability.state)=3 |
WARNING | |
| Azure PostgreSQL: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
HIGH | |
| Azure PostgreSQL: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
AVERAGE | |
| Azure PostgreSQL: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
AVERAGE | |
| Azure PostgreSQL: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL flexible server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
WARNING |
Feedback
Please report any issues with the template at https://support.zabbix.com.
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums.
Azure PostgreSQL Flexible Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL flexible servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 6.0 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL flexible servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Azure PostgreSQL: Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Azure PostgreSQL: Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Azure PostgreSQL: Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Azure PostgreSQL: Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Azure PostgreSQL: Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Azure PostgreSQL: Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Azure PostgreSQL: Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Azure PostgreSQL: Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Azure PostgreSQL: Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Azure PostgreSQL: Connections succeeded | The count of succeeded connections. |
Dependent item | azure.db.pgsql.connections.succeeded Preprocessing
|
| Azure PostgreSQL: Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Azure PostgreSQL: Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Azure PostgreSQL: Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Azure PostgreSQL: Storage free | Free storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.free Preprocessing
|
| Azure PostgreSQL: Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Azure PostgreSQL: CPU credits remaining | The total number of credits available to burst. |
Dependent item | azure.db.pgsql.cpu.credits.remaining Preprocessing
|
| Azure PostgreSQL: CPU credits consumed | The total number of credits consumed by the database server. |
Dependent item | azure.db.pgsql.cpu.credits.consumed Preprocessing
|
| Azure PostgreSQL: Data disk queue depth | The number of outstanding I/O operations to the data disk. |
Dependent item | azure.db.pgsql.disk.queue.depth Preprocessing
|
| Azure PostgreSQL: Data disk IOPS | I/O operations per second. |
Dependent item | azure.db.pgsql.iops Preprocessing
|
| Azure PostgreSQL: Data disk read IOPS | The number of the data disk I/O read operations per second. |
Dependent item | azure.db.pgsql.iops.read Preprocessing
|
| Azure PostgreSQL: Data disk write IOPS | The number of the data disk I/O write operations per second. |
Dependent item | azure.db.pgsql.iops.write Preprocessing
|
| Azure PostgreSQL: Data disk read Bps | Bytes read per second from the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.read Preprocessing
|
| Azure PostgreSQL: Data disk write Bps | Bytes written per second to the data disk during the monitoring period. |
Dependent item | azure.db.pgsql.disk.bps.write Preprocessing
|
| Azure PostgreSQL: Transaction log storage used | The storage space used by transaction log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.txlogs.used Preprocessing
|
| Azure PostgreSQL: Maximum used transaction IDs | The maximum number of used transaction IDs. |
Dependent item | azure.db.pgsql.txid.used.max Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Flexible Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Single Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 7.4 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$HTTP.TLS.VERIFY} | TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure PostgreSQL Single Server", e.g. {$HTTP.TLS.VERIFY:"Azure PostgreSQL Single Server"}. |
full |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| IO consumption percent | The consumption percent of I/O. |
Dependent item | azure.db.pgsql.io.consumption.percent Preprocessing
|
| Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Storage limit | The storage limit, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.limit Preprocessing
|
| Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Replication lag | The replication lag, expressed in seconds. |
Dependent item | azure.db.pgsql.replica.log.delay Preprocessing
|
| Max lag across replicas in bytes | Lag for the most lagging replica, expressed in bytes. |
Dependent item | azure.db.pgsql.replica.log.delay.bytes Preprocessing
|
| Server log storage percent | The storage utilization by server log, expressed in %. |
Dependent item | azure.db.pgsql.storage.server.log.percent Preprocessing
|
| Server log storage used | The storage space used by server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.used Preprocessing
|
| Server log storage limit | The storage limit of server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.limit Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL Single: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL Single: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL Single: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL Single: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL Single: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL Single: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL Single: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL Single: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Single Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 7.2 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| IO consumption percent | The consumption percent of I/O. |
Dependent item | azure.db.pgsql.io.consumption.percent Preprocessing
|
| Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Storage limit | The storage limit, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.limit Preprocessing
|
| Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Replication lag | The replication lag, expressed in seconds. |
Dependent item | azure.db.pgsql.replica.log.delay Preprocessing
|
| Max lag across replicas in bytes | Lag for the most lagging replica, expressed in bytes. |
Dependent item | azure.db.pgsql.replica.log.delay.bytes Preprocessing
|
| Server log storage percent | The storage utilization by server log, expressed in %. |
Dependent item | azure.db.pgsql.storage.server.log.percent Preprocessing
|
| Server log storage used | The storage space used by server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.used Preprocessing
|
| Server log storage limit | The storage limit of server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.limit Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL Single: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL Single: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL Single: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL Single: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL Single: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL Single: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL Single: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL Single: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Single Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 7.0 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
| {$HTTP.TLS.VERIFY} | TLS certificate verification for script items: "none" - disabled, "peer" - verify the certificate chain and expiration, "full" - full verification. Any other value enables full verification. To override the setting for this template only, define the macro with the context "Azure PostgreSQL Single Server", e.g. {$HTTP.TLS.VERIFY:"Azure PostgreSQL Single Server"}. |
full |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| IO consumption percent | The consumption percent of I/O. |
Dependent item | azure.db.pgsql.io.consumption.percent Preprocessing
|
| Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Storage limit | The storage limit, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.limit Preprocessing
|
| Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Replication lag | The replication lag, expressed in seconds. |
Dependent item | azure.db.pgsql.replica.log.delay Preprocessing
|
| Max lag across replicas in bytes | Lag for the most lagging replica, expressed in bytes. |
Dependent item | azure.db.pgsql.replica.log.delay.bytes Preprocessing
|
| Server log storage percent | The storage utilization by server log, expressed in %. |
Dependent item | azure.db.pgsql.storage.server.log.percent Preprocessing
|
| Server log storage used | The storage space used by server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.used Preprocessing
|
| Server log storage limit | The storage limit of server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.limit Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL Single: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL Single: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL Single: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL Single: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL Single: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL Single: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL Single: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL Single: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL Single Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 6.4 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Azure PostgreSQL: Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Azure PostgreSQL: Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Azure PostgreSQL: Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Azure PostgreSQL: Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Azure PostgreSQL: Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Azure PostgreSQL: Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Azure PostgreSQL: Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Azure PostgreSQL: Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Azure PostgreSQL: Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Azure PostgreSQL: Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Azure PostgreSQL: IO consumption percent | The consumption percent of I/O. |
Dependent item | azure.db.pgsql.io.consumption.percent Preprocessing
|
| Azure PostgreSQL: Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Azure PostgreSQL: Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Azure PostgreSQL: Storage limit | The storage limit, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.limit Preprocessing
|
| Azure PostgreSQL: Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Azure PostgreSQL: Replication lag | The replication lag, expressed in seconds. |
Dependent item | azure.db.pgsql.replica.log.delay Preprocessing
|
| Azure PostgreSQL: Max lag across replicas in bytes | Lag for the most lagging replica, expressed in bytes. |
Dependent item | azure.db.pgsql.replica.log.delay.bytes Preprocessing
|
| Azure PostgreSQL: Server log storage percent | The storage utilization by server log, expressed in %. |
Dependent item | azure.db.pgsql.storage.server.log.percent Preprocessing
|
| Azure PostgreSQL: Server log storage used | The storage space used by server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.used Preprocessing
|
| Azure PostgreSQL: Server log storage limit | The storage limit of server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.limit Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |
Azure PostgreSQL single server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. It works without any external scripts and uses the script item.
Requirements
For Zabbix version: 6.2 and higher.
Setup
See Zabbix template operation for basic instructions.
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure macros
{$AZURE.APP_ID},{$AZURE.PASSWORD},{$AZURE.TENANT_ID},{$AZURE.SUBSCRIPTION_ID}, and{$AZURE.RESOURCE_ID}.
Configuration
No specific Zabbix configuration is required.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.APP_ID} | The AppID of Microsoft Azure. |
`` |
| {$AZURE.DATA.TIMEOUT} | A response timeout for an API. |
60s |
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of the CPU utilization expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of the memory utilization expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of the storage utilization expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of the storage utilization expressed in %. |
80 |
| {$AZURE.PASSWORD} | Microsoft Azure password. |
`` |
| {$AZURE.RESOURCE_ID} | Microsoft Azure PostgreSQL server ID. |
`` |
| {$AZURE.SUBSCRIPTION_ID} | Microsoft Azure subscription ID. |
`` |
| {$AZURE.TENANT_ID} | Microsoft Azure tenant ID. |
`` |
Template links
There are no template links in this template.
Discovery rules
Items collected
| Group | Name | Description | Type | Key and additional info |
|---|---|---|---|---|
| Azure | Azure PostgreSQL: Get data | The result of API requests is expressed in the JSON. |
SCRIPT | azure.db.pgsql.data.get Expression: The text is too long. Please see the template. |
| Azure | Azure PostgreSQL: Get errors | A list of errors from API requests. |
DEPENDENT | azure.db.pgsql.data.errors Preprocessing: - JSONPATH: - DISCARD_UNCHANGED_HEARTBEAT: |
| Azure | Azure PostgreSQL: Availability state | The availability status of the resource. |
DEPENDENT | azure.db.pgsql.availability.state Preprocessing: - JSONPATH: ⛔️ON_FAIL: - STR_REPLACE: - STR_REPLACE: - STR_REPLACE: - STR_REPLACE: - IN_RANGE: ⛔️ON_FAIL: - DISCARD_UNCHANGED_HEARTBEAT: |
| Azure | Azure PostgreSQL: Availability status detailed | The summary description of the availability status. |
DEPENDENT | azure.db.pgsql.availability.details Preprocessing: - JSONPATH: - DISCARD_UNCHANGED_HEARTBEAT: |
| Azure | Azure PostgreSQL: Percentage CPU | The CPU percent of a host. |
DEPENDENT | azure.db.pgsql.cpu.percentage Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Memory utilization | The memory percent of a host. |
DEPENDENT | azure.db.pgsql.memory.percentage Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Network out | Network outbound traffic across the active connections. |
DEPENDENT | azure.db.pgsql.network.egress Preprocessing: - JSONPATH: ⛔️ON_FAIL: - MULTIPLIER: |
| Azure | Azure PostgreSQL: Network in | Network inbound traffic across the active connections. |
DEPENDENT | azure.db.pgsql.network.ingress Preprocessing: - JSONPATH: ⛔️ON_FAIL: - MULTIPLIER: |
| Azure | Azure PostgreSQL: Connections active | The count of active connections. |
DEPENDENT | azure.db.pgsql.connections.active Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Connections failed | The count of failed connections. |
DEPENDENT | azure.db.pgsql.connections.failed Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: IO consumption percent | The IO Percent. |
DEPENDENT | azure.db.pgsql.io.consumption.percent Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Storage percent | The storage utilization expressed in %. |
DEPENDENT | azure.db.pgsql.storage.percent Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Storage used | Used storage space expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.used Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Storage limit | The storage limit expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.limit Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Backup storage used | Used backup storage expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.backup.used Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Replication lag | The replication lag expressed in seconds. |
DEPENDENT | azure.db.pgsql.replica.log.delay Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Max lag across replicas in bytes | Lag expressed in bytes for the most lagging replica. |
DEPENDENT | azure.db.pgsql.replica.log.delay.bytes Preprocessing: - JSONPATH: ⛔️ON_FAIL: |
| Azure | Azure PostgreSQL: Server log storage percent | The storage utilization by a server log expressed in %. |
DEPENDENT | azure.db.pgsql.storage.server.log.percent Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Server log storage used | The storage space used by a server log expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.server.log.used Preprocessing: - JSONPATH: |
| Azure | Azure PostgreSQL: Server log storage limit | The storage limit of a server log expressed in bytes. |
DEPENDENT | azure.db.pgsql.storage.server.log.limit Preprocessing: - JSONPATH: |
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.data.errors))>0 |
AVERAGE | |
| Azure PostgreSQL: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.availability.state)=2 |
HIGH | |
| Azure PostgreSQL: PostgreSQL server is degraded | The resource is in degraded state. |
last(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.availability.state)=1 |
AVERAGE | |
| Azure PostgreSQL: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.availability.state)=3 |
WARNING | |
| Azure PostgreSQL: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
HIGH | |
| Azure PostgreSQL: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
AVERAGE | |
| Azure PostgreSQL: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
AVERAGE | |
| Azure PostgreSQL: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL single server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
WARNING |
Feedback
Please report any issues with the template at https://support.zabbix.com.
You can also provide feedback, discuss the template, or ask for help at ZABBIX forums.
Azure PostgreSQL Single Server by HTTP
Overview
This template is designed to monitor Microsoft Azure PostgreSQL servers by HTTP. It works without any external scripts and uses the script item.
Requirements
Zabbix version: 6.0 and higher.
Tested versions
This template has been tested on:
- Microsoft Azure PostgreSQL servers
Configuration
Zabbix should be configured according to the instructions in the Templates out of the box section.
Setup
-
Create an Azure service principal via the Azure command-line interface (Azure CLI) for your subscription.
az ad sp create-for-rbac --name zabbix --role reader --scope /subscriptions/<subscription_id>
See Azure documentation for more details.
- Link the template to a host.
- Configure the macros:
{$AZURE.APP.ID},{$AZURE.PASSWORD},{$AZURE.TENANT.ID},{$AZURE.SUBSCRIPTION.ID}, and{$AZURE.RESOURCE.ID}.
Macros used
| Name | Description | Default |
|---|---|---|
| {$AZURE.PROXY} | Sets the HTTP proxy value. If this macro is empty, then no proxy is used. |
|
| {$AZURE.APP.ID} | The App ID of Microsoft Azure. |
|
| {$AZURE.PASSWORD} | Microsoft Azure password. |
|
| {$AZURE.DATA.TIMEOUT} | API response timeout. |
15s |
| {$AZURE.TENANT.ID} | Microsoft Azure tenant ID. |
|
| {$AZURE.SUBSCRIPTION.ID} | Microsoft Azure subscription ID. |
|
| {$AZURE.RESOURCE.ID} | Microsoft Azure PostgreSQL server ID. |
|
| {$AZURE.DB.CPU.UTIL.CRIT} | The critical threshold of CPU utilization, expressed in %. |
90 |
| {$AZURE.DB.MEMORY.UTIL.CRIT} | The critical threshold of memory utilization, expressed in %. |
90 |
| {$AZURE.DB.STORAGE.PUSED.WARN} | The warning threshold of storage utilization, expressed in %. |
80 |
| {$AZURE.DB.STORAGE.PUSED.CRIT} | The critical threshold of storage utilization, expressed in %. |
90 |
Items
| Name | Description | Type | Key and additional info |
|---|---|---|---|
| Azure PostgreSQL: Get data | The result of API requests is expressed in the JSON. |
Script | azure.db.pgsql.data.get |
| Azure PostgreSQL: Get errors | A list of errors from API requests. |
Dependent item | azure.db.pgsql.data.errors Preprocessing
|
| Azure PostgreSQL: Availability state | The availability status of the resource. |
Dependent item | azure.db.pgsql.availability.state Preprocessing
|
| Azure PostgreSQL: Availability status detailed | The summary description of the availability status. |
Dependent item | azure.db.pgsql.availability.details Preprocessing
|
| Azure PostgreSQL: Percentage CPU | The CPU percent of a host. |
Dependent item | azure.db.pgsql.cpu.percentage Preprocessing
|
| Azure PostgreSQL: Memory utilization | The memory percent of a host. |
Dependent item | azure.db.pgsql.memory.percentage Preprocessing
|
| Azure PostgreSQL: Network out | The network outbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.egress Preprocessing
|
| Azure PostgreSQL: Network in | The network inbound traffic across the active connections. |
Dependent item | azure.db.pgsql.network.ingress Preprocessing
|
| Azure PostgreSQL: Connections active | The count of active connections. |
Dependent item | azure.db.pgsql.connections.active Preprocessing
|
| Azure PostgreSQL: Connections failed | The count of failed connections. |
Dependent item | azure.db.pgsql.connections.failed Preprocessing
|
| Azure PostgreSQL: IO consumption percent | The consumption percent of I/O. |
Dependent item | azure.db.pgsql.io.consumption.percent Preprocessing
|
| Azure PostgreSQL: Storage percent | The storage utilization, expressed in %. |
Dependent item | azure.db.pgsql.storage.percent Preprocessing
|
| Azure PostgreSQL: Storage used | Used storage space, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.used Preprocessing
|
| Azure PostgreSQL: Storage limit | The storage limit, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.limit Preprocessing
|
| Azure PostgreSQL: Backup storage used | Used backup storage, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.backup.used Preprocessing
|
| Azure PostgreSQL: Replication lag | The replication lag, expressed in seconds. |
Dependent item | azure.db.pgsql.replica.log.delay Preprocessing
|
| Azure PostgreSQL: Max lag across replicas in bytes | Lag for the most lagging replica, expressed in bytes. |
Dependent item | azure.db.pgsql.replica.log.delay.bytes Preprocessing
|
| Azure PostgreSQL: Server log storage percent | The storage utilization by server log, expressed in %. |
Dependent item | azure.db.pgsql.storage.server.log.percent Preprocessing
|
| Azure PostgreSQL: Server log storage used | The storage space used by server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.used Preprocessing
|
| Azure PostgreSQL: Server log storage limit | The storage limit of server log, expressed in bytes. |
Dependent item | azure.db.pgsql.storage.server.log.limit Preprocessing
|
Triggers
| Name | Description | Expression | Severity | Dependencies and additional info |
|---|---|---|---|---|
| Azure PostgreSQL: There are errors in requests to API | Zabbix has received errors in response to API requests. |
length(last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.data.errors))>0 |
Average | |
| Azure PostgreSQL: PostgreSQL server is unavailable | The resource state is unavailable. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=2 |
High | |
| Azure PostgreSQL: PostgreSQL server is degraded | The resource is in a degraded state. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=1 |
Average | |
| Azure PostgreSQL: PostgreSQL server is in unknown state | The resource state is unknown. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.availability.state)=3 |
Warning | |
| Azure PostgreSQL: High CPU utilization | The CPU utilization is too high. The system might be slow to respond. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.cpu.percentage,5m)>{$AZURE.DB.CPU.UTIL.CRIT} |
High | |
| Azure PostgreSQL: High memory utilization | The system is running out of free memory. |
min(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.memory.percentage,5m)>{$AZURE.DB.MEMORY.UTIL.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is critically low | Critical utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.CRIT} |
Average | |
| Azure PostgreSQL: Storage space is low | High utilization of the storage space. |
last(/Azure PostgreSQL Single Server by HTTP/azure.db.pgsql.storage.percent)>{$AZURE.DB.STORAGE.PUSED.WARN} |
Warning |