This page references the best practices regarding Centreon Broker configuration.
Set parameters in the General tab as follow.
- log_timestamp = yes
- log_thread_id = no
- event_queue_max_size = 100000
Not configured at all.
The pollers should not have any input configured. Each central (either central-broker-master or central-rrd-master) daemon should have one input configured as follow.
- type = tcp
- name = central-broker-master / central-rrd-master
- port = 5669 (central-broker-master) / 5670 (central-rrd-master)
- host = empty
- failover = empty
- retry_interval = 60
- buffering_timeout = 0
- protocol = BBDO
- tls = auto
- negotiation = yes
- one_peer_retention_mode = no
- filter category = empty (central-broker-master) / storage (central-rrd-master)
- compression = auto
At least one logger should be configured for each Centreon Broker configuration file.
- type = file
- name = /var/log/centreon-broker/central-broker-master.log (or /var/log/centreon-broker/central-rrd-master.log or something alike)
- config = yes
- debug = no
- error = yes
- info = yes
- level = low (Base)
- max_size = 50000000000
External log file rotation should be provided. A logrotate configuration file is provided along Centreon Broker.
Pollers should output to the Centreon central.
- type = tcp
- name = central
- port = 5669
- host = FQDN or IP address of the central
- failover = empty
- retry_interval = 60
- buffering_timeout = 0
- protocol = BBDO
- tls = auto
- negotiation = yes
- one_peer_retention_mode = no
- filter category = empty
- compression = auto
The Central Broker is responsible for writing both real-time monitoring and performance data to the database.
- type = sql
- name = central-broker-sql-master
- db_type = mysql
- failover = empty
- retry_interval = 60
- buffering_timeout = 0
- db_host = localhost
- db_port = 3306
- db_user = centreon
- db_password = centreon
- db_name = centreon_storage
- queries_per_transaction = 20000
- check_replication = no
- read_timeout = 10
- filter category = correlation,neb
This is the performance data output.
- type = storage
- name = central-broker-perfdata-master
- db_type = mysql
- failover = empty
- retry_interval = 60
- buffering_timeout = 0
- db_host = localhost
- db_port = 3306
- db_user = centreon
- db_password = centreon
- db_name = centreon_storage
- queries_per_transaction = 20000
- read_timeout = 10
- check_replication = no
- rebuild_check_interval = 300
- store_in_data_bin = yes
- insert_in_index_data = no
- filter category = neb
This is the output to central-rrd.
- type = tcp
- name = central-broker-rrd-master
- port = 5670
- host = localhost
- failover = empty
- retry_interval = 60
- buffering_timeout = 0
- protocol = BBDO
- tls = auto
- negotiation = yes
- one_peer_retention_mode = no
- filter category = storage
- compression = auto
The Central RRD is responsible for writing RRD files on disk.
- type = rrd
- name = central-rrd-master
- failover = empty
- retry_interval = 60
- buffering_timeout = 0
- port = empty
- path = empty
- write_metrics = yes
- write_status = yes
- filter category = empty
Statistics should be enabled.
- type = stats
- name = poller-stats / central-broker-stats-master / central-rrd-stats-master
- fifo = /var/lib/centreon-broker/poller-stats.pipe (or /var/lib/centreon-broker-stats-master.pipe or something alike)