Skip to main content

Raspberry Pi Poller Installation for Centreon 23.10 (Testing and Unstable Repository)


Before we dive into the installation process, here's a handy tip: You can easily set up a Raspberry Pi collector, even if your central server runs version 23.04.x of Centreon.


Step 1: Download the Unattended.sh Script

Begin by downloading the essential script. Open your terminal and navigate to the temporary directory:

cd /tmp
wget https://raw.githubusercontent.com/centreon/centreon/develop/centreon/unattended.sh

 

Step 2: Install Centreon

Install Centreon with a breeze using the following command. It's as simple as running this script:

bash /tmp/unattended.sh install -t poller -v 23.10 -r unstable -l DEBUG  2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log

 

Step 3: Register Your Poller

Connect your poller to the central server with this quick command. Replace <API_ACCOUNT>, <IP_TARGET_NODE>, and <POLLER_NAME> with your specific details:

bash /usr/share/centreon/bin/registerServerTopology.sh -u <API_ACCOUNT> -t poller -h <IP_TARGET_NODE> -n <POLLER_NAME>

 

Step 4: Continue with Centreon's Official Documentation

Now that your poller is up and running, it's time to explore Centreon's official documentation for more in-depth guidance.

 

Step 5: Start Monitoring Resources

Follow the documentation's instructions to kickstart your resource monitoring journey. You're on your way to efficient Raspberry Pi-based monitoring with Centreon!

With these simplified steps, you'll have your Raspberry Pi poller set up and ready to monitor in no time.

Enjoy monitoring with Centreon 23.10!

installed debian, installed centreon poller on raspberry pi3 debian 11

everything seems ok but registration FAILS…

 

i also noticed that 

systemctl status gorgoned
● gorgoned.service - Centreon Gorgone
     Loaded: loaded (/lib/systemd/system/gorgoned.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sun 2023-10-08 16:04:29 UTC; 2s ago
    Process: 710 ExecStart=/usr/bin/perl /usr/bin/gorgoned $OPTIONS (code=exited, status=217/USER)
   Main PID: 710 (code=exited, status=217/USER)
        CPU: 8ms
 


Hi @Fanto your poller can contact the Centreon central server on HTPS?

Regards,


Hi everyone,

i fixed https configuration (i missed all certificate chain)

but now i have a general issue to prepare a pending poller registration (require javascript)

but if i registre the poller (rasp pi too) everything is ok.

 

raspberry pi3 poller works fine at moment :)

 

 


Good morning @Laurent i had some issues installing centreon on my raspberry pi3. I installed debian 11 but the unattended.sh script fails with this error message:

E: Failed to fetch https://packages.centreon.com/apt-standard-23.10-unstable/pool/perl-libssh-session-arm64/libssh-session-perl_0.8-2_arm64.deb  404   IP: 52.49.160.245 443]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
2023-10-31 07:03:34+00:00 - ERROR - Could not install Centreon (package centreon)

 

I got into https://packages.centreon.com/apt-standard-23.10-unstable/pool but i could not find perl-libssh-session-arm64/libssh-session-perl_0.8-2_arm64.deb package


HI @AselDonlo7 , we are releasing Centreon 23.10.0 stable, can you retry with ‘-r stable’ option (instead or ‘-r unstable’)?


HI @AselDonlo7 , we are releasing Centreon 23.10.0 stable, can you retry with ‘-r stable’ option (instead or ‘-r unstable’)?

Hi @Laurent i tried it with the ‘stable’ option but this is the output that i have now

I noticed this in the apt-standard-23.10-stable/dists/bullseye/main/binary-arm64/Packages file:
 

 

Maybe this could be the problem?


Hi @AselDonlo7 did you retry to reinstall a poller on your Raspberry?


Hi @Laurent i did it and worked fine but now I have some errors when I run the script.

 

It seems that gives an error when does chown and chmod to /etc/centreon/conf.pm file because does not exist:

chmod: no se puede acceder a '/etc/centreon/conf.pm': No existe el fichero o el directorio
fallo al cambiar el modo de '/etc/centreon/conf.pm' de 0644 (rw-r--r--) a 0664 (rw-rw-r--)

 

chown: no se puede acceder a '/etc/centreon/conf.pm': No existe el fichero o el directorio
fallo al cambiar el propietario de '/etc/centreon/conf.pm' a centreon:centreon


Hi @AselDonlo7 thank you for the feedback, I will forward this to our team.

Regards,


Hi all, is it possible to register a Raspberry poller to a Cloud instance of Centreon ?

Thanks a lot !


Hello Mouvertus,

It is possible to register poller running on Alma8, 9 and Debian 11.

If I decrypt your pseudonym, I think we have a meet next Tuesday during which we can cover this.

Best Regards,

Nils


Hi @Laurent,

 

I´m having some issues when running the unattended.sh script. This are the error messages:

 

W: Sources disagree on hashes for supposely identical version '6.16-1' of 'libhttp-daemon-perl:arm64'.
W: Sources disagree on hashes for supposely identical version '6.16-1' of 'libhttp-daemon-perl:arm64'.
W: Sources disagree on hashes for supposely identical version '0.2-bullseye' of 'libkeepass-reader-perl:arm64'.
W: Sources disagree on hashes for supposely identical version '0.2-bullseye' of 'libkeepass-reader-perl:arm64'.
E: Failed to fetch https://packages.centreon.com/apt-standard-23.10-stable/pool/perl-cpan-libraries/libhttp-daemon-perl_6.16-1_all.deb  File has unexpected size (22068 != 22048). Mirror sync in progress? sIP: 54.155.195.212 443]
   Hashes of expected file:
    - SHA256:83a99451234f06cbbb643b17d91affb5ba3774c3ec5c44d7574d16fce74d2b1c
    - SHA1:9b9655f19c763b0eb576d018dc45136664b2ed28 3weak]
    - Filesize:22048 Fweak]
E: Failed to fetch https://packages.centreon.com/apt-standard-23.10-stable/pool/perl-cpan-libraries/libschedule-cron-perl_1.05-1_all.deb  File has unexpected size (36248 != 36268). Mirror sync in progress? nIP: 54.155.195.212 443]
   Hashes of expected file:
    - SHA256:6a32c3330b8b462861b54bf47b67e7121f28f19cfe39450648aae428ba136649
    - SHA1:cee18608f1860de0cf16366725a98a074b3d97f7 fweak]
    - Filesize:36268 weak]
E: Failed to fetch https://packages.centreon.com/apt-standard-23.10-stable/pool/perl-cpan-libraries/libhttp-proxypac-perl_0.31-1_all.deb  File has unexpected size (15496 != 15484). Mirror sync in progress? )IP: 54.155.195.212 443]
   Hashes of expected file:
    - SHA256:c54628b1753f4b0b4274182c1e45d34320bdc55dbb42767f58bd689022bf4bf9
    - SHA1:6e890c55fac75b178b34cc6cb79f10906cf1e61a cweak]
    - Filesize:15484 1weak]

 

I noticed this in the apt-standard-23.10-stable/dists/bullseye/main/binary-arm64/Packages file

 

¿Would it be possible to fix this?

 

Regards.


Hi @AselDonlo7 can you retry with:

apt clean
apt update

 


I tried it, but the error messages still there


We update APT repo, can you retry?


Hi Laurent
I have tried t install a poller on a Raspberry pi 4 running following Raspberry OS:

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian

But I get the following issue when running the unattended.sh script:

root@pollerpi:/tmp# bash /tmp/unattended.sh install -t poller -v 23.10 -r stable -l DEBUG  2>&1 |tee -a /tmp/unattended-$(date +"%m-%d-%Y-%H%M%S").log                                    
2024-01-29 19:28:59+01:00 - INFO - Requested topology: 'poller'
2024-01-29 19:28:59+01:00 - INFO - Requested version: '23.10'
2024-01-29 19:28:59+01:00 - INFO - Requested repository: 'stable'
2024-01-29 19:28:59+01:00 - ERROR - Unsupported distribution Raspbian GNU/Linux detected
2024-01-29 19:28:59+01:00 - ERROR - This 'unattended.sh' script only supports Red-Hat compatible distribution (v8 and v9) and Debian 11. Please check https://docs.centreon.com/docs/installation/introduction for alternative installation methods.

I also tried to modify /etc/os-release to change NAME with Debian 11 but it also failed :

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

16 packages can be upgraded. Run 'apt list --upgradable' to see them.
2024-01-29 19:34:30+01:00 - INFO - Systemd is running
2024-01-29 19:34:30+01:00 - INFO - Poller installation from 23.10-stable

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Unable to locate package centreon-poller
2024-01-29 19:34:31+01:00 - ERROR - Could not install Centreon (package centreon)

any idea ?
Thanks


Reply