Files
templates-default/VeloCloud_SD-WAN_by_HTTP.yaml

1069 lines
41 KiB
YAML

zabbix_export:
version: '7.0'
template_groups:
- uuid: 36bff6c29af64692839d077febfc7079
name: 'Templates/Network devices'
host_groups:
- uuid: f2481361f99448eea617b7b1d4765566
name: 'Discovered hosts'
templates:
- uuid: e1ca624566424496bff9d90c261ab37b
template: 'VeloCloud SD-WAN by HTTP'
name: 'VeloCloud SD-WAN by HTTP'
description: |
Template for monitoring VeloCloud SD-WAN https://www.arista.com/en/support/velocloud-resources
You can discuss this template or leave feedback on our forum https://www.zabbix.com/forum/zabbix-suggestions-and-feedback/
Generated by official Zabbix template tool "Templator"
vendor:
name: Zabbix
version: 7.0-4
groups:
- name: 'Templates/Network devices'
items:
- uuid: 3d96f6e755934bc8a4ee7300a165adae
name: 'Get data'
type: SCRIPT
key: velocloud.get
delay: '{$VELOCLOUD.SDWAN.FREQUENCY}'
history: '0'
value_type: TEXT
trends: '0'
params: |
const CTlsConfig = function (raw_value) {
raw_value = String(raw_value).trim().toLowerCase();
if (['none', 'peer', 'full'].indexOf(raw_value) === -1) {
raw_value = 'full';
}
this.options = {
SSLVerifyPeer: (raw_value === 'peer' || raw_value === 'full'),
SSLVerifyHost: (raw_value === 'full')
};
this.enabled = (raw_value !== 'none');
this.checkURL = function (url) {
if (this.enabled && !/^https:\/\//i.test(url)) {
throw 'TLS certificate verification is enabled by {$' + 'HTTP.TLS.VERIFY}, but the URL uses plain HTTP: ' + url +
'. Use an "https://" URL, or set {$' + 'HTTP.TLS.VERIFY} to `none` to disable verification.';
}
return url;
};
}
var VeloCloud = {
params: {},
setParams: function (params) {
['url', 'token'].forEach(function (field) {
if (typeof params !== 'object' || typeof params[field] === 'undefined' || params[field] === '') {
throw 'Required param is not set: ' + field + '.';
}
});
VeloCloud.params = params;
if (VeloCloud.params.token === '{' + '$VELOCLOUD.TOKEN}') {
throw 'Please change {' + '$VELOCLOUD.TOKEN} macro with the proper value.';
}
if (!VeloCloud.params.url.startsWith('http://') && !VeloCloud.params.url.startsWith('https://')) {
VeloCloud.params.url = 'https://' + params.url;
}
if (!VeloCloud.params.url.endsWith('/')) {
VeloCloud.params.url += '/';
}
VeloCloud.tls = new CTlsConfig(params.tls_verify);
VeloCloud.tls.checkURL(VeloCloud.params.url);
},
getField: function (data, path, trace) {
const steps = path.split('.');
for (var i = 0; i < steps.length; i++) {
var step = steps[i];
if (typeof data !== 'object' || typeof data[step] === 'undefined') {
throw 'Required field was not found: ' + path + ' - ' + trace;
}
data = data[step];
}
return data;
},
request: function (url, body) {
var response, request = new HttpRequest(VeloCloud.tls.options);
if (typeof VeloCloud.params.http_proxy !== 'undefined' && VeloCloud.params.http_proxy !== '') {
request.setProxy(VeloCloud.params.http_proxy);
}
request.addHeader('Content-Type: application/json');
request.addHeader('Authorization: Token ' + VeloCloud.params.token);
response = request.post(url, body);
Zabbix.log(4, '[ SD-WAN API ] [ ' + url + ' ] Received response with status code ' + request.getStatus() + ': ' + response);
if (request.getStatus() !== 200 || response === null) {
throw 'Request failed with status code ' + request.getStatus() + ': ' + response;
}
try {
response = JSON.parse(response);
}
catch (error) {
throw 'Failed to parse response received from SD-WAN API. Check debug log for more information.';
}
if (response.error && response.error.message) {
throw response.error.message;
}
return response;
},
getMetricsData: function () {
var enterprises = [],
edges = [];
if (typeof VeloCloud.params.enterprise_id !== 'undefined' && VeloCloud.params.enterprise_id !== '') {
response_edges = VeloCloud.request(VeloCloud.params.url + 'portal/rest/enterprise/getEnterpriseEdges',
JSON.stringify({
enterpriseId: Number(VeloCloud.params.enterprise_id),
with: ['site'],
fieldsNeeded: [
"id",
"enterpriseId",
"name"
]
}));
edges = response_edges;
} else {
enterprises = VeloCloud.getField(VeloCloud.request(VeloCloud.params.url + 'portal/rest/monitoring/getAggregates', '{}'), 'enterprises', 'error get enterprises');
if (!Array.isArray(enterprises)) {
enterprises = [enterprises];
}
for (var i in enterprises) {
response_edges = VeloCloud.request(VeloCloud.params.url + 'portal/rest/enterprise/getEnterpriseEdges', JSON.stringify({
enterpriseId: VeloCloud.getField(enterprises[i], 'id', 'error get enterpriseId'),
with: ['site'],
fieldsNeeded: [
"id",
"enterpriseId",
"name"
]
}));
edges = edges.concat(response_edges);
}
}
return { edges: edges, enterprises: enterprises };
}
}
try {
VeloCloud.setParams(JSON.parse(value));
return JSON.stringify(VeloCloud.getMetricsData());
}
catch (error) {
error += (String(error).endsWith('.')) ? '' : '.';
Zabbix.log(3, '[ VeloCloud ] ERROR: ' + error);
return JSON.stringify({ 'error': error });
}
description: 'JSON result from VeloCloud API requests.'
timeout: '{$VELOCLOUD.SDWAN.DATA.TIMEOUT}'
parameters:
- name: enterprise_id
value: '{$VELOCLOUD.ENTERPRISE.ID}'
- name: http_proxy
value: '{$VELOCLOUD.HTTP_PROXY}'
- name: tls_verify
value: '{$HTTP.TLS.VERIFY:"VeloCloud SD-WAN"}'
- name: token
value: '{$VELOCLOUD.TOKEN}'
- name: url
value: '{$VELOCLOUD.URL}'
tags:
- tag: component
value: raw
- uuid: 0e201ebcdc2f491f901a883f9cc3ce69
name: 'Get network gateway data collection errors'
type: DEPENDENT
key: velocloud.get.edges.error
delay: '0'
value_type: TEXT
trends: '0'
description: 'Errors from aggregate data collection for network gateways.'
preprocessing:
- type: JSONPATH
parameters:
- $.error
error_handler: CUSTOM_VALUE
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
master_item:
key: velocloud.network.gateway.get
tags:
- tag: component
value: application
triggers:
- uuid: 40aad027b5fc43babe9f5bcb2d458453
expression: 'length(last(/VeloCloud SD-WAN by HTTP/velocloud.get.edges.error))>0'
name: 'VeloCloud: There are errors in network gateways item'
priority: WARNING
description: 'There are errors in the aggregate script item for network gateways.'
tags:
- tag: scope
value: notice
- uuid: 8a54309d8abc4fc7816b168329243de4
name: 'Get data collection errors'
type: DEPENDENT
key: velocloud.get.error
delay: '0'
value_type: TEXT
trends: '0'
description: 'Errors from aggregate data collection.'
preprocessing:
- type: JSONPATH
parameters:
- $.error
error_handler: CUSTOM_VALUE
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 3h
master_item:
key: velocloud.get
tags:
- tag: component
value: application
triggers:
- uuid: a0623655a2fa4f60962ad560b8bb5a13
expression: 'length(last(/VeloCloud SD-WAN by HTTP/velocloud.get.error))>0'
name: 'VeloCloud: There are errors in aggregate script item'
priority: WARNING
description: 'There are errors in the aggregate script item.'
tags:
- tag: scope
value: notice
- uuid: d7444ca3a03b468385b5cccad55c0492
name: 'Get version info errors'
type: DEPENDENT
key: velocloud.info.get.error
delay: '0'
value_type: TEXT
trends: '0'
description: 'Errors from version info response.'
preprocessing:
- type: JSONPATH
parameters:
- $.error
error_handler: CUSTOM_VALUE
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 3h
master_item:
key: velocloud.version.info.get
tags:
- tag: component
value: application
triggers:
- uuid: cbdb8c53e1f1496facd1225e38bf98eb
expression: 'length(last(/VeloCloud SD-WAN by HTTP/velocloud.info.get.error))>0'
name: 'VeloCloud: There are errors in version info item'
priority: WARNING
description: 'There are errors in the version info item.'
tags:
- tag: scope
value: notice
- uuid: 5fdaf4757bf34657984cb7f071c304cb
name: 'Get network gateways'
type: HTTP_AGENT
key: velocloud.network.gateway.get
delay: '{$VELOCLOUD.SDWAN.FREQUENCY}'
history: '0'
value_type: TEXT
trends: '0'
description: 'Gets network gateway information.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
url: 'https://{$VELOCLOUD.URL}/portal/rest/network/getNetworkGateways'
posts: '{ "with": ["site"] }'
headers:
- name: Content-Type
value: application/json
- name: Authorization
value: 'Token {$VELOCLOUD.TOKEN}'
request_method: POST
tags:
- tag: component
value: raw
- uuid: 3f589e2191c5419fb89cc33639595ae9
name: 'Orchestrator API version'
type: DEPENDENT
key: velocloud.orchestrator.api_version
delay: '0'
value_type: TEXT
trends: '0'
description: 'Version of VeloCloud SD-WAN Orchestrator API.'
preprocessing:
- type: JSONPATH
parameters:
- $.apiVersion
master_item:
key: velocloud.version.info.get
tags:
- tag: component
value: orchestrator
triggers:
- uuid: 5a95d9c614e74c2c8b6181fc8dff2226
expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.api_version,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.api_version,#2) and length(last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.api_version))>0'
name: 'VeloCloud: Orchestrator API version has changed'
priority: AVERAGE
description: 'The VeloCloud Orchestrator API version has changed.'
manual_close: 'YES'
tags:
- tag: scope
value: availability
- uuid: ab24d8fc4c2a4130bca1b4b6d4f311ae
name: 'Orchestrator build'
type: DEPENDENT
key: velocloud.orchestrator.build
delay: '0'
value_type: CHAR
trends: '0'
description: 'Build of VeloCloud SD-WAN Orchestrator API.'
preprocessing:
- type: JSONPATH
parameters:
- $.build
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
master_item:
key: velocloud.version.info.get
tags:
- tag: component
value: orchestrator
triggers:
- uuid: 37c16b3cbd8b4680ab85a1fea819611f
expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.build,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.build,#2) and length(last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.build))>0'
name: 'VeloCloud: Orchestrator build has changed'
priority: INFO
description: 'The VeloCloud Orchestrator build has changed.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: 1f60b61051494ab495de4dfe2cd83450
name: 'Orchestrator version'
type: DEPENDENT
key: velocloud.orchestrator.version
delay: '0'
value_type: CHAR
trends: '0'
description: 'Version of VMware SD-WAN Orchestrator API.'
preprocessing:
- type: JSONPATH
parameters:
- $.version
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
master_item:
key: velocloud.version.info.get
tags:
- tag: component
value: orchestrator
triggers:
- uuid: a1d8e4d61a804c8fb11b33f590f0885c
expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.version,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.version,#2) and length(last(/VeloCloud SD-WAN by HTTP/velocloud.orchestrator.version))>0'
name: 'VeloCloud: Orchestrator version has changed'
priority: INFO
description: 'The VeloCloud Orchestrator version has changed.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: 1206789df5b44af7ba1c5416662344dd
name: 'System properties'
type: HTTP_AGENT
key: velocloud.system.properties
delay: 6h
value_type: TEXT
trends: '0'
description: 'System properties of VMware SD-WAN.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
url: 'https://{$VELOCLOUD.URL}/portal/rest/systemProperty/getSystemProperties'
posts: '{ "normalize": true }'
headers:
- name: Content-Type
value: application/json
- name: Authorization
value: 'Token {$VELOCLOUD.TOKEN}'
request_method: POST
tags:
- tag: component
value: application
triggers:
- uuid: 58541dfe798843fa822276e84a32b919
expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.system.properties,#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.system.properties,#2)'
name: 'VeloCloud: System properties have changed'
priority: INFO
description: 'The system properties have changed.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: d0d6978941fb45dda2791e9c0e2cf7c7
name: 'Get version info data'
type: HTTP_AGENT
key: velocloud.version.info.get
delay: '{$VELOCLOUD.SDWAN.FREQUENCY}'
history: '0'
value_type: TEXT
trends: '0'
description: 'Gets system version information.'
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
url: 'https://{$VELOCLOUD.URL}/portal/rest/system/getVersionInfo'
posts: '{}'
headers:
- name: Content-Type
value: application/json
- name: Authorization
value: 'Token {$VELOCLOUD.TOKEN}'
request_method: POST
tags:
- tag: component
value: raw
discovery_rules:
- uuid: 522ba6551cc64094b60a136d07c9921d
name: 'Edge discovery'
type: DEPENDENT
key: velocloud.edge.discovery
delay: '0'
filter:
evaltype: AND
conditions:
- macro: '{#EDGE.NAME}'
value: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.MATCHES}'
formulaid: A
- macro: '{#EDGE.NAME}'
value: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
- macro: '{#EDGE.STATE}'
value: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.MATCHES}'
formulaid: C
- macro: '{#EDGE.STATE}'
value: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: D
description: 'Get Edge instances.'
host_prototypes:
- uuid: 5896745a4b844f1a826d5dd060bc2b5b
host: '{#EDGE.NAME}'
name: '{#EDGE.NAME}'
inventory_mode: AUTOMATIC
group_links:
- group:
name: 'Discovered hosts'
templates:
- name: 'VeloCloud SD-WAN Edge by HTTP'
macros:
- macro: '{$VELOCLOUD.EDGE.ID}'
value: '{#EDGE.ID}'
description: 'SD-WAN Edge id.'
- macro: '{$VELOCLOUD.EDGE.INVENTORY}'
value: '{#EDGE.INVENTORY}'
description: 'SD-WAN Edge inventory.'
- macro: '{$VELOCLOUD.EDGE.NAME}'
value: '{#EDGE.NAME}'
description: 'SD-WAN Edge name.'
- macro: '{$VELOCLOUD.ENTERPRISE.ID}'
value: '{#ENTERPRISE.ID}'
description: 'SD-WAN Enterprise id.'
tags:
- tag: city
value: '{#EDGE.CITY}'
- tag: country
value: '{#EDGE.COUNTRY}'
- tag: service
value: edge
master_item:
key: velocloud.get
lld_macro_paths:
- lld_macro: '{#EDGE.CITY}'
path: $.site.city
- lld_macro: '{#EDGE.COUNTRY}'
path: $.site.country
- lld_macro: '{#EDGE.ID}'
path: $.id
- lld_macro: '{#EDGE.INVENTORY}'
path: $.site
- lld_macro: '{#EDGE.NAME}'
path: $.name
- lld_macro: '{#EDGE.STATE}'
path: $.site.state
- lld_macro: '{#ENTERPRISE.ID}'
path: $.enterpriseId
preprocessing:
- type: JSONPATH
parameters:
- $.edges
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
- uuid: e2879e0ce6e44203b0615c36ba626cc0
name: 'Gateway metric discovery'
type: DEPENDENT
key: velocloud.gateway.discovery
delay: '0'
filter:
evaltype: AND
conditions:
- macro: '{#NAME}'
value: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.MATCHES}'
formulaid: A
- macro: '{#NAME}'
value: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.NOT_MATCHES}'
operator: NOT_MATCHES_REGEX
formulaid: B
description: 'Metrics for gateway statistics.'
item_prototypes:
- uuid: 52859166849d4cdf860664f8d3b8088d
name: 'Gateway [{#NAME}]: Connected edges'
type: DEPENDENT
key: 'velocloud.gateway.connected_edges[{#ID}]'
delay: '0'
description: 'Edges connected to gateway.'
preprocessing:
- type: JSONPATH
parameters:
- $.connectedEdges
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
trigger_prototypes:
- uuid: f0d7bdb2ac3540258ab6a276b43a382c
expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.connected_edges[{#ID}],#1)<>last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.connected_edges[{#ID}],#2)'
name: 'VeloCloud: Gateway [{#NAME}]: The number of connected edges has changed'
priority: WARNING
description: 'The number of connected Edges has changed.'
manual_close: 'YES'
tags:
- tag: scope
value: notice
- uuid: 5e588efb83be4dc2bc29eaa0a6630718
name: 'Gateway [{#NAME}]: Description'
type: DEPENDENT
key: 'velocloud.gateway.description[{#ID}]'
delay: '0'
value_type: TEXT
trends: '0'
description: 'Gateway description.'
preprocessing:
- type: JSONPATH
parameters:
- $.description
- type: STR_REPLACE
parameters:
- 'null'
- ''
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 12h
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: 7f2a0a68386744cb84fab35df8c55a07
name: 'Gateway [{#NAME}]: IP address'
type: DEPENDENT
key: 'velocloud.gateway.ip_address[{#ID}]'
delay: '0'
value_type: TEXT
trends: '0'
description: 'Gateway IP address.'
preprocessing:
- type: JSONPATH
parameters:
- $.ipAddress
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: b304460854f0485189f88df12483b5ac
name: 'Gateway [{#NAME}]: Service uptime'
type: DEPENDENT
key: 'velocloud.gateway.service_uptime[{#ID}]'
delay: '0'
units: uptime
description: 'Gateway service uptime.'
preprocessing:
- type: JSONPATH
parameters:
- $.serviceUpSince
- type: JAVASCRIPT
parameters:
- |
value == '0000-00-00 00:00:00' ? value = 0 : value = Math.round((Date.now() - new Date(value).valueOf()) / 1000);
return value;
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: 91784583eda943a7ace430413450391c
name: 'Gateway [{#NAME}]: State'
type: DEPENDENT
key: 'velocloud.gateway.state[{#ID}]'
delay: '0'
value_type: TEXT
trends: '0'
description: 'Gateway state.'
preprocessing:
- type: JSONPATH
parameters:
- $.gatewayState
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: d902600ef51640ffaaa4384ce505bcc2
name: 'Gateway [{#NAME}]: System uptime'
type: DEPENDENT
key: 'velocloud.gateway.system_uptime[{#ID}]'
delay: '0'
units: uptime
description: 'Gateway system uptime.'
preprocessing:
- type: JSONPATH
parameters:
- $.systemUpSince
- type: JAVASCRIPT
parameters:
- |
value == '0000-00-00 00:00:00' ? value = 0 : value = Math.round((Date.now() - new Date(value).valueOf()) / 1000);
return value;
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
trigger_prototypes:
- uuid: e51ea2da27284067bd3ec8fa4faffdde
expression: 'last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.system_uptime[{#ID}])>0 and last(/VeloCloud SD-WAN by HTTP/velocloud.gateway.system_uptime[{#ID}])<600'
name: 'VeloCloud: Gateway [{#NAME}]: Gateway has been restarted'
event_name: 'VeloCloud: Gateway [{#NAME}]: Gateway has been restarted (uptime < 10m)'
priority: WARNING
description: 'Gateway was restarted.'
tags:
- tag: scope
value: notice
- uuid: 66c8fe8095724fb38966b05ef5d77a37
name: 'Gateway [{#NAME}]: Utilization CPU'
type: DEPENDENT
key: 'velocloud.gateway.utilization.cpu[{#ID}]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Gateway CPU utilization.'
preprocessing:
- type: JSONPATH
parameters:
- $.utilizationDetail.cpu
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: cpu
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: b510c38771464024a66dc20ce9d75505
name: 'Gateway [{#NAME}]: Utilization load'
type: DEPENDENT
key: 'velocloud.gateway.utilization.load[{#ID}]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Gateway load.'
preprocessing:
- type: JSONPATH
parameters:
- $.utilizationDetail.load
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: ad83565ae40f480dacd56e63bd475ddc
name: 'Gateway [{#NAME}]: Utilization memory'
type: DEPENDENT
key: 'velocloud.gateway.utilization.memory[{#ID}]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Gateway memory utilization.'
preprocessing:
- type: JSONPATH
parameters:
- $.utilizationDetail.memory
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: component
value: memory
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: b10c51350f604a8195e9c0176ca2de85
name: 'Gateway [{#NAME}]: Utilization overall'
type: DEPENDENT
key: 'velocloud.gateway.utilization.overall[{#ID}]'
delay: '0'
value_type: FLOAT
units: '%'
description: 'Gateway overall utilization.'
preprocessing:
- type: JSONPATH
parameters:
- $.utilizationDetail.overall
master_item:
key: 'velocloud.get.gateway[{#ID}]'
tags:
- tag: city
value: '{#CITY}'
- tag: component
value: gateway
- tag: name
value: '{#NAME}'
- tag: state
value: '{#STATE}'
- uuid: 5c11969073ab415abe08c74626bd5dd1
name: 'Gateway [{#NAME}]: Raw data'
type: DEPENDENT
key: 'velocloud.get.gateway[{#ID}]'
delay: '0'
history: '0'
value_type: TEXT
trends: '0'
description: 'Raw data for VeloCloud gateway.'
preprocessing:
- type: JSONPATH
parameters:
- '$.[?(@.id==''{#ID}'')].first()'
master_item:
key: velocloud.network.gateway.get
tags:
- tag: component
value: raw
graph_prototypes:
- uuid: d8d9b176f439436ba6fe69ec8bc6409e
name: 'Gateway [{#NAME}]: Utilization'
graph_items:
- color: 199C0D
item:
host: 'VeloCloud SD-WAN by HTTP'
key: 'velocloud.gateway.utilization.cpu[{#ID}]'
- sortorder: '1'
color: F63100
item:
host: 'VeloCloud SD-WAN by HTTP'
key: 'velocloud.gateway.utilization.load[{#ID}]'
- sortorder: '2'
color: 00611C
item:
host: 'VeloCloud SD-WAN by HTTP'
key: 'velocloud.gateway.utilization.memory[{#ID}]'
- sortorder: '3'
color: F7941D
item:
host: 'VeloCloud SD-WAN by HTTP'
key: 'velocloud.gateway.utilization.overall[{#ID}]'
master_item:
key: velocloud.network.gateway.get
lld_macro_paths:
- lld_macro: '{#CITY}'
path: $.site.city
- lld_macro: '{#ID}'
path: $.id
- lld_macro: '{#NAME}'
path: $.name
- lld_macro: '{#STATE}'
path: $.site.state
preprocessing:
- type: DISCARD_UNCHANGED_HEARTBEAT
parameters:
- 1h
tags:
- tag: class
value: network
- tag: target
value: velocloud-sd-wan
macros:
- macro: '{$HTTP.TLS.VERIFY}'
value: full
description: '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 "VeloCloud SD-WAN", e.g. {$HTTP.TLS.VERIFY:"VeloCloud SD-WAN"}.'
- macro: '{$VELOCLOUD.ENTERPRISE.ID}'
description: 'VeloCloud SD-WAN Enterprise ID. Specify a single Enterprise ID (requires READ EDGE privileges). By default parameter is empty, data will be retrieved for all Enterprises (privileges required: READ ENTERPRISE and READ EDGE).'
- macro: '{$VELOCLOUD.HTTP_PROXY}'
description: 'The HTTP proxy for script items (set if needed). If the macro is empty, then no proxy is used.'
- macro: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.MATCHES}'
value: '.*'
description: 'Filter for discoverable Edges by name.'
- macro: '{$VELOCLOUD.LLD.EDGES.NAME.FILTER.NOT_MATCHES}'
value: CHANGE_IF_NEEDED
description: 'Filter to exclude discovered Edges by name.'
- macro: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.MATCHES}'
value: '.*'
description: 'Filter for discoverable Edges by state.'
- macro: '{$VELOCLOUD.LLD.EDGES.STATE.FILTER.NOT_MATCHES}'
value: CHANGE_IF_NEEDED
description: 'Filter to exclude discovered Edges by state.'
- macro: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.MATCHES}'
value: '.*'
description: 'Filter for discoverable gateways.'
- macro: '{$VELOCLOUD.LLD.GATEWAYS.FILTER.NOT_MATCHES}'
value: CHANGE_IF_NEEDED
description: 'Filter to exclude discovered gateways.'
- macro: '{$VELOCLOUD.SDWAN.DATA.TIMEOUT}'
value: 15s
description: 'Response timeout for API.'
- macro: '{$VELOCLOUD.SDWAN.FREQUENCY}'
value: 1h
description: 'Update interval for raw item, expressed in hours.'
- macro: '{$VELOCLOUD.TOKEN}'
type: SECRET_TEXT
description: 'VeloCloud SD-WAN Orchestrator API token.'
- macro: '{$VELOCLOUD.URL}'
description: 'VeloCloud SD-WAN Orchestrator URL, e.g., `vco.velocloud.net`.'
dashboards:
- uuid: 05278fc67ef34ec191e6a76f12e13627
name: 'VeloCloud: General'
pages:
- name: Overview
widgets:
- type: item
width: '24'
height: '4'
fields:
- type: INTEGER
name: decimal_places
value: '0'
- type: ITEM
name: itemid.0
value:
host: 'VeloCloud SD-WAN by HTTP'
key: velocloud.orchestrator.api_version
- type: INTEGER
name: show.0
value: '2'
- type: INTEGER
name: show.1
value: '4'
- type: INTEGER
name: value_size
value: '15'
- type: item
x: '24'
width: '24'
height: '4'
fields:
- type: INTEGER
name: decimal_places
value: '0'
- type: ITEM
name: itemid.0
value:
host: 'VeloCloud SD-WAN by HTTP'
key: velocloud.orchestrator.build
- type: INTEGER
name: show.0
value: '2'
- type: INTEGER
name: show.1
value: '4'
- type: INTEGER
name: value_size
value: '15'
- type: item
x: '48'
width: '24'
height: '4'
fields:
- type: ITEM
name: itemid.0
value:
host: 'VeloCloud SD-WAN by HTTP'
key: velocloud.orchestrator.version
- type: INTEGER
name: show.0
value: '2'
- type: INTEGER
name: value_size
value: '20'
- name: Gateways
widgets:
- type: honeycomb
name: State
width: '36'
height: '4'
fields:
- type: STRING
name: items.0
value: 'Gateway [*]: State'
- type: STRING
name: primary_label
value: '{ITEM.NAME}'
- type: STRING
name: reference
value: YWRAS
- type: INTEGER
name: secondary_label_decimal_places
value: '0'
- type: svggraph
name: 'Utilization load'
'y': '4'
width: '36'
height: '4'
fields:
- type: STRING
name: ds.0.color
value: 78909C
- type: STRING
name: ds.0.items.0
value: 'Gateway [*]: Utilization load'
- type: INTEGER
name: ds.0.width
value: '2'
- type: STRING
name: reference
value: CBDAC
- type: INTEGER
name: righty
value: '0'
- type: honeycomb
name: 'IP address'
x: '36'
width: '36'
height: '4'
fields:
- type: STRING
name: items.0
value: 'Gateway [*]: IP address'
- type: STRING
name: primary_label
value: '{ITEM.NAME}'
- type: STRING
name: reference
value: XGHBR
- type: INTEGER
name: secondary_label_decimal_places
value: '0'
- type: svggraph
name: 'Utilization overall'
x: '36'
'y': '4'
width: '36'
height: '4'
fields:
- type: STRING
name: ds.0.color
value: 78909C
- type: STRING
name: ds.0.items.0
value: 'Gateway [*]: Utilization overall'
- type: INTEGER
name: ds.0.width
value: '2'
- type: STRING
name: reference
value: CBFDD
- type: INTEGER
name: righty
value: '0'