Skip to content

Execution connectors designed to improve execution of Centreon-Engine checks

License

Notifications You must be signed in to change notification settings

centreon-lab/centreon-connectors

 
 

Repository files navigation

Centreon Connectors

Centreon Connectors are extremely fast open-source monitoring check execution daemons designed to work with Centreon Engine.

It is a low-level component of the Centreon software suite.

Centreon Connectors are released under the Apache Software License version 2 and is endorsed by the Centreon company.

There are currently two open-source connectors :

  • Centreon Connector Perl : persistent Perl interpreter that executes Perl plugins very fast
  • Centreon Connector SSH : maintain SSH connexions opened to reduce overhead of plugin execution over SSH

Documentation

Coming soon on https://docs.centreon.com

Installing from binaries

Centreon Connectors is a low-level component of the Centreon software suite. If this is your first installation you would probably want to install it entirely.

Centreon (the company behind the Centreon software suite) provides binary packages for RedHat / CentOS. They are available either as part of the Centreon Platform or as individual packages on our RPM repository.

Once the repository installed a simple command will be needed to install the connectors:

yum install centreon-connector-perl centreon-connector-ssh

Fetching sources

Beware that the repository hosts in-developement sources and that it might not work at all.

Stable releases are available as gziped tarballs on Centreon's download site.

Compilation

This paragraph is only a quickstart guide for the compilation of Centreon Clib.

Centreon Connectors need Centreon Clib to be build. You should install it first.

CentOS / Debian / Raspbian

Compilation of this distribution is pretty straightforward.

You'll need to download the project and launch the cmake.sh script to prepare the compilation environment:

git clone https://github.com/centreon/centreon-connectors
cd centreon-connectors
./cmake.sh

Now launch the compilation using the make command and then install the software by running make install as priviledged user:

cd build
make
make install

Other distributions

If you are on another distribution, then follow the steps below.

Check if you have these packages installed (Note that packages names come from CentOS distributions, so if some packages names don't match on your distribution try to find their equivalent names): git, make, cmake, gcc-c++.

For the projet compilation you need to have conan installed. Try to use the package manager given by your OS to install conan. ('apt' for Debian, 'rpm' for Red Hat, 'pacman' for Arch Linux, ...). It is prefered to install gcc before conan.

Example:

apt install conan

If it does not work, conan can be installed with pip3:

pip3 install conan

All the dependencies pulled by conan are located in conanfile.txt. If you want to use a dependency from your package manager instead of conan, you need to remove it from conanfile.txt.

You can now prepare the compilation environment:

git clone https://github.com/centreon/centreon-connectors
mkdir -p centreon-connectors/build
cd centreon-connectors/build
conan install --build missing ..
cmake -DCMAKE_BUILD_TYPE=Release -DWITH_PREFIX_BINARY=/usr/lib64/centreon-connector -DWITH_TESTING=On ..

This will look for required dependencies and print a summary of the compilation parameters if everything went fine.

Now launch the compilation using the make command and then install the software by running make install as priviledged user:

make
make install

You're done!

Bug reports / Feature requests

The best way to report a bug or to request a feature is to open an issue in GitHub's issue tracker.

Please note that Centreon Connectors follows the same workflow as Centreon to process issues.

For a quick resolution of a bug your message should contain:

  • The problem description
  • Precise steps on how to reproduce the issue (if you're using Centreon web UI tell us where you click)
  • The expected behavior
  • The Centreon products versions
  • The operating system you're using (name and version)
  • If possible configuration, log and debug files

Contributing

Contributions are much welcome! If possible provide them as pull-requests on GitHub. If not, patches will do but describe against which version/commit they apply.

For any question or remark feel free to send a mail to the project maintainers:

     

About

Execution connectors designed to improve execution of Centreon-Engine checks

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.7%
  • CMake 9.3%
  • Shell 1.9%
  • Perl 0.1%