Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here is the isolated one:

Image Added

 

Image Removed

 

 


And a more common way of sharing reactionner/broker:

Image Added

 Image Removed


As you can see, all elements are in a unique realm. That's the sub-realm functionality used for reactionner/broker.

 

 

Variable Descriptions

 

PropertyDefaultDescription
realm_nameN/AThis variable is used to identify the *short name* of the realm.
realm_membersN/AThis directive is used to list realm sub-realms.

...

broker_complete_links0If 1, then the brokers will be allowed to talk to schedulers taht already have a broker defined (in its realm or upper). So enabling this option allow a scheduler to export its data to all the broker in its realm level or upper, whatever their number are.
default0This directive is used to define if the realm is the default one or not. Only one default realm is allowed.

Example Definition

You first realm: World

Code Block
  define realm{
      realm_name     World
      realm_members  Europe,America,Asia
      default        0
  }

World and its Sub-Realm ( configuration )

Here is the configuration for the shared architecture:

...

Code Block
languagetext
titleRealm
define realm {
  realm_name All      World
  # Now you define SUB REALMS of World
  realm_members   Europe,US,Asia
  default 1 ;Is# Element without explicit realm setting will be set in the World realm
  default     realm. Should be unique! 1
}
 

# We define our SUB REALMS
# EUROPE
define realm{
  realm_name       Europe
# This one have it's own SUB REALM
  realm_members    Paris
}
# Paris: sub realm for Europe
define realm{
  realm_name       Paris ;This realm is IN Europe
}
 

#An now the satellites:

}
 
# USA
define realm{
  realm_name       USA
}
 
# Asia
define realm{
  realm_name       Asia
}
 
 
 
# For example the daemons for the Paris realm

define scheduler{
  scheduler_name     scheduler_Paris
  realm              Paris ;It
}

# Example of a TOP level realm (WORLD) daemon that can reach daemons of the SUB realms
# so will onlyreach manageEurope, Paris, USA and hostsAsia
}

define reactionner{
  reactionner_name     reactionner-master
  realm All ;Will reach ALL schedulers               World
}
 
Info
You must put the files in /etc/shinken/realms



And the host link into a realm will be on the host configuration page:



 

 

Multi levels brokers


In the previous samples, if you put numerous brokers into the realm, each scheduler will have only one broker at the same time. It was also impossible to have a common Broker in All, and one brokers in each sub-realms.

...