# Azure by HTTP
## Overview
This template is designed to monitor Microsoft Azure by HTTP.
It works without any external scripts and uses the script item.
Currently the template supports the discovery of Virtual Machines (VMs), Storage accounts, Microsoft SQL, MySQL, and PostgreSQL servers.
## Requirements
For Zabbix version: 7.0 and higher.
## Setup
> See [Zabbix template operation](https://www.zabbix.com/documentation/7.0/manual/config/templates_out_of_the_box/http) for basic instructions.
1. 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](https://docs.microsoft.com/en-us/cli/azure/create-an-azure-service-principal-azure-cli) for more details.
2. Link the template to a host.
3. Configure the macros: `{$AZURE.APP.ID}`, `{$AZURE.PASSWORD}`, `{$AZURE.TENANT.ID}`, and `{$AZURE.SUBSCRIPTION.ID}`.
## Configuration
No specific Zabbix configuration is required.
### Macros used
|Name|Description|Default|
|----|-----------|-------|
|{$AZURE.APP.ID} |<p>The App ID of Microsoft Azure.</p> |`` |
|{$AZURE.DATA.TIMEOUT} |<p>A response timeout for an API.</p> |`15s` |
|{$AZURE.MSSQL.DB.LOCATION.MATCHES} |<p>This macro is used in Microsoft SQL databases discovery rule.</p> |`.*` |
|{$AZURE.MSSQL.DB.LOCATION.NOT.MATCHES} |<p>This macro is used in Microsoft SQL databases discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.MSSQL.DB.NAME.MATCHES} |<p>This macro is used in Microsoft SQL databases discovery rule.</p> |`.*` |
|{$AZURE.MSSQL.DB.NAME.NOT.MATCHES} |<p>This macro is used in Microsoft SQL databases discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.MSSQL.DB.SIZE.NOT.MATCHES} |<p>This macro is used in Microsoft SQL databases discovery rule.</p> |`^System$` |
|{$AZURE.MYSQL.DB.LOCATION.MATCHES} |<p>This macro is used in MySQL servers discovery rule.</p> |`.*` |
|{$AZURE.MYSQL.DB.LOCATION.NOT.MATCHES} |<p>This macro is used in MySQL servers discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.MYSQL.DB.NAME.MATCHES} |<p>This macro is used in MySQL servers discovery rule.</p> |`.*` |
|{$AZURE.MYSQL.DB.NAME.NOT.MATCHES} |<p>This macro is used in MySQL servers discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.PASSWORD} |<p>Microsoft Azure password.</p> |`` |
|{$AZURE.PGSQL.DB.LOCATION.MATCHES} |<p>This macro is used in PostgreSQL servers discovery rule.</p> |`.*` |
|{$AZURE.PGSQL.DB.LOCATION.NOT.MATCHES} |<p>This macro is used in PostgreSQL servers discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.PGSQL.DB.NAME.MATCHES} |<p>This macro is used in PostgreSQL servers discovery rule.</p> |`.*` |
|{$AZURE.PGSQL.DB.NAME.NOT.MATCHES} |<p>This macro is used in PostgreSQL servers discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.RESOURCE_GROUP.MATCHES} |<p>This macro is used in discovery rules.</p> |`.*` |
|{$AZURE.RESOURCE_GROUP.NOT.MATCHES} |<p>This macro is used in discovery rules.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.STORAGE.ACC.AVAILABILITY} |<p>The warning threshold of the storage account availability.</p> |`70` |
|{$AZURE.STORAGE.ACC.BLOB.AVAILABILITY} |<p>The warning threshold of the storage account blob services availability.</p> |`70` |
|{$AZURE.STORAGE.ACC.LOCATION.MATCHES} |<p>This macro is used in storage accounts discovery rule.</p> |`.*` |
|{$AZURE.STORAGE.ACC.LOCATION.NOT.MATCHES} |<p>This macro is used in storage accounts discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.STORAGE.ACC.NAME.MATCHES} |<p>This macro is used in storage accounts discovery rule.</p> |`.*` |
|{$AZURE.STORAGE.ACC.NAME.NOT.MATCHES} |<p>This macro is used in storage accounts discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.STORAGE.ACC.TABLE.AVAILABILITY} |<p>The warning threshold of the storage account table services availability.</p> |`70` |
|{$AZURE.SUBSCRIPTION.ID} |<p>Microsoft Azure subscription ID.</p> |`` |
|{$AZURE.TENANT.ID} |<p>Microsoft Azure tenant ID.</p> |`` |
|{$AZURE.VM.LOCATION.MATCHES} |<p>This macro is used in virtual machines discovery rule.</p> |`.*` |
|{$AZURE.VM.LOCATION.NOT.MATCHES} |<p>This macro is used in virtual machines discovery rule.</p> |`CHANGE_IF_NEEDED` |
|{$AZURE.VM.NAME.MATCHES} |<p>This macro is used in virtual machines discovery rule.</p> |`.*` |
|{$AZURE.VM.NAME.NOT.MATCHES} |<p>This macro is used in virtual machines discovery rule.</p> |`CHANGE_IF_NEEDED` |
### Template links
There are no template links in this template.
### Discovery rules
|Name|Description|Type|Key and additional info|
|----|-----------|----|----|
|Microsoft SQL databases discovery |<p>The list of the Microsoft SQL databases is provided by the subscription.</p> |DEPENDENT |azure.mssql.databases.discovery<p>**Preprocessing**:</p><p>- JSONPATH: `$.resources.value`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p><p>**Filter**:</p>AND <p>- {#TYPE} MATCHES_REGEX `^Microsoft.Sql/servers/databases`</p><p>- {#NAME} MATCHES_REGEX `{$AZURE.MSSQL.DB.NAME.MATCHES}`</p><p>- {#NAME} NOT_MATCHES_REGEX `{$AZURE.MSSQL.DB.NAME.NOT.MATCHES}`</p><p>- {#LOCATION} MATCHES_REGEX `{$AZURE.MSSQL.DB.LOCATION.MATCHES}`</p><p>- {#LOCATION} NOT_MATCHES_REGEX `{$AZURE.MSSQL.DB.LOCATION.NOT.MATCHES}`</p><p>- {#GROUP} MATCHES_REGEX `{$AZURE.RESOURCE_GROUP.MATCHES}`</p><p>- {#GROUP} NOT_MATCHES_REGEX `{$AZURE.RESOURCE_GROUP.NOT.MATCHES}`</p><p>- {#SIZE} NOT_MATCHES_REGEX `{$AZURE.MSSQL.DB.SIZE.NOT.MATCHES}`</p><p>**Overrides:**</p><p>Serverless<br> - {#VERSION} MATCHES_REGEX `^.*serverless$`<br> - HOST_PROTOTYPE REGEXP ``</p><p>Server<br> - {#VERSION} MATCHES_REGEX `^((?!serverless).)*$`<br> - HOST_PROTOTYPE REGEXP ``</p> |
|MySQL servers discovery |<p>The list of the MySQL servers is provided by the subscription.</p> |DEPENDENT |azure.mysql.servers.discovery<p>**Preprocessing**:</p><p>- JSONPATH: `$.resources.value`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p><p>**Filter**:</p>AND <p>- {#TYPE} MATCHES_REGEX `^Microsoft.DBforMySQL`</p><p>- {#NAME} MATCHES_REGEX `{$AZURE.MYSQL.DB.NAME.MATCHES}`</p><p>- {#NAME} NOT_MATCHES_REGEX `{$AZURE.MYSQL.DB.NAME.NOT.MATCHES}`</p><p>- {#LOCATION} MATCHES_REGEX `{$AZURE.MYSQL.DB.LOCATION.MATCHES}`</p><p>- {#LOCATION} NOT_MATCHES_REGEX `{$AZURE.MYSQL.DB.LOCATION.NOT.MATCHES}`</p><p>- {#GROUP} MATCHES_REGEX `{$AZURE.RESOURCE_GROUP.MATCHES}`</p><p>- {#GROUP} NOT_MATCHES_REGEX `{$AZURE.RESOURCE_GROUP.NOT.MATCHES}`</p><p>**Overrides:**</p><p>Flexible server<br> - {#TYPE} MATCHES_REGEX `Microsoft.DBforMySQL/flexibleServers`<br> - HOST_PROTOTYPE REGEXP ``</p><p>Single server<br> - {#TYPE} MATCHES_REGEX `Microsoft.DBforMySQL/servers`<br> - HOST_PROTOTYPE REGEXP ``</p> |
|PostgreSQL servers discovery |<p>The list of the PostgreSQL servers is provided by the subscription.</p> |DEPENDENT |azure.pgsql.servers.discovery<p>**Preprocessing**:</p><p>- JSONPATH: `$.resources.value`</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p><p>**Filter**:</p>AND <p>- {#TYPE} MATCHES_REGEX `^Microsoft.DBforPostgreSQL`</p><p>- {#NAME} MATCHES_REGEX `{$AZURE.PGSQL.DB.NAME.MATCHES}`</p><p>- {#NAME} NOT_MATCHES_REGEX `{$AZURE.PGSQL.DB.NAME.NOT.MATCHES}`</p><p>- {#LOCATION} MATCHES_REGEX `{$AZURE.PGSQL.DB.LOCATION.MATCHES}`</p><p>- {#LOCATION} NOT_MATCHES_REGEX `{$AZURE.PGSQL.DB.LOCATION.NOT.MATCHES}`</p><p>- {#GROUP} MATCHES_REGEX `{$AZURE.RESOURCE_GROUP.MATCHES}`</p><p>- {#GROUP} NOT_MATCHES_REGEX `{$AZURE.RESOURCE_GROUP.NOT.MATCHES}`</p><p>**Overrides:**</p><p>Flexible server<br> - {#TYPE} MATCHES_REGEX `Microsoft.DBforPostgreSQL/flexibleServers`<br> - HOST_PROTOTYPE REGEXP ``</p><p>Single server<br> - {#TYPE} MATCHES_REGEX `Microsoft.DBforPostgreSQL/servers`<br> - HOST_PROTOTYPE REGEXP ``</p> |
|Storage accounts discovery |<p>The list of all storage accounts available under the subscription.</p> |DEPENDENT |azure.starage.acc.discovery<p>**Preprocessing**:</p><p>- DISCARD_UNCHANGED_HEARTBEAT: `6h`</p><p>**Filter**:</p>AND <p>- {#NAME} MATCHES_REGEX `{$AZURE.STORAGE.ACC.NAME.MATCHES}`</p><p>- {#NAME} NO
没有合适的资源?快使用搜索试试~ 我知道了~
实时监控IT组件和服务,例如网络、服务器、虚拟机、应用程序和云。_PHP_C_下载.zip
共2000个文件
php:1963个
c:646个
png:496个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 98 浏览量
2023-04-21
10:36:40
上传
评论
收藏 48.04MB ZIP 举报
温馨提示
实时监控IT组件和服务,例如网络、服务器、虚拟机、应用程序和云。_PHP_C_下载
资源推荐
资源详情
资源评论
收起资源包目录
实时监控IT组件和服务,例如网络、服务器、虚拟机、应用程序和云。_PHP_C_下载.zip (2000个子文件)
duktape.c 3.5MB
dbconfig.c 551KB
vmware.c 404KB
expression.c 252KB
host.c 209KB
dbcache.c 190KB
dbupgrade_5030.c 186KB
checks_simple_vmware.c 173KB
logfiles.c 162KB
lld_host.c 157KB
lld_item.c 153KB
dbsync.c 146KB
tls.c 141KB
actions.c 131KB
lld_trigger.c 126KB
escalator.c 125KB
evalfunc.c 125KB
db.c 125KB
execute.c 122KB
proxy.c 121KB
valuecache.c 114KB
template_item.c 113KB
service_manager.c 112KB
events.c 106KB
jsonpath.c 105KB
db.c 98KB
alert_manager.c 92KB
checks_snmp.c 86KB
report_manager.c 83KB
ipcservice.c 82KB
server.c 79KB
proxyconfig_write.c 78KB
zbxprometheus.c 78KB
comms.c 77KB
calc_checks_eval.c 75KB
str.c 71KB
sysinfo.c 67KB
dbupgrade_3030.c 67KB
dbupgrade_4050.c 66KB
zabbix_sender.c 66KB
interval.c 66KB
ha_manager.c 66KB
eventlog.c 62KB
checks_ipmi.c 62KB
proc.c 59KB
trigger_linking.c 59KB
dbconfig_maintenance.c 59KB
proxy.c 58KB
item_preproc.c 57KB
taskmanager.c 57KB
graph_linking.c 56KB
parse.c 55KB
active_checks.c 55KB
zbxregexp.c 54KB
dbupgrade_5050.c 54KB
task.c 53KB
dbupgrade_6030.c 53KB
user_macro.c 52KB
lld_graph.c 52KB
xml.c 51KB
housekeeper.c 50KB
dbupgrade_3010.c 50KB
dbconfig_dump.c 50KB
pp_manager.c 49KB
alerter_protocol.c 49KB
dbupgrade_5010.c 49KB
pp_protocol.c 49KB
dbupgrade_2010.c 48KB
zabbix_agentd.c 48KB
pp_execute.c 48KB
dbupgrade_3050.c 47KB
audit_host.c 46KB
procstat.c 45KB
audit_item.c 45KB
vfs_file.c 43KB
trapper.c 43KB
dbupgrade.c 42KB
ipmi_manager.c 42KB
lld.c 42KB
diag.c 42KB
misc.c 42KB
history_elastic.c 41KB
time.c 40KB
cpustat.c 40KB
proxyconfig_read.c 40KB
poller.c 39KB
vmware_rest.c 38KB
persistent_state.c 38KB
dbhistoryconfig.c 38KB
httptest.c 37KB
evaluate_simple.c 36KB
dir.c 35KB
token.c 35KB
dbupgrade_6010.c 35KB
operations.c 35KB
dbupgrade_2030.c 35KB
dbupgrade_macros.c 35KB
json.c 35KB
alert_syncer.c 34KB
proc.c 32KB
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9153
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功