Skip to content

ujenmr/check-consul-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check Consul Service Build Status

Nagios/Icinga plugin checks consul alive services

Usage:

./check_consul_service
./check_consul_service -consul-addr 127.0.0.1:8500 -user consul-user -password consul-pass
./check_consul_service -consul-addr 127.0.0.1:8500 -w 1 -c 0
./check_consul_service -consul-addr 127.0.0.1:8500 -w 1 -c 0 -services consul,nomad

Icinga configuration

commands.conf:

object CheckCommand "consul-service" {
  command = [ SysconfDir + "/icinga2/scripts/check_consul_service" ]

  arguments = {
    "-consul-addr" = {
      required = true
      value = "$consul_address$"
    }
    "-user" = {
      value = "$consul_auth_user$"
      description = "Consul Auth User"
    }
    "-password" = {
      value = "$consul_auth_password$"
      description = "Consul Auth Password"
    }
    "-scheme" = {
      value = "$consul_scheme$"
      description = "Consul Scheme (http/https)"
    }
    "-w" = {
      value = "$warning$"
    }
    "-c" = {
      value = "$critical$"
    }
  }

  vars.consul_address = "$address$:8500"
  vars.warning = "0"
  vars.critical = "0"
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages