network.conf 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #
  2. # Network related checks (FFHO-built)
  3. #
  4. #
  5. # ifupdown2
  6. apply Service "ifupdown2" {
  7. import "generic-service"
  8. check_command = "ifupdown2"
  9. assign where host.address && host.vars.os == "Linux"
  10. }
  11. #
  12. # bird process
  13. apply Service "bird" {
  14. import "generic-service"
  15. check_command = "procs"
  16. if (host.name != NodeName) {
  17. command_endpoint = host.name
  18. }
  19. vars.procs_command = "bird"
  20. vars.procs_critical = "1:"
  21. vars.procs_warning = ":1"
  22. check_interval = 5m
  23. max_check_attempts = 3
  24. retry_interval = 3m
  25. assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
  26. }
  27. apply Service "bird6" {
  28. import "generic-service"
  29. check_command = "procs"
  30. if (host.name != NodeName) {
  31. command_endpoint = host.name
  32. }
  33. vars.procs_command = "bird6"
  34. vars.procs_critical = "1:"
  35. vars.procs_warning = ":1"
  36. check_interval = 5m
  37. max_check_attempts = 3
  38. retry_interval = 3m
  39. assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
  40. }
  41. #
  42. # bird OSPF
  43. apply Service "bird_ospf" {
  44. import "generic-service"
  45. check_command = "bird_ospf"
  46. if (host.name != NodeName) {
  47. command_endpoint = host.name
  48. }
  49. assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
  50. }
  51. apply Service "bird_ospf6" {
  52. import "generic-service"
  53. check_command = "bird_ospf"
  54. vars.ipv6 = true
  55. if (host.name != NodeName) {
  56. command_endpoint = host.name
  57. }
  58. assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
  59. }
  60. #
  61. # bird iBGP
  62. apply Service "bird_ibgp" {
  63. import "generic-service"
  64. check_command = "bird_ibgp"
  65. if (host.name != NodeName) {
  66. command_endpoint = host.name
  67. }
  68. assign where host.address && host.vars.os == "Linux" && "router" in host.vars.roles
  69. }