network.conf 2.5 KB

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