From 35a098dd9df495f0de70a9ab5e87ace8daabbcfa Mon Sep 17 00:00:00 2001 From: Ilya Kalinichenko Date: Wed, 14 Feb 2024 11:40:08 +0800 Subject: [PATCH] Update template: added frr status check && remove deprecated vm moving counter --- .../template_vmmanager_6_master/6.0/README.md | 5 +- .../6.0/template_vmmanager_6_master.yaml | 506 ++++++------------ 2 files changed, 181 insertions(+), 330 deletions(-) diff --git a/Virtualization/VMmanager/template_vmmanager_6_master/6.0/README.md b/Virtualization/VMmanager/template_vmmanager_6_master/6.0/README.md index 054cd03b0..5305270f1 100644 --- a/Virtualization/VMmanager/template_vmmanager_6_master/6.0/README.md +++ b/Virtualization/VMmanager/template_vmmanager_6_master/6.0/README.md @@ -2,7 +2,7 @@ ## Overview -Version: 2021-12-29 +Version: 2024-02-14 Template for monitoring VMmanager 6 master server It will discover hosts from VM6, if you enable it @@ -42,6 +42,7 @@ There are no template links in this template. |Task {#NAME} {#ID} waiting time|

VMmanager 6 task waiting time

|`Depended item`|`tasks.task[{#ID}, waiting]`| |Node {#NODE_ID} {#NODE_NAME} API status|

API request for node status from VMmanager 6

|`HTTP agent`|`node[{#NODE_ID},api_status]`

Update: 1m

| |Node {#NODE_ID} {#NODE_NAME} bird error|

VMmanager 6 bird error message

|`Depended item`|`node[{#NODE_ID}, bird_error]`| +|Node {#NODE_ID} {#NODE_NAME} frr error|

VMmanager 6 frr error message

|`Depended item`|`node[{#NODE_ID}, frr_error]`| |Node {#NODE_ID} {#NODE_NAME} cpu used|

Allocated cpu cores for VM on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, cpu_used]`| |Node {#NODE_ID} {#NODE_NAME} ha error|

VMmanager 6 node HA error message

|`Depended item`|`node[{#NODE_ID}, ha_error]`| |Node {#NODE_ID} {#NODE_NAME} ha state|

VMmanager 6 node HA state

|`Depended item`|`node[{#NODE_ID}, ha_state]`| @@ -55,7 +56,6 @@ There are no template links in this template. |Node {#NODE_ID} {#NODE_NAME} vm active|

Active vm count on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, vm_active]`| |Node {#NODE_ID} {#NODE_NAME} vm crashed|

Crashed vm count on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, vm_crashed]`| |Node {#NODE_ID} {#NODE_NAME} vm estimated|

Estimated vm count on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, vm_estimated]`| -|Node {#NODE_ID} {#NODE_NAME} vm moving|

Moving vm count on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, vm_moving]`| |Node {#NODE_ID} {#NODE_NAME} vm stopped|

Stopped vm count on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, vm_stopped]`| |Node {#NODE_ID} {#NODE_NAME} vm total|

Total vm count on VMmanager 6 node

|`Depended item`|`node[{#NODE_ID}, vm_total]`| @@ -68,6 +68,7 @@ There are no template links in this template. |Task {#NAME} {#ID} running over {$TASK_MAX_RUNNING} min|

-

|

**Expression**: last(/Template VMmanager 6 Master/tasks.task[{#ID}, running])>{$TASK_MAX_RUNNING}*60

**Recovery expression**:

|warning| |Task {#NAME} {#ID} waiting over {$TASK_MAX_WAITING} min|

-

|

**Expression**: last(/Template VMmanager 6 Master/tasks.task[{#ID}, waiting])>{$TASK_MAX_WAITING}*60

**Recovery expression**:

|warning| |Node {#NODE_ID} {#NODE_NAME} bird error|

-

|

**Expression**: last(/Template VMmanager 6 Master/node[{#NODE_ID}, bird_error])<>""

**Recovery expression**:

|warning| +|Node {#NODE_ID} {#NODE_NAME} frr error|

-

|

**Expression**: last(/Template VMmanager 6 Master/node[{#NODE_ID}, frr_error])<>""

**Recovery expression**:

|warning| |Node {#NODE_ID} {#NODE_NAME} crashed VM > 0|

-

|

**Expression**: last(/Template VMmanager 6 Master/node[{#NODE_ID}, vm_crashed])>0

**Recovery expression**:

|warning| |Node {#NODE_ID} {#NODE_NAME} HA error|

-

|

**Expression**: last(/Template VMmanager 6 Master/node[{#NODE_ID}, ha_error])<>"no_error"

**Recovery expression**:

|warning| |Node {#NODE_ID} {#NODE_NAME} status is not Active|

-

|

**Expression**: last(/Template VMmanager 6 Master/node[{#NODE_ID}, status])<>"active"

**Recovery expression**:

|warning| diff --git a/Virtualization/VMmanager/template_vmmanager_6_master/6.0/template_vmmanager_6_master.yaml b/Virtualization/VMmanager/template_vmmanager_6_master/6.0/template_vmmanager_6_master.yaml index c0bc14150..b2073e125 100644 --- a/Virtualization/VMmanager/template_vmmanager_6_master/6.0/template_vmmanager_6_master.yaml +++ b/Virtualization/VMmanager/template_vmmanager_6_master/6.0/template_vmmanager_6_master.yaml @@ -1,17 +1,15 @@ zabbix_export: version: '6.0' - date: '2022-01-14T04:51:33Z' + date: '2024-02-14T03:30:48Z' groups: - - - uuid: da8c196aab9e4705ac1abf71aaf93885 + - uuid: da8c196aab9e4705ac1abf71aaf93885 name: 'VMmanager 6' templates: - - - uuid: 439cf8e0996f4f2d897aaa7887cce054 + - uuid: 439cf8e0996f4f2d897aaa7887cce054 template: 'Template VMmanager 6 Master' name: 'Template VMmanager 6 Master' description: | - Version: 2021-12-29 + Version: 2024-02-14 Template for monitoring VMmanager 6 master server @@ -28,11 +26,9 @@ zabbix_export: It will discover hosts from VM6, if you enable it groups: - - - name: 'VMmanager 6' + - name: 'VMmanager 6' items: - - - uuid: 6aa23842a6e24f159d318e4ec6d62cd7 + - uuid: 6aa23842a6e24f159d318e4ec6d62cd7 name: 'Tasks with error' type: HTTP_AGENT key: tasks.error @@ -41,50 +37,41 @@ zabbix_export: description: 'API request from VMmanager 6 for tasks with error' url: '{$VM6_URL}/task' query_fields: - - - name: where + - name: where value: '(status EQ ''failed'')' headers: - - - name: Cookie + - name: Cookie value: 'ses6={$VM6_TOKEN}' - - - name: x-xsrf-token + - name: x-xsrf-token value: '{$VM6_TOKEN}' output_format: JSON tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Tasks' - - - uuid: c3c7a6280d0b4b51afa2a388657f04ac + - uuid: c3c7a6280d0b4b51afa2a388657f04ac name: 'Error Task count' type: DEPENDENT key: tasks.error.count delay: '0' description: 'Count of tasks with error in VMmanager 6' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.body.size master_item: key: tasks.error tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Tasks' triggers: - - - uuid: 4384092979e342ed82b29b1df2d485cd + - uuid: 4384092979e342ed82b29b1df2d485cd expression: '(last(/Template VMmanager 6 Master/tasks.error.count,#1)<>last(/Template VMmanager 6 Master/tasks.error.count,#2))=1' recovery_mode: NONE name: 'New task error' priority: WARNING description: 'Check VMmanager 6 tasks for new errors' manual_close: 'YES' - - - uuid: 56b643fd69c244bca2b8b128a75d74c7 + - uuid: 56b643fd69c244bca2b8b128a75d74c7 name: 'New Tasks' type: HTTP_AGENT key: tasks.new @@ -93,78 +80,63 @@ zabbix_export: description: 'API request for new and waiting tasks from VMmanager 6' url: '{$VM6_URL}/task' query_fields: - - - name: where + - name: where value: '(status EQ ''running'' OR status EQ ''created'')' headers: - - - name: Cookie + - name: Cookie value: 'ses6={$VM6_TOKEN}' - - - name: x-xsrf-token + - name: x-xsrf-token value: '{$VM6_TOKEN}' output_format: JSON tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Tasks' - - - uuid: 5d9ddd227056424594decb2d2fb88d8e + - uuid: 5d9ddd227056424594decb2d2fb88d8e name: 'New task count' type: DEPENDENT key: tasks.new.count delay: '0' description: 'Count of running and waiting tasks in VMmanager 6' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.body.size master_item: key: tasks.new tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Tasks' discovery_rules: - - - uuid: 1f18d6e44bab495ea356ad6d44b71dc2 + - uuid: 1f18d6e44bab495ea356ad6d44b71dc2 name: 'Host discovery' type: HTTP_AGENT key: host.discovery delay: 1d description: 'Discovery hosts from VMmanager 6' item_prototypes: - - - uuid: 77a6cc65aa1744b2aa31e8ef84f95f55 + - uuid: 77a6cc65aa1744b2aa31e8ef84f95f55 name: 'Node {#NODE_ID} {#NODE_NAME} API status' type: HTTP_AGENT key: 'node[{#NODE_ID},api_status]' trends: '0' value_type: TEXT preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - '$.list[0]' url: '{$VM6_URL}/node' query_fields: - - - name: where + - name: where value: '(id EQ {#NODE_ID})' headers: - - - name: x-xsrf-token + - name: x-xsrf-token value: '{$VM6_TOKEN}' - - - name: Cookie + - name: Cookie value: 'ses6={$VM6_TOKEN}' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 9a003fb362694a11b1d677d6b91dbb8b + - uuid: 9a003fb362694a11b1d677d6b91dbb8b name: 'Node {#NODE_ID} {#NODE_NAME} bird error' type: DEPENDENT key: 'node[{#NODE_ID}, bird_error]' @@ -173,42 +145,57 @@ zabbix_export: value_type: TEXT description: 'VMmanager 6 bird error message' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.bird_error master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' trigger_prototypes: - - - uuid: d86ec28ee60b44e6ba1dbeffaba7bac2 + - uuid: d86ec28ee60b44e6ba1dbeffaba7bac2 expression: 'last(/Template VMmanager 6 Master/node[{#NODE_ID}, bird_error])<>""' name: 'Node {#NODE_ID} {#NODE_NAME} bird error' priority: WARNING - - - uuid: 82616544598741239d1ca675006f84c0 + - uuid: 82616544598741239d1ca675006f84c0 name: 'Node {#NODE_ID} {#NODE_NAME} cpu used' type: DEPENDENT key: 'node[{#NODE_ID}, cpu_used]' delay: '0' description: 'Allocated cpu cores for VM on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.cpu.used master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 0d538f653aed43dfb6778b203ee94ebf + - uuid: ed46a67a4f9f4202b797e4164ba2170b + name: 'Node {#NODE_ID} {#NODE_NAME} frr error' + type: DEPENDENT + key: 'node[{#NODE_ID}, frr_error]' + delay: '0' + trends: '0' + value_type: TEXT + description: 'VMmanager 6 frr error message' + preprocessing: + - type: JSONPATH + parameters: + - $.frr_error + master_item: + key: 'node[{#NODE_ID},api_status]' + tags: + - tag: Application + value: 'VMmanager 6 Node' + trigger_prototypes: + - uuid: d28b5f83dc614e469f0b098514ddd725 + expression: 'last(/Template VMmanager 6 Master/node[{#NODE_ID}, frr_error])<>""' + name: 'Node {#NODE_ID} {#NODE_NAME} frr error' + priority: WARNING + - uuid: 0d538f653aed43dfb6778b203ee94ebf name: 'Node {#NODE_ID} {#NODE_NAME} ha error' type: DEPENDENT key: 'node[{#NODE_ID}, ha_error]' @@ -217,24 +204,20 @@ zabbix_export: value_type: TEXT description: 'VMmanager 6 node HA error message' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.ha_error master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' trigger_prototypes: - - - uuid: 1014ed89cfe0417abbaaae936f243d70 + - uuid: 1014ed89cfe0417abbaaae936f243d70 expression: 'last(/Template VMmanager 6 Master/node[{#NODE_ID}, ha_error])<>"no_error"' name: 'Node {#NODE_ID} {#NODE_NAME} HA error' priority: WARNING - - - uuid: 29b5e18bdbb6440e891f80d45cdca6f8 + - uuid: 29b5e18bdbb6440e891f80d45cdca6f8 name: 'Node {#NODE_ID} {#NODE_NAME} ha state' type: DEPENDENT key: 'node[{#NODE_ID}, ha_state]' @@ -243,18 +226,15 @@ zabbix_export: value_type: TEXT description: 'VMmanager 6 node HA state' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.ha_state master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 9bb12e3ae2f14a9fb482fe884a595342 + - uuid: 9bb12e3ae2f14a9fb482fe884a595342 name: 'Node {#NODE_ID} {#NODE_NAME} memory allocated' type: DEPENDENT key: 'node[{#NODE_ID}, mem_allocated]' @@ -262,18 +242,15 @@ zabbix_export: units: MiB description: 'Allocated memory for VM on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.ram_mib.allocated master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 6e4a7cfe174a4d479328aeb1ec24c1e4 + - uuid: 6e4a7cfe174a4d479328aeb1ec24c1e4 name: 'Node {#NODE_ID} {#NODE_NAME} memory total' type: DEPENDENT key: 'node[{#NODE_ID}, mem_total]' @@ -281,18 +258,15 @@ zabbix_export: units: MiB description: 'Total memory on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.ram_mib.total master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 7921ddd767e544b08dfd61ed6b9d6ce0 + - uuid: 7921ddd767e544b08dfd61ed6b9d6ce0 name: 'Node {#NODE_ID} {#NODE_NAME} status' type: DEPENDENT key: 'node[{#NODE_ID}, status]' @@ -301,24 +275,20 @@ zabbix_export: value_type: TEXT description: 'VMmanager 6 node status' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.state master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' trigger_prototypes: - - - uuid: 852e49a30e244a6da197e52940e9bbf8 + - uuid: 852e49a30e244a6da197e52940e9bbf8 expression: 'last(/Template VMmanager 6 Master/node[{#NODE_ID}, status])<>"active"' name: 'Node {#NODE_ID} {#NODE_NAME} status is not Active' priority: WARNING - - - uuid: ce6bc4193f644348868bad955b068340 + - uuid: ce6bc4193f644348868bad955b068340 name: 'Node {#NODE_ID} {#NODE_NAME} storage allocated' type: DEPENDENT key: 'node[{#NODE_ID}, stor_allocated]' @@ -326,18 +296,15 @@ zabbix_export: units: MiB description: 'Storage allocated on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.storage.allocated_mib master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 4967f0793524498ca237a5b98c67b351 + - uuid: 4967f0793524498ca237a5b98c67b351 name: 'Node {#NODE_ID} {#NODE_NAME} storage available' type: DEPENDENT key: 'node[{#NODE_ID}, stor_available]' @@ -345,18 +312,15 @@ zabbix_export: units: MiB description: 'Storage available on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.storage.available_mib master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: ce1503babfee425286121aea5efe42fc + - uuid: ce1503babfee425286121aea5efe42fc name: 'Node {#NODE_ID} {#NODE_NAME} storage size' type: DEPENDENT key: 'node[{#NODE_ID}, stor_size]' @@ -364,18 +328,15 @@ zabbix_export: units: MiB description: 'Storage size on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.storage.size_mib master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 6fdf2cd04673485980835d02d589d465 + - uuid: 6fdf2cd04673485980835d02d589d465 name: 'Node {#NODE_ID} {#NODE_NAME} storage used' type: DEPENDENT key: 'node[{#NODE_ID}, stor_used]' @@ -383,283 +344,210 @@ zabbix_export: units: MiB description: 'Storage used on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.storage.used_mib master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 26c7140eed1c4f089252b8bf1cb67fb7 + - uuid: 26c7140eed1c4f089252b8bf1cb67fb7 name: 'Node {#NODE_ID} {#NODE_NAME} vm active' type: DEPENDENT key: 'node[{#NODE_ID}, vm_active]' delay: '0' description: 'Active vm count on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.vm.active master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 0f8133f15c81481bb43437c27ecdf8d1 + - uuid: 0f8133f15c81481bb43437c27ecdf8d1 name: 'Node {#NODE_ID} {#NODE_NAME} vm crashed' type: DEPENDENT key: 'node[{#NODE_ID}, vm_crashed]' delay: '0' description: 'Crashed vm count on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.vm.crashed master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' trigger_prototypes: - - - uuid: e00247f9b8fd483e8d5c1a7154829102 + - uuid: e00247f9b8fd483e8d5c1a7154829102 expression: 'last(/Template VMmanager 6 Master/node[{#NODE_ID}, vm_crashed])>0' name: 'Node {#NODE_ID} {#NODE_NAME} crashed VM > 0' priority: WARNING - - - uuid: 8956c9973f744deabedd81029056d2f1 + - uuid: 8956c9973f744deabedd81029056d2f1 name: 'Node {#NODE_ID} {#NODE_NAME} vm estimated' type: DEPENDENT key: 'node[{#NODE_ID}, vm_estimated]' delay: '0' description: 'Estimated vm count on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.vm.estimated master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 3a73c3fbc55e4810882332149cbfefa3 - name: 'Node {#NODE_ID} {#NODE_NAME} vm moving' - type: DEPENDENT - key: 'node[{#NODE_ID}, vm_moving]' - delay: '0' - description: 'Moving vm count on VMmanager 6 node' - preprocessing: - - - type: JSONPATH - parameters: - - $.vm.moving - master_item: - key: 'node[{#NODE_ID},api_status]' - tags: - - - tag: Application - value: 'VMmanager 6 Node' - - - uuid: c8f49a6949004162814ec1b519cec67e + - uuid: c8f49a6949004162814ec1b519cec67e name: 'Node {#NODE_ID} {#NODE_NAME} vm stopped' type: DEPENDENT key: 'node[{#NODE_ID}, vm_stopped]' delay: '0' description: 'Stopped vm count on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.vm.stopped master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' - - - uuid: 07e98cd0f9c447bd9ee7f4281704e9e6 + - uuid: 07e98cd0f9c447bd9ee7f4281704e9e6 name: 'Node {#NODE_ID} {#NODE_NAME} vm total' type: DEPENDENT key: 'node[{#NODE_ID}, vm_total]' delay: '0' description: 'Total vm count on VMmanager 6 node' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.vm.total master_item: key: 'node[{#NODE_ID},api_status]' tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Node' graph_prototypes: - - - uuid: 53d4f946579341249b3e7cdcd07740d7 + - uuid: 53d4f946579341249b3e7cdcd07740d7 name: 'Node {#NODE_ID} {#NODE_NAME} CPU statistics' graph_items: - - - sortorder: '1' + - sortorder: '1' color: 2774A4 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, cpu_used]' - - - uuid: ba6881b6ffb7463a8711590a330a089e + - uuid: ba6881b6ffb7463a8711590a330a089e name: 'Node {#NODE_ID} {#NODE_NAME} memory statistics' graph_items: - - - sortorder: '1' + - sortorder: '1' color: AC8C14 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, mem_allocated]' - - - sortorder: '2' + - sortorder: '2' color: 611F27 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, mem_total]' - - - uuid: f4c65eefc43b4556853726468f5b115f + - uuid: f4c65eefc43b4556853726468f5b115f name: 'Node {#NODE_ID} {#NODE_NAME} storage statistics' graph_items: - - - sortorder: '1' + - sortorder: '1' color: 1A7C11 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, stor_allocated]' - - - sortorder: '2' + - sortorder: '2' color: F63100 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, stor_available]' - - - sortorder: '3' + - sortorder: '3' color: 2774A4 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, stor_size]' - - - sortorder: '4' + - sortorder: '4' color: A54F10 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, stor_used]' - - - uuid: 1f0ec5c1ebf44bee9059d594908411a8 + - uuid: 1f0ec5c1ebf44bee9059d594908411a8 name: 'Node {#NODE_ID} {#NODE_NAME} VM statistics' graph_items: - - - sortorder: '1' + - sortorder: '1' color: FC6EA3 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, vm_active]' - - - sortorder: '2' + - sortorder: '2' color: 6C59DC item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, vm_crashed]' - - - sortorder: '3' + - sortorder: '3' color: AC8C14 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, vm_estimated]' - - - sortorder: '4' - color: 611F27 - item: - host: 'Template VMmanager 6 Master' - key: 'node[{#NODE_ID}, vm_moving]' - - - sortorder: '5' + - sortorder: '5' color: F230E0 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, vm_stopped]' - - - sortorder: '6' + - sortorder: '6' color: 5CCD18 item: host: 'Template VMmanager 6 Master' key: 'node[{#NODE_ID}, vm_total]' host_prototypes: - - - uuid: 76d0c6adc42c4e41a5059333f9f46f5a + - uuid: 76d0c6adc42c4e41a5059333f9f46f5a host: '{#CLUSTER_NAME} {#NODE_NAME}' name: '{#CLUSTER_NAME} {#NODE_NAME}' status: DISABLED discover: NO_DISCOVER group_links: - - - group: + - group: name: 'VMmanager 6' templates: - - - name: 'Linux by Zabbix agent' + - name: 'Linux by Zabbix agent' + - name: 'Template VMmanager 6 KVM Hypervisor' custom_interfaces: 'YES' interfaces: - - - ip: '{#NODE_IP}' + - ip: '{#NODE_IP}' url: '{$VM6_URL}/node' headers: - - - name: Cookie + - name: Cookie value: 'ses6={$VM6_TOKEN}' - - - name: x-xsrf-token + - name: x-xsrf-token value: '{$VM6_TOKEN}' lld_macro_paths: - - - lld_macro: '{#CLUSTER_NAME}' + - lld_macro: '{#CLUSTER_NAME}' path: $.cluster.name - - - lld_macro: '{#NODE_ID}' + - lld_macro: '{#NODE_ID}' path: $.id - - - lld_macro: '{#NODE_IP}' + - lld_macro: '{#NODE_IP}' path: $.ip - - - lld_macro: '{#NODE_KERNEL_VER}' + - lld_macro: '{#NODE_KERNEL_VER}' path: $.kernel_version - - - lld_macro: '{#NODE_NAME}' + - lld_macro: '{#NODE_NAME}' path: $.name - - - lld_macro: '{#NODE_OS}' + - lld_macro: '{#NODE_OS}' path: $.os_version - - - lld_macro: '{#NODE_QEMU_VER}' + - lld_macro: '{#NODE_QEMU_VER}' path: $.qemu_version - - - lld_macro: '{#NODE_VIRT_TYPE}' + - lld_macro: '{#NODE_VIRT_TYPE}' path: $.cluster.virtualization_type preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.list - - - uuid: 8399151cbd1842f5a4ccc6c2c5359092 + - uuid: 8399151cbd1842f5a4ccc6c2c5359092 name: Tasks type: DEPENDENT key: tasks.new.task @@ -667,8 +555,7 @@ zabbix_export: lifetime: 1h description: 'Discovery tasks from VMmanager 6' item_prototypes: - - - uuid: 26c5207f5df74db8a0346623dff8b742 + - uuid: 26c5207f5df74db8a0346623dff8b742 name: 'Task {#NAME} {#ID} running time' type: DEPENDENT key: 'tasks.task[{#ID}, running]' @@ -678,40 +565,33 @@ zabbix_export: units: s description: 'VMmanager 6 task running time' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - '$.body.list[?(@.id == {#ID})].running_time' - - - type: STR_REPLACE + - type: STR_REPLACE parameters: - '[' - '' - - - type: STR_REPLACE + - type: STR_REPLACE parameters: - ']' - '' - - - type: STR_REPLACE + - type: STR_REPLACE parameters: - 'null' - '0' master_item: key: tasks.new tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Tasks' trigger_prototypes: - - - uuid: 1ee2530426a747d4af5e6f4be5bdd27d + - uuid: 1ee2530426a747d4af5e6f4be5bdd27d expression: 'last(/Template VMmanager 6 Master/tasks.task[{#ID}, running])>{$TASK_MAX_RUNNING}*60' name: 'Task {#NAME} {#ID} running over {$TASK_MAX_RUNNING} min' priority: WARNING manual_close: 'YES' - - - uuid: b0aaf74650544026adf47bc4da434b9f + - uuid: b0aaf74650544026adf47bc4da434b9f name: 'Task {#NAME} {#ID} waiting time' type: DEPENDENT key: 'tasks.task[{#ID}, waiting]' @@ -721,34 +601,28 @@ zabbix_export: units: s description: 'VMmanager 6 task waiting time' preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - '$.body.list[?(@.id == {#ID})].waiting_time' - - - type: STR_REPLACE + - type: STR_REPLACE parameters: - '[' - '' - - - type: STR_REPLACE + - type: STR_REPLACE parameters: - ']' - '' - - - type: STR_REPLACE + - type: STR_REPLACE parameters: - 'null' - '0' master_item: key: tasks.new tags: - - - tag: Application + - tag: Application value: 'VMmanager 6 Tasks' trigger_prototypes: - - - uuid: 6285fa13410346a695fe651a2fd38666 + - uuid: 6285fa13410346a695fe651a2fd38666 expression: 'last(/Template VMmanager 6 Master/tasks.task[{#ID}, waiting])>{$TASK_MAX_WAITING}*60' name: 'Task {#NAME} {#ID} waiting over {$TASK_MAX_WAITING} min' priority: WARNING @@ -756,110 +630,86 @@ zabbix_export: master_item: key: tasks.new lld_macro_paths: - - - lld_macro: '{#ID}' + - lld_macro: '{#ID}' path: $.id - - - lld_macro: '{#NAME}' + - lld_macro: '{#NAME}' path: $.name - - - lld_macro: '{#RUNNING}' + - lld_macro: '{#RUNNING}' path: $.running_time - - - lld_macro: '{#STATUS}' + - lld_macro: '{#STATUS}' path: $.status - - - lld_macro: '{#WAITING}' + - lld_macro: '{#WAITING}' path: $.waiting_time preprocessing: - - - type: JSONPATH + - type: JSONPATH parameters: - $.body.list macros: - - - macro: '{$TASK_MAX_RUNNING}' + - macro: '{$TASK_MAX_RUNNING}' value: '30' description: 'Max running time for tasks in minutes' - - - macro: '{$TASK_MAX_WAITING}' + - macro: '{$TASK_MAX_WAITING}' value: '5' description: 'Max waiting time for tasks in minutes' - - - macro: '{$VM6_TOKEN}' + - macro: '{$VM6_TOKEN}' value: token description: 'Auth token for admin user in VMmanager 6' - - - macro: '{$VM6_URL}' + - macro: '{$VM6_URL}' value: 'https://__VM_DOMAIN__/vm/v3' description: 'URL for VMmanager 6' dashboards: - - - uuid: 04d99fa1dd1b45f084b2a72b0baeb1f0 + - uuid: 04d99fa1dd1b45f084b2a72b0baeb1f0 name: 'VMmanager 6 node graphs' pages: - - - widgets: - - - type: GRAPH_PROTOTYPE + - widgets: + - type: GRAPH_PROTOTYPE width: '24' height: '5' fields: - - - type: INTEGER + - type: INTEGER name: columns value: '3' - - - type: GRAPH_PROTOTYPE + - type: GRAPH_PROTOTYPE name: graphid value: - name: 'Node {#NODE_ID} {#NODE_NAME} VM statistics' host: 'Template VMmanager 6 Master' - - - type: GRAPH_PROTOTYPE + name: 'Node {#NODE_ID} {#NODE_NAME} VM statistics' + - type: GRAPH_PROTOTYPE 'y': '5' width: '24' height: '5' fields: - - - type: INTEGER + - type: INTEGER name: columns value: '3' - - - type: GRAPH_PROTOTYPE + - type: GRAPH_PROTOTYPE name: graphid value: - name: 'Node {#NODE_ID} {#NODE_NAME} storage statistics' host: 'Template VMmanager 6 Master' - - - type: GRAPH_PROTOTYPE + name: 'Node {#NODE_ID} {#NODE_NAME} storage statistics' + - type: GRAPH_PROTOTYPE 'y': '10' width: '24' height: '5' fields: - - - type: INTEGER + - type: INTEGER name: columns value: '3' - - - type: GRAPH_PROTOTYPE + - type: GRAPH_PROTOTYPE name: graphid value: - name: 'Node {#NODE_ID} {#NODE_NAME} memory statistics' host: 'Template VMmanager 6 Master' - - - type: GRAPH_PROTOTYPE + name: 'Node {#NODE_ID} {#NODE_NAME} memory statistics' + - type: GRAPH_PROTOTYPE 'y': '15' width: '24' height: '5' fields: - - - type: INTEGER + - type: INTEGER name: columns value: '3' - - - type: GRAPH_PROTOTYPE + - type: GRAPH_PROTOTYPE name: graphid value: - name: 'Node {#NODE_ID} {#NODE_NAME} CPU statistics' host: 'Template VMmanager 6 Master' + name: 'Node {#NODE_ID} {#NODE_NAME} CPU statistics'