123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #
- # FFHO Check Commands for network related stuff (Salt Managed)
- #
- object CheckCommand "ifupdown2" {
- import "plugin-check-command"
- command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_ifupdown2" ]
- arguments = {
- "--ok_string" = "$ok_string$"
- }
- }
- object CheckCommand "bird_ospf" {
- import "plugin-check-command"
- command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_ospf" ]
- arguments = {
- "--proto" = "$proto$"
- "--protocol" = "$protocol$"
- "--interfaces_down_ok" = "$interfaces_down_ok$"
- "--interfaces_down_ok_file" = "$interfaces_down_ok_file$"
- "--ignore_missing_file" = {
- set_if = "$ignore_missing_file$"
- }
- }
- vars.proto = "4" # IP protocol version to check
- vars.protocol = "" # Bird OSPF protocol instance name to check
- vars.interfaces_down_ok = "" # List of interfaces which are OK to have no session. (Space separated list)
- vars.interfaces_down_ok_file = "" # List of interfaces which are OK to have no session. (One per line)
- vars.ignore_missing_file = false # Ignore a possible non-existent file given as --interfaces_down_ok_file
- }
- object CheckCommand "bird_bgp" {
- import "plugin-check-command"
- command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_bgp" ]
- arguments = {
- "--proto" = "$proto$" # IP protocol version to check
- "--asn" = "$asn$" # Local AS number
- "--ibgp" = { # Check iBGP sessions
- set_if = "$ibgp$"
- }
- "--ibgp_w" = "$ibgp_w$" # Warning interval for down iBGP sessions
- "--ibgp_c" = "$ibgp_c$" # Critical interval for down iBGP sessions
- "--ebgp" = { # Check eBGP sessions
- set_if = "$ebgp$"
- }
- "--ebgp_w" = "$ebgp_w$" # Warning interval for down eBGP sessions
- "--ebgp_c" = "$ebgp_c$" # Critical interval for down eBGP sessions
- "--disabled_ok" = { # Treat sessions disabled in bird as OK.
- set_if = "$disabled_ok$"
- }
- }
- vars.proto = "4"
- vars.ibgp_w = "1:1"
- vars.ibgp_c = "2:"
- vars.ebgp_w = "1:1"
- vars.ebgp_c = "2:"
- }
|