network.conf 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # FFHO Check Commands for network related stuff (Salt Managed)
  3. #
  4. object CheckCommand "ifupdown2" {
  5. import "plugin-check-command"
  6. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_ifupdown2" ]
  7. arguments = {
  8. "--ok_string" = "$ok_string$"
  9. }
  10. }
  11. object CheckCommand "bird_ospf" {
  12. import "plugin-check-command"
  13. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_ospf" ]
  14. arguments = {
  15. "--proto" = "$proto$"
  16. "--protocol" = "$protocol$"
  17. "--interfaces_down_ok" = "$interfaces_down_ok$"
  18. "--interfaces_down_ok_file" = "$interfaces_down_ok_file$"
  19. "--ignore_missing_file" = {
  20. set_if = "$ignore_missing_file$"
  21. }
  22. }
  23. vars.proto = "4" # IP protocol version to check
  24. vars.protocol = "" # Bird OSPF protocol instance name to check
  25. vars.interfaces_down_ok = "" # List of interfaces which are OK to have no session. (Space separated list)
  26. vars.interfaces_down_ok_file = "" # List of interfaces which are OK to have no session. (One per line)
  27. vars.ignore_missing_file = false # Ignore a possible non-existent file given as --interfaces_down_ok_file
  28. }
  29. object CheckCommand "bird_bgp" {
  30. import "plugin-check-command"
  31. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_bgp" ]
  32. arguments = {
  33. "--proto" = "$proto$" # IP protocol version to check
  34. "--asn" = "$asn$" # Local AS number
  35. "--ibgp" = { # Check iBGP sessions
  36. set_if = "$ibgp$"
  37. }
  38. "--ibgp_w" = "$ibgp_w$" # Warning interval for down iBGP sessions
  39. "--ibgp_c" = "$ibgp_c$" # Critical interval for down iBGP sessions
  40. "--ebgp" = { # Check eBGP sessions
  41. set_if = "$ebgp$"
  42. }
  43. "--ebgp_w" = "$ebgp_w$" # Warning interval for down eBGP sessions
  44. "--ebgp_c" = "$ebgp_c$" # Critical interval for down eBGP sessions
  45. "--disabled_ok" = { # Treat sessions disabled in bird as OK.
  46. set_if = "$disabled_ok$"
  47. }
  48. }
  49. vars.proto = "4"
  50. vars.ibgp_w = "1:1"
  51. vars.ibgp_c = "2:"
  52. vars.ebgp_w = "1:1"
  53. vars.ebgp_c = "2:"
  54. }