Advertisement
Guest User

zones.conf icinga

a guest
Jun 10th, 2019
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. root@ares:/etc/icinga2# cat zones.conf
  2. /*
  3. * Endpoint and Zone configuration for a cluster setup
  4. * This local example requires `NodeName` defined in
  5. * constants.conf.
  6. */
  7.  
  8. object Endpoint NodeName {
  9. host = NodeName
  10. }
  11.  
  12. object Zone ZoneName {
  13. endpoints = [ NodeName ]
  14. }
  15.  
  16. /*
  17. * Defines a global zone for distributed setups with masters,
  18. * satellites and clients.
  19. * This is required to sync configuration commands,
  20. * templates, apply rules, etc. to satellite and clients.
  21. * All nodes require the same configuration and must
  22. * have `accept_config` enabled in the `api` feature.
  23. */
  24.  
  25. object Zone "global-templates" {
  26. global = true
  27. }
  28.  
  29. /*
  30. * Defines a global zone for the Icinga Director.
  31. * This is required to sync configuration commands,
  32. * templates, apply rules, etc. to satellite and clients.
  33. * All nodes require the same configuration and must
  34. * have `accept_config` enabled in the `api` feature.
  35. */
  36.  
  37. object Zone "director-global" {
  38. global = true
  39. }
  40.  
  41. /*
  42. * Read the documentation on how to configure
  43. * a cluster setup with multiple zones.
  44. */
  45.  
  46. /*
  47. object Endpoint "master.example.org" {
  48. host = "master.example.org"
  49. }
  50.  
  51. object Endpoint "satellite.example.org" {
  52. host = "satellite.example.org"
  53. }
  54.  
  55. object Zone "master" {
  56. endpoints = [ "master.example.org" ]
  57. }
  58.  
  59. object Zone "satellite" {
  60. parent = "master"
  61. endpoints = [ "satellite.example.org" ]
  62. }
  63. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement