network.conf 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. "--no_ptp_ip" = {
  33. set_if = "$no_ptp_ip$"
  34. }
  35. }
  36. vars.proto = "4" # IP protocol version to check
  37. vars.protocol = "" # Bird OSPF protocol instance name to check
  38. vars.interfaces_down_ok = "" # List of interfaces which are OK to have no session. (Space separated list)
  39. vars.interfaces_down_ok_file = "" # List of interfaces which are OK to have no session. (One per line)
  40. vars.ignore_missing_file = false # Ignore a possible non-existent file given as --interfaces_down_ok_file
  41. vars.no_ptp_ip = false # Do not show neighbor IDs for ptp interfaces
  42. }
  43. object CheckCommand "bird_bgp" {
  44. import "plugin-check-command"
  45. command = [ "/usr/bin/sudo", FFHOPluginDir + "/check_bird_bgp" ]
  46. arguments = {
  47. "--proto" = "$proto$" # IP protocol version to check
  48. "--asn" = "$asn$" # Local AS number
  49. "--ibgp" = { # Check iBGP sessions
  50. set_if = "$ibgp$"
  51. }
  52. "--ibgp_w" = "$ibgp_w$" # Warning interval for down iBGP sessions
  53. "--ibgp_c" = "$ibgp_c$" # Critical interval for down iBGP sessions
  54. "--ebgp" = { # Check eBGP sessions
  55. set_if = "$ebgp$"
  56. }
  57. "--ebgp_w" = "$ebgp_w$" # Warning interval for down eBGP sessions
  58. "--ebgp_c" = "$ebgp_c$" # Critical interval for down eBGP sessions
  59. "--disabled_ok" = { # Treat sessions disabled in bird as OK.
  60. set_if = "$disabled_ok$"
  61. }
  62. "--sessions_down_ok" = "$sessions_down_ok$"
  63. # List of sessions which are OK to be down. (Space separated list)
  64. "--sessions_down_ok_file" = "$sessions_down_ok_file$"
  65. # List of sessions which are OK to be down. (One per line)
  66. "--ignore_missing_file" = { # Ignore a possible non-existent file given as --sessions_down_ok_file
  67. set_if = "$ignore_missing_file$"
  68. }
  69. }
  70. vars.proto = "4"
  71. vars.ibgp_w = "1:1"
  72. vars.ibgp_c = "2:"
  73. vars.ebgp_w = "1:1"
  74. vars.ebgp_c = "2:"
  75. }