Giter Club home page Giter Club logo

centreon-clib's Introduction

Centreon - IT and Application monitoring software

stable version  License  Centreon bug tracker  Official documentation  Official Slack  Official website  Official Download  Official The Watch  

Centreon Twitter  Centreon Labs Twitter  

Centreon ScreenShot

Introduction

Centreon is one of the most flexible and powerful monitoring softwares on the market; it is absolutely free and Open Source.

Getting Started

Centreon software can be set up

Supported versions

Regarding the Products Lifecycle Policy, only the following versions are supported:

  • Centreon 21.10.x, released on November 2, 2021, full support
  • Centreon 21.04.x, released on April 21, 2021, security and blocking issue support only
  • Centreon 20.10.x, released on October 21, 2020, security support only

If your version is not one of the 3 versions specified above, we recommend that you upgrade your platform immediately.

Authors

Project leaders

   

Product managers

       

Development team

                             

Quality Assurance

       

Documentation

 

See also the list of our contributors

Security Acknowledgement page

We want to thank all reporters and pentesters who help us improve our product each day.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, bug report, feature request and the process for submitting pull requests for us.

License

This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details

centreon-clib's People

Contributors

adr-mo avatar afouille avatar bouda1 avatar cgagnaire avatar dguillois avatar kduret avatar lgcosta avatar rem31 avatar sc979 avatar sylvestreg avatar tmpaccount01 avatar zguennoune02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centreon-clib's Issues

Cannot compile on Debian 11

Using cmake.sh script to install and configure automatically all dependencies, when doing the make, I get the following error on Debian 11:

[ 84%] Building CXX object test/CMakeFiles/ut-clib.dir/timestamp.cc.o
[ 87%] Building CXX object test/CMakeFiles/ut-clib.dir/version.cc.o
In file included from /root/lab/centreon-clib/test/version.cc:20:
/root/.conan/data/gtest/cci.20210126/_/_/package/e019a06362b932ca5d1b082b6c112aa150c88de4/include/gtest/gtest.h: In instantiation of ‘testing::AssertionResult testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = unsigned int]’:
/root/.conan/data/gtest/cci.20210126/_/_/package/e019a06362b932ca5d1b082b6c112aa150c88de4/include/gtest/gtest.h:1564:23:   required from ‘static testing::AssertionResult testing::internal::EqHelper::Compare(const char*, const char*, const T1&, const T2&) [with T1 = int; T2 = unsigned int; typename std::enable_if<((! std::is_integral<_Tp>::value) || (! std::is_pointer<_Dp>::value))>::type* <anonymous> = 0]’
/root/lab/centreon-clib/test/version.cc:26:3:   required from here
/root/.conan/data/gtest/cci.20210126/_/_/package/e019a06362b932ca5d1b082b6c112aa150c88de4/include/gtest/gtest.h:1545:11: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘const unsigned int’ [-Wsign-compare]
 1545 |   if (lhs == rhs) {
      |       ~~~~^~~~~~
[ 89%] Linking CXX executable ut-clib
/usr/bin/ld: cannot find -lcentreon_clib
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/ut-clib.dir/build.make:257: test/ut-clib] Error 1
make[1]: *** [CMakeFiles/Makefile2:1035: test/CMakeFiles/ut-clib.dir/all] Error 2
make: *** [Makefile:160: all] Error 2

With Debian 10 works normally

More information:

# neofetch
       _,met$$$$$gg.          root@debian11
    ,g$$$$$$$$$$$$$$$P.       -------------
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux 11 (bullseye) x86_64
 ,$$P'              `$$$.     Host: BHYVE 1.0
',$$P       ,ggs.     `$$b:   Kernel: 5.10.0-8-amd64
`d$$'     ,$P"'   .    $$$    Uptime: 22 mins
 $$P      d$'     ,    $$P    Packages: 1038 (dpkg)
 $$:      $$.   -    ,d$$'    Shell: bash 5.1.4
 $$;      Y$b._   _,d$P'      CPU: Intel i3 550 (2) @ 3.190GHz
 Y$$.    `.`"Y$$$$P"'         GPU: 00:06.0 Vendor fb5d Device 40fb
 `$$b      "-.__              Memory: 86MiB / 1981MiB
  `Y$$
   `Y$$.
     `$$b.
       `Y$$b.
          `"Y$b._
              `"""

No magic for AlmaLinux in cmake.sh

The cmake.sh script has some magic for CentOS and Debian-based distributions to install some dependencies.

This should also detect AlmaLinux (by looking for /etc/almalinux-release)

Incompatibility with conan2

While trying to build centreon-clib from sources on AlmaLinux 9, the build failed with:

======== Finalizing install (deploy, generators) ========
conanfile.txt: Writing generators to /home/almalinux/centreon-clib
ERROR: Invalid generator 'cmake_find_package'. Available types: CMakeToolchain, CMakeDeps, MesonToolchain, MSBuildDeps, MSBuildToolchain, NMakeToolchain, NMakeDeps, VCVars, QbsProfile, VirtualRunEnv, VirtualBuildEnv, AutotoolsDeps, AutotoolsToolchain, PkgConfigDeps, BazelDeps, BazelToolchain, IntelCC, XcodeDeps, XcodeToolchain, PremakeDeps

Quickly searching for this led me to https://stackoverflow.com/questions/75794398/conan-returning-error-invalid-generator-cmake-when-running-conan-install

Changing the pip install command in cmake.sh to install conan<2.0 fixed it. Since Conan 2.0 is relatively fresh (https://blog.conan.io/2023/02/22/Conan-2.0.html), it appears centreon-clib has not been migrated to it yet. We should either fix the pip install line, or migrate to Conan 2.0.

Don't handle EINTR

EINTR is handle in multiple components of Clib whereas it shouldn't. This would let upper floors handle breakage in syscalls for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.