Skip to main content
Version: 22.04

Configuring Gorgone in rebound mode

This procedure describes how to configure Gorgone between a distant poller and a central server, via a rebound server.

Note: In our case, we have the configuration described below (you have to adapt the procedure to your configuration).

Central server:

  • address: 10.30.2.203 Rebound server:
  • id: 1024 (This id is an arbitrary number and must be unique).
  • address: 10.30.2.67
  • rsa public key thumbprint: NmnPME43IoWpkQoam6CLnrI5hjmdq6Kq8QMUCCg-F4g

Distant Poller:

  • id: 6 (configured in Centreon interface as zmq. You can get this id from the Centreon interface)
  • address: 10.30.2.179
  • rsa public key thumbprint: nJSH9nZN2ugQeksHif7Jtv19RQA58yjxfX-Cpnhx09s

On the distant poller side​

Installation requirements​

Ensure the distant poller and Gorgone are already installed.

Configuration​

Configure the file /etc/centreon-gorgone/config.d/40-gorgoned.yaml as follows:

name:  distant-server
description: Configuration for distant server
gorgone:
gorgonecore:
id: 6
privkey: "/var/lib/centreon-gorgone/.keys/rsakey.priv.pem"
pubkey: "/var/lib/centreon-gorgone/.keys/rsakey.pub.pem"

modules:
- name: action
package: gorgone::modules::core::action::hooks
enable: true

- name: engine
package: gorgone::modules::centreon::engine::hooks
enable: true
command_file: "/var/lib/centreon-engine/rw/centengine.cmd"

- name: pull
package: "gorgone::modules::core::pull::hooks"
enable: true
target_type: tcp
target_path: 10.30.2.67:5556
ping: 1

On the rebound server side​

Installation requirements​

Ensure you have installed a CentOS 7 server.

Then install the Gorgone daemon using the following commands:

yum install -y yum-utils
yum-config-manager --add-repo https://packages.centreon.com/rpm-standard/22.04/el7/centreon-22.04.repo
yum install centreon-gorgone

Configuration​

Configure the file /etc/centreon-gorgone/config.d/40-gorgoned.yaml as follows:

name:  rebound-server
description: Configuration for rebound-server
gorgone:
gorgonecore:
id: 1024
privkey: "/var/lib/centreon-gorgone/.keys/rsakey.priv.pem"
pubkey: "/var/lib/centreon-gorgone/.keys/rsakey.pub.pem"
external_com_type: tcp
external_com_path: "*:5556"
authorized_clients:
- key: nJSH9nZN2ugQeksHif7Jtv19RQA58yjxfX-Cpnhx09s

modules:
- name: proxy
package: "gorgone::modules::core::proxy::hooks"
enable: true

- name: pull
package: "gorgone::modules::core::pull::hooks"
enable: true
target_type: tcp
target_path: 10.30.2.203:5556
ping: 1

On the central server side​

Installation requirements​

Ensure the Central server and Gorgone are already installed.

Configuration​

Configure the file /etc/centreon-gorgone/config.d/40-gorgoned.yaml as follows:

...
gorgone:
gorgonecore:
...
external_com_type: tcp
external_com_path: "*:5556"
authorized_clients:
- key: NmnPME43IoWpkQoam6CLnrI5hjmdq6Kq8QMUCCg-F4g
...
modules:
...
- name: register
package: "gorgone::modules::core::register::hooks"
enable: true
config_file: /etc/centreon-gorgone/nodes-register-override.yml
...

We created the file /etc/centreon-gorgone/nodes-register-override.yml:

nodes:
- id: 1024
type: pull
prevail: 1
nodes:
- id: 6
pathscore: 1