event_name: 'HashiCorp Nomad Client: Allocations API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}'
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
name: Templates/Applications
- uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
- uuid: f74adf26d9ab44ada318002d31fd2881
template: 'HashiCorp Nomad by HTTP'
name: 'HashiCorp Nomad by HTTP'
Discover HashiCorp Nomad servers and clients automatically.
Don't forget to change macro {$NOMAD.ENDPOINT.API.URL}, {$NOMAD.TOKEN} values.
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"
- name: Templates/Applications
- uuid: 50bf00cc5c9f41c887add07d0bba3cc1
name: 'Client nodes API response'
key: nomad.client.nodes.api.response
description: 'Client nodes API response message.'
var response = Object.keys(JSON.parse(value).header).filter(function (f) {
return f.match(/HTTP\/[\d.]+\s+\d{3}/);
return "HTTP/1.1 408 Request timeout";
- type: DISCARD_UNCHANGED_HEARTBEAT
key: nomad.client.nodes.get
- uuid: f2e1cbbf808946ca902c1f378747e936
expression: 'find(/HashiCorp Nomad by HTTP/nomad.client.nodes.api.response,,"like","{$NOMAD.API.RESPONSE.SUCCESS}")=0'
name: 'HashiCorp Nomad: Client nodes API connection has failed'
event_name: 'HashiCorp Nomad: Client nodes API connection has failed. HTTP response code: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+(\d{3})", \1")}. Response message: {{ITEM.VALUE}.regsub("HTTP\/[\d.]+\s+\d{3}\s+(.*)", \1")}'
Client nodes API connection has failed.
Ensure that Nomad API URL and the necessary permissions have been defined correctly, check the service state and network connectivity between Nomad and Zabbix.
- uuid: 99d8cd0768094bef93995e4baa475186
name: 'Nomad clients get'
key: nomad.client.nodes.get
description: 'Nomad clients data in raw format.'
- type: CHECK_NOT_SUPPORTED
error_handler: CUSTOM_VALUE
error_handler_params: '{"header":{"HTTP/1.1 408 Request timeout":""}}'
timeout: '{$NOMAD.DATA.TIMEOUT}'
url: '{$NOMAD.ENDPOINT.API.URL}/v1/nodes'
http_proxy: '{$NOMAD.HTTP.PROXY}'