network.conf 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_warn" = "$ibgp_warn$" # Warning interval for down iBGP sessions
  53. "--ibgp_crit" = "$ibgp_crit$" # Critical interval for down iBGP sessions
  54. "--ebgp" = { # Check eBGP sessions
  55. set_if = "$ebgp$"
  56. }
  57. "--ebgp_warn" = "$ebgp_warn$" # Warning interval for down eBGP sessions
  58. "--ebgp_crit" = "$ebgp_crit$" # 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. "--session" = "$session$" # Only check for session with given name
  70. "--routes_imported_warn" = "$routes_imported_warn$" # Warning interval for imported routes
  71. "--routes_imported_crit" = "$routes_imported_crit$" # Critical interval for imported routes
  72. "--routes_exported_warn" = "$routes_exported_warn$" # Warning interval for exported routes
  73. "--routes_exported_crit" = "$routes_exported_crit$" # Critical interval for exported routes
  74. "--routes_preferred_warn" = "$routes_preferred_warn$" # Warning interval for preferred routes
  75. "--routes_preferred_crit" = "$routes_preferred_crit$" # Critical interval for preferred routes
  76. }
  77. vars.proto = "4"
  78. vars.ibgp_warn = "1:1"
  79. vars.ibgp_crit = "2:"
  80. vars.ebgp_warn = "1:1"
  81. vars.ebgp_crit = "2:"
  82. }