/
Monitoring Service Check: check_consul
Welcome to the VSHN Knowledge Base
Monitoring Service Check: check_consul
Overview
Checks if the configured consul agent is reachable via http check. Under the hood it's just a normal Monitoring Service Check: http.
The check is only configured if managed_monitoring is set to true.
profile_icinga2::resources::check { 'check-consul-agent': check_command => 'http', display_name => 'Consul service check', notes => 'Checks if the consul service is running', notes_url => 'check_consul', production_level => $monitoring_production_level, vars => { 'http_address' => 'localhost', 'http_port' => 8500, 'http_uri' => "/v1/health/node/${::hostname}", 'http_string' => '"Name":"Serf Health Status","Status":"passing"', }, }
Technical Details
Implementation
Global base check | no |
---|---|
Puppet profiles using this check | profile_consul |
Check plugins
Name | http |
---|---|
Packages | see documentation for Monitoring Service Check: http |
CheckCommand name | see documentation for Monitoring Service Check: http |
Upstream source link | see documentation for Monitoring Service Check: http |
Documentation link | see documentation for Monitoring Service Check: http |
List of variables
List of Variables
The standard check uses the following variables. See documentation link above for a list of all variables.
Icinga2 variable | Configured in | Description |
---|---|---|
http_address | set to localhost | localhost since it checks the consul agent locally |
http_port | set to consul agent port 8500 | the port of consul agent on localhost |
http_uri | defined in the profile, depending on requirements, in profile_consul this is fix set parameter | the URI that is queried, defaulting to / in most profiles |
http_string | set to "Name":"Serf Health Status","Status":"passing" |
Troubleshooting/Known issues
Solution
, multiple selections available,
Related content
Monitoring Service Check: http
Monitoring Service Check: http
More like this
Monitoring Service Check: nginx_metrics
Monitoring Service Check: nginx_metrics
More like this
Monitoring Service Check: tcp
Monitoring Service Check: tcp
More like this
Monitoring Service Check: https_certificate
Monitoring Service Check: https_certificate
More like this
Monitoring Service Check: varnish_controller
Monitoring Service Check: varnish_controller
More like this
Monitoring Service Check: varnish
Monitoring Service Check: varnish
More like this