123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #
- # Network related checks (FFHO-built)
- #
- #
- # ifupdown2
- apply Service "ifupdown2" {
- import "generic-service"
- check_command = "ifupdown2"
- assign where host.address && host.vars.os == "Linux"
- }
- #
- # bird process
- apply Service "bird" {
- import "generic-service"
- check_command = "procs"
- if (host.name != NodeName) {
- command_endpoint = host.name
- }
- vars.procs_command = "bird"
- vars.procs_critical = "1:"
- vars.procs_warning = ":1"
- check_interval = 5m
- max_check_attempts = 3
- retry_interval = 3m
- assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
- }
- apply Service "bird6" {
- import "generic-service"
- check_command = "procs"
- if (host.name != NodeName) {
- command_endpoint = host.name
- }
- vars.procs_command = "bird6"
- vars.procs_critical = "1:"
- vars.procs_warning = ":1"
- check_interval = 5m
- max_check_attempts = 3
- retry_interval = 3m
- assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
- }
- #
- # bird OSPF
- apply Service "bird_ospf" {
- import "generic-service"
- check_command = "bird_ospf"
- if (host.name != NodeName) {
- command_endpoint = host.name
- }
- assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
- }
- apply Service "bird_ospf6" {
- import "generic-service"
- check_command = "bird_ospf"
- vars.ipv6 = true
- if (host.name != NodeName) {
- command_endpoint = host.name
- }
- assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
- }
- #
- # bird iBGP
- apply Service "bird_ibgp" {
- import "generic-service"
- check_command = "bird_ibgp"
- if (host.name != NodeName) {
- command_endpoint = host.name
- }
- assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
- }
|