Skip to main content

I am installing a distributed architecture for my centreon.

I have a central centreon and I need to install a remote server on it (maybe in Proxy mode) and finally pollers in different locations

The IP addresses of the central server, remote server and pollers are in different network ranges and are connected by VPNs. The VPNs allow traffic on all ports from Central to Remote and from Remote to Poller.

this would be the architecture

 


I have followed the steps in this post. 

But I have checked everything and I can't detect the problem.

On the server I have this error in /var/log/centreon-gorgone/gorgoned.log

2025-03-07 13:35:12 - DEBUG - -proxy] skip node pull target '223' for node '223' - never connected
2025-03-07 13:35:12 - DEBUG - -proxy] no pathway for target '223'
2025-03-07 13:35:12 - DEBUG - -proxy] skip node pull target '223' for node '223' - never connected
2025-03-07 13:35:12 - DEBUG - -proxy] no pathway for target '223'

Can anyone help me?

THX

 

@SavCent and ​@S.lhotellier could you help me??

Hi 

I think you will need to have link from poller to remote for the broker flow or you will need to register each poller on the input part of the remote broker.

 

In my setup, I had the constraint of having to reverse the gorgone flows.
But if I read your diagram correctly, your gorgon flows are in the normal direction.
However, you'll have to reverse your broker flows.

 

Without changing your network sécurity ou need to

On your central  : add an input flow on your broker with a distant host address (adding the distant host address will reverse the flow) 

On your remote seveur : add an input flow  for each poller on your broker with a distant host address

 

Best regards


Thanks! I will try now it, and I will sent to you more info. Anyhow, I sent you a private message.

 

Best Regards


Hi! I’m trying to recongure like you, with revesrse comunication

But same problem
 

Proxy log:
tail -f /var/log/centreon-gorgone/gorgoned.log

DEBUG - proxy] unknown target '257'

 

Serveur Central :

              ID 1

             IP 10.10.10.201

Serveur Proxy :

            ID 256

            IP : 10.1.11.10

Collecteur ou remote server :

            ID : 257

            IP 10.11.200.10

  1. Poller

/etc/centreon-gorgone/config.d/40-gorgoned.yaml :

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

  modules:

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

/etc/centreon-broker/watchdog.json :


    "centreonBroker": {
        "cbd":
            {
                "name": "central-rrd-master",
                "configuration_file": "/etc/centreon-broker/central-rrd.json",
                "run": true,
                "reload": true
            },
            {
                "name": "central-broker-master",
                "configuration_file": "/etc/centreon-broker/central-broker.json",
                "run": true,
                "reload": true
            }
        ],
        "log": "/var/log/centreon-broker/watchdog.log"
    }
}

 

{    "centreonBroker": {        "broker_id": 256,        "broker_name": "central-broker-master",        "poller_id": 257,        "poller_name": "central",...        "output": >...            {                "name": "forward-to-proxy",                "port": "5669",                "host": "10.1.11.10",                "protocol": "bbdo",                "tls": "no",                "negociation": "yes",                "one_peer_retention_mode": "no",                "compression": "no",                "type": "ipv4",                "filters": {                    "category":                          "neb"                    ]                }            }        ]... 3. PROXY (REMOTE)
name:  remotedescription: Configuration for rebound-servergorgone:  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: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX        - key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX        - key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  modules:    - name: proxy      package: "gorgone::modules::core::proxy::hooks"      enable: true    - name: register      package: "gorgone::modules::core::register::hooks"      enable: true      config_file: /etc/centreon-gorgone/nodes-register-override.yml

 

/etc/centreon-broker/remote-broker.json

{    "centreonBroker": {        "broker_id": 256,        "broker_name": "proxy",        "poller_id": 256,        "poller_name": " PROXY",        "module_directory": "/usr/share/centreon/lib/centreon-broker",        "log_timestamp": false,        "log_thread_id": false,        "event_queue_max_size": 100000,        "command_file": "",        "cache_directory": "/var/lib/centreon-broker",        "bbdo_version": "3.0.0",        "log": {            "directory": "/var/log/centreon-broker",            "filename": "",            "max_size": 0,            "loggers": {                "core": "info",                "config": "error",                "sql": "error",                "processing": "error",                "perfdata": "error",                "bbdo": "error",                "tcp": "error",                "tls": "error",                "lua": "error",                "bam": "error"            }        },        "input":              {                "name": "proxy-broker-input",                "port": "5669",                "protocol": "bbdo",                "tls": "auto",                "negotiation": "yes",                "buffering_timeout": "0",                "retry_interval": "15",                "one_peer_retention_mode": "no",                "compression": "auto",                "type": "ipv4"            }        ],        "output":              {                "name": "forward-to-master",                "port": "5671",                "protocol": "bbdo",                "tls": "no",                "negotiation": "yes",                "one_peer_retention_mode": "yes",                "filters": {                    "category": :                        "neb"                    ]                },                "compression": "no",                "type": "ipv4"            }        ],        "stats": t            {                "type": "stats",                "name": "proxy-stats",                "json_fifo": "/var/lib/centreon-broker/proxy-stats.json"            }        ],        "grpc": {            "port": 51013        }    }}

/etc/centreon-gorgone/nodes-register-override.yml
  - id: 257
    type: pull
    prevail: 1
 

}
  1. Central

/etc/centreon-gorgone/config.d/40-gorgoned.yaml :

...  modules:    ...    - name: register      package: "gorgone::modules::core::register::hooks"      enable: true      config_file: /etc/centreon-gorgone/nodes-register-override.yml    ....

/etc/centreon-gorgone/nodes-register-override.yml :

nodes:  - id: 256    type: push_zmq    address: 10.1.11.10    port: 5556    prevail: 1    nodes:      - id: 257        pathscore: 1

/etc/centreon-broker/central-broker.json :

...        "input": r...            {                "name": "connection-to-remote",                "port": "5671",                "host": "10.1.11.10",                "protocol": "bbdo",                "tls": "no",                "negotiation": "yes",                "one_peer_retention_mode": "no",                "compression": "no",                "type": "ipv4"            }


LOG CENTRAL

tail -f /var/log/centreon-gorgone/gorgoned.log | grep 257

2025-03-31 11:10:04 - DEBUG - proxy] choose node target '256' for node '257'



LOG PROXY (REMOTE)

2025-03-31 11:11:14 - DEBUG - cproxy] unknown target '257'
2025-03-31 11:11:14 - DEBUG - pcore] Message received external - ACTIONENGINE] na5bde37c3d796a518e48d32c48f2834facd85a28e1bf6098ae25d5f5df7e6a15307192de336eed094f7f71ff8421dea8149beb46a9324f0c6a973f1de3b39f0a] r257] {"content":{"metadata":{"centcore_cmd":"ENGINERESTART","centcore_proxy":1},"command":"sudo systemctl restart centreon_vmware.service"},"logging":0}

 


hi! Does anyone have information on this?


Reply