Skip to main content

This topic is no longer relevant, please follow the official documentation

 

Installing a poller from packages on Debian 11 using Centreon 21.10

 

Pre-installation steps

 

Server name

If you want, you can change the server's name using the following command:

sudo hostnamectl set-hostname <new-server-name>

Replace <new-server-name> by the name you want. Example:

sudo hostnamectl set-hostname poller1

 

Install the repositories

To install Centreon software from the repository, you should first install the centreon-release package, which will provide the repository file.

1. Install curl and gnugp2:

sudo apt-get update && sudo apt-get install wget gnupg2

2. Run the following command with a privileged user:

su -
echo 'deb https://apt.centreon.com/repository/centreon-bullseye/ bullseye main' > /etc/apt/sources.list.d/centreon.list
exit

3. Download the GPG Key:

sudo wget -O- https://apt-key.centreon.com | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg

4. Update the list of Debian packages:

sudo apt update

 

Installation

 

1. To install the monitoring engine, run the command:

sudo apt-get install centreon-broker centreon-broker-cbmod centreon-broker-core centreon-clib centreon-common centreon-connector centreon-connector-perl centreon-connector-ssh centreon-engine centreon-engine-extcommands centreon-gorgone centreon-perl-libs libzmq-constants-perl zmq-libzmq4-perl

2. To make services start automatically during system bootup, run the following command:

sudo systemctl enable centreon centengine

3. (temporary) Create missing sudoers:

su -
vim /etc/sudoers.d/centreon

Then copy the following lines:

## BEGIN: CENTREON SUDO

User_Alias CENTREON=%centreon
Defaults:CENTREON !requiretty

# centreontrapd
CENTREON ALL = NOPASSWD: /sbin/service centreontrapd start
CENTREON ALL = NOPASSWD: /sbin/service centreontrapd stop
CENTREON ALL = NOPASSWD: /sbin/service centreontrapd restart
CENTREON ALL = NOPASSWD: /sbin/service centreontrapd reload
CENTREON ALL = NOPASSWD: /usr/sbin/service centreontrapd start
CENTREON ALL = NOPASSWD: /usr/sbin/service centreontrapd stop
CENTREON ALL = NOPASSWD: /usr/sbin/service centreontrapd restart
CENTREON ALL = NOPASSWD: /usr/sbin/service centreontrapd reload

# Centreon Engine
CENTREON ALL = NOPASSWD: /sbin/service centengine start
CENTREON ALL = NOPASSWD: /sbin/service centengine stop
CENTREON ALL = NOPASSWD: /sbin/service centengine restart
CENTREON ALL = NOPASSWD: /sbin/service centengine reload
CENTREON ALL = NOPASSWD: /usr/sbin/service centengine start
CENTREON ALL = NOPASSWD: /usr/sbin/service centengine stop
CENTREON ALL = NOPASSWD: /usr/sbin/service centengine restart
CENTREON ALL = NOPASSWD: /usr/sbin/service centengine reload
CENTREON ALL = NOPASSWD: /bin/systemctl start centengine
CENTREON ALL = NOPASSWD: /bin/systemctl stop centengine
CENTREON ALL = NOPASSWD: /bin/systemctl restart centengine
CENTREON ALL = NOPASSWD: /bin/systemctl reload centengine
CENTREON ALL = NOPASSWD: /usr/bin/systemctl start centengine
CENTREON ALL = NOPASSWD: /usr/bin/systemctl stop centengine
CENTREON ALL = NOPASSWD: /usr/bin/systemctl restart centengine
CENTREON ALL = NOPASSWD: /usr/bin/systemctl reload centengine

# Centreon Broker
CENTREON ALL = NOPASSWD: /sbin/service cbd start
CENTREON ALL = NOPASSWD: /sbin/service cbd stop
CENTREON ALL = NOPASSWD: /sbin/service cbd restart
CENTREON ALL = NOPASSWD: /sbin/service cbd reload
CENTREON ALL = NOPASSWD: /usr/sbin/service cbd start
CENTREON ALL = NOPASSWD: /usr/sbin/service cbd stop
CENTREON ALL = NOPASSWD: /usr/sbin/service cbd restart
CENTREON ALL = NOPASSWD: /usr/sbin/service cbd reload
CENTREON ALL = NOPASSWD: /bin/systemctl start cbd
CENTREON ALL = NOPASSWD: /bin/systemctl stop cbd
CENTREON ALL = NOPASSWD: /bin/systemctl restart cbd
CENTREON ALL = NOPASSWD: /bin/systemctl reload cbd
CENTREON ALL = NOPASSWD: /usr/bin/systemctl start cbd
CENTREON ALL = NOPASSWD: /usr/bin/systemctl stop cbd
CENTREON ALL = NOPASSWD: /usr/bin/systemctl restart cbd
CENTREON ALL = NOPASSWD: /usr/bin/systemctl reload cbd

## END: CENTREON SUDO

Save and quit root user:

exit

4. (temporary) Apply missing rights:

sudo chown -R centreon-engine:centreon-gorgone /etc/centreon-engine/
sudo chmod -R g+w /etc/centreon-engine/

sudo chown -R centreon-broker:centreon-gorgone /etc/centreon-broker/
sudo chmod -R g+w /etc/centreon-broker/

sudo chown -R centreon:centreon /var/cache/centreon
sudo chmod -R g+w /var/cache/centreon

5. Restart Centreon Engine:

sudo systemctl restart centengine gorgoned

6. Then Add a Poller to configuration by selecting Add a Centreon Poller then Create new Poller  from the Centreon official documentation.

 

Don’t forget to install any Centreon Plugins you need, using:

sudo apt-get install centreon-plugin-<plugin_name>

 

Thanks a lot for this post.

In my lab environment, I had to adapt the groups for the centreon-engine and centreon-gorgone user

adduser centreon-gorgone centreon-engine
adduser centreon-gorgone centreon-broker
adduser centreon-engine centreon
adduser centreon-engine centreon-broker

After plugin installed, I had to create and change the ownership of the  directory  /var/lib/centreon/centplugins

mkdir -p /var/lib/centreon/centplugins
chown centreon: /var/lib/centreon/centplugins
chmod 775 /var/lib/centreon/centplugins

Finally, I had to change the permissions of all Centreon plugins that are not executable during their installation


Thanks a lot for this post.

In my lab environment, I had to adapt the groups for the centreon-engine and centreon-gorgone user

adduser centreon-gorgone centreon-engine
adduser centreon-gorgone centreon-broker
adduser centreon-engine centreon
adduser centreon-engine centreon-broker

After plugin installed, I had to create and change the ownership of the  directory  /var/lib/centreon/centplugins

mkdir -p /var/lib/centreon/centplugins
chown centreon: /var/lib/centreon/centplugins
chmod 775 /var/lib/centreon/centplugins

Finally, I had to change the permissions of all Centreon plugins that are not executable during their installation

Thank you for feedback we will modify this.


Hello,
I have a problem with the centreon key here is the message

apt update
Réception de :4 https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease e1 897 B]
Err :4 https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease
  Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY 9253FE40FD2A4CAB
Lecture des listes de paquets... Fait
W: http://security.debian.org/debian-security/dists/bullseye-security/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/centreon.gpg are ignored as the file has an unsupported filetype.
W: http://deb.debian.org/debian/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/centreon.gpg are ignored as the file has an unsupported filetype.
W: http://deb.debian.org/debian/dists/bullseye-updates/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/centreon.gpg are ignored as the file has an unsupported filetype.
W: https://apt.centreon.com/repository/centreon-bullseye/dists/bullseye/InRelease: The key(s) in the keyring /etc/apt/trusted.gpg.d/centreon.gpg are ignored as the file has an unsupported filetype.
W: Erreur de GPG : https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease : Les signatures suivantes n'ont pas pu être vérifiées car la clé publique n'est pas disponible : NO_PUBKEY 9253FE40FD2A4CAB
E: Le dépôt https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease n'est pas signé.
N: Les mises à jour depuis un tel dépôt ne peuvent s'effectuer de manière sécurisée, et sont donc désactivées par défaut.
N: Voir les pages de manuel d'apt-secure(8) pour la création des dépôts et les détails de configuration d'un utilisateur.

 

I found a solution

wget -O- https://apt-key.centreon.com  | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg

Then

apt update
Atteint :1 http://deb.debian.org/debian bullseye InRelease
Atteint :2 http://security.debian.org/debian-security bullseye-security InRelease
Atteint :3 http://deb.debian.org/debian bullseye-updates InRelease             
Atteint :4 https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease
Lecture des listes de paquets... Fait             
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait      
28 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.

:wink:

 


I found a solution

wget -O- https://apt-key.centreon.com  | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg

 

Perfect ! before I give a reply, have you fixed it.

Have a nice day !

Luiz Costa


I'm using a fresh-install VM without the sudo mechanism installed, you should indicate the prerequisite of the sudo package
I can't install the plugins packages, here is the message

apt install centreon-plugin-operatingsystems-linux-ssh
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :

Les paquets suivants contiennent des dépendances non satisfaites :
 centreon-plugin-operatingsystems-linux-ssh : Dépend: libssh-session-perl mais il n'est pas installable


I'm using a fresh-install VM without the sudo mechanism installed, you should indicate the prerequisite of the sudo package
I can't install the plugins packages, here is the message

apt install centreon-plugin-operatingsystems-linux-ssh
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :

Les paquets suivants contiennent des dépendances non satisfaites :
 centreon-plugin-operatingsystems-linux-ssh : Dépend: libssh-session-perl mais il n'est pas installable


Good ! Thanks for the feedback, we will fix this detail and pay attention to other possible similar issues.

Have a nice day !

Luiz Costa


I have the same type of problem with perl dependencies

 

 centreon-plugin-applications-protocol-http : Depends: liblwp-useragent-perl but it is not installable
Depends: libhttp-proxypac-perl but it is not installable
centreon-plugin-applications-protocol-smtp : Depends: libemail-send-smtp-gmail-perl but it is not installable
centreon-plugin-applications-protocol-ssh : Depends: libssh-session-perl but it is not installable

 


Hi @Pascal @kermith72 We are building a release 2, I will send you a message when packages will be available.


@Pascal release 2 is now available, can you try?


Hello,
I always get error messages when downloading some plugins

apt-get install centreon-plugin-operatingsystems-linux-ssh
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :

Les paquets suivants contiennent des dépendances non satisfaites :
 centreon-plugin-operatingsystems-linux-ssh : Dépend: libssh-session-perl mais il n'est pas installable
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».
root@poller2110:~# apt-get install centreon-plugin-notification-prowl
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :

Les paquets suivants contiennent des dépendances non satisfaites :
 centreon-plugin-notification-prowl : Dépend: liblwp-useragent-perl mais il n'est pas installable
                                      Dépend: libhttp-proxypac-perl mais il n'est pas installable
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

I tested with a Central with Debian but I have errors with Gogorne. I test with a Central with CentOS


it’s OK with CentOS :wink:
 

 


@kermith72 yes a Central with Debian is still in progress.


@Pascal release 2 is now available, can you try?

Hi,

Thank you for this information.

I tried the installation process again.

I still have the problem regarding the centreon-gorgone user: 

root@poller:~# id centreon-gorgone
uid=112(centreon-gorgone) gid=120(centreon-gorgone) groups=120(centreon-gorgone),117(centreon)

It is not possible to write to centengine.cmd

2021-11-24 15:17:06 - ERROR - -engine] Command file '/var/lib/centreon-engine/rw/centengine.cmd' must be writeable

Centreon-engine user is OK :

root@poller:~# id centreon-engine
uid=110(centreon-engine) gid=118(centreon-engine) groups=118(centreon-engine),117(centreon),119(centreon-broker),120(centreon-gorgone)

I still have the issue with centplugin directory :

root@poller:~# ls /var/lib/centreon/centplugins
ls: cannot access '/var/lib/centreon/centplugins': No such file or directory

Concerning plugin, I install monitoring-plugins-basic to have check_icmp script.

Plugins are still not executable

root@lancelot:~# ls -al /usr/lib/centreon/plugins/centreon_linux_snmp.pl
-rw-r--r-- 1 root root 584238 Nov 22 21:05 /usr/lib/centreon/plugins/centreon_linux_snmp.pl

 


@Pascal release 2 is now available, can you try?

Hi,

Thank you for this information.

 

Hello Pascal,

Very thanks for you feedback, We will be working on these fixes and others I found here, soon we'll do another build. :wink:

Have a nice day


@Pascal release 2 is now available, can you try?

Hi,

Thank you for this information.

 

Hello Pascal,

Very thanks for you feedback, We will be working on these fixes and others I found here, soon we'll do another build. :wink:

Have a nice day

Hi, @lgcosta 

Is there any update on this?


Hi there,

 

Just tried this tutorial and everything went fine. Didn’t run into errors and yet the poller doesn’t come up as running on the central interface.

Despite the fact that both gorgoned and centengine are running fine on the poller.

To add more context we are running on Centreon-HA 2 nodes CentOS 7 with a 21.10 versions. Maybe I missed something.

 


Hi.

I’m not able to install centreon on Debian 11. I’ve follwed the steps but all I get is an apt-key error

wget -O- https://apt-key.centreon.com  | gpg --dearmor | tee /etc/apt/trusted.gpg.d/centreon.gpg

echo 'deb https://apt.centreon.com/repository/centreon-bullseye/ bullseye main' > /etc/apt/sources.list.d/centreon.list

apt update

Get:4 https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease a1,903 B]
Err:4 https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9253FE40FD2A4CAB
Reading package lists... Done
W: GPG error: https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 9253FE40FD2A4CAB
E: The repository 'https://apt.centreon.com/repository/centreon-bullseye bullseye InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

any idea what I’m doing wrong?


Hello,


We have the same GPG key problem. Last week it was working well.

Do you know if a new public key will be release soon ? 

 

Thanks.


Hi, 

Can’t install packages because of some dependecies issues

 sudo apt install centreon-broker centreon-broker-cbmod centreon-broker-core centreon-clib centreon-common centreon-connector centreon-connector-perl centreon-con
nector-ssh centreon-engine centreon-engine-extcommands centreon-gorgone centreon-perl-libs libzmq-constants-perl zmq-libzmq4-perl
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
Certains paquets ne peuvent être installés. Ceci peut signifier
que vous avez demandé l'impossible, ou bien, si vous utilisez
la distribution unstable, que certains paquets n'ont pas encore
été créés ou ne sont pas sortis d'Incoming.
L'information suivante devrait vous aider à résoudre la situation :

Les paquets suivants contiennent des dépendances non satisfaites :
centreon-broker-core : Dépend: libgnutls30 (>= 3.7.0) mais 3.6.13-2ubuntu1.6 devra être installé
centreon-connector-perl : Dépend: libperl5.32 (>= 5.32.0~rc1) mais il n'est pas installable
zmq-libzmq4-perl : Dépend: perlapi-5.32.1 mais il n'est pas installable
E: Impossible de corriger les problèmes, des paquets défectueux sont en mode « garder en l'état ».

 


Hi @RomainD , yes the GPG key change for Centreon 22.04 packages.

We are finishing some fix before to start a new beta phase with this version.

 


Hi @Laurent,

 

We are running on Centreon-HA 2 nodes CentOS 7 with a 21.10 versions.

Can we always download Centreon Poller 21.10 with debian 11 ? Or poller 22.04 is compatible with Central 21.10 ? 

 


You should keep the same major version.

Centreon-HA is available as *.deb with 22.04 version.

Regards,


Today I got the newsletter for 22.04 release and the blog posts says it is fully compatible with debian 11. But is there any documentation on how install centreon-central with packages on debian 11? On docs.centreon.com is nothing so far. 

Regards


From https://www.centreon.com/en/blog/whats-new-in-the-latest-centreon-22-04-version :

With software version 22.04, we’ve completed the full packaging of Centreon for the Debian 11 Linux distribution.

Our Quality Assurance team is in the process of testing this new distribution to its full extent. As soon as testing is successfully completed, Debian packages will be made available to open-source users or commercial editions customers.

Watch The Watch to be informed of the exact release date.

 

It is therefore not yet available


. sorry, my mistake


Reply