Giter Club home page Giter Club logo

Comments (7)

george-vieira avatar george-vieira commented on June 19, 2024

oh just to add.. instead of adding the paths for the gui. couldn't we simply replace their 'vars' file as below shows?

eitadmin@qetesh:/usr/local/src/centreon-2.6.1 $ cat varinstall/vars

--Shell-script--

install_vars

This file contain reconfigured variables used in install scripts

LOG_DIR="$BASE_DIR/log"
LOG_FILE="$LOG_DIR/install_centreon.log"
TMP_DIR="/tmp/centreon-setup"
SNMP_DIR="/etc/snmp/"
CENTREON_CONF_1_4="/etc/[co][er][ne][to][rn]*.conf"
DEFAULT_CENTREON_CONF="/etc/centreon/centreon.conf"
CENTREON_CONF="/etc/centreon.conf"
#use $CENTREON_ETC/centreon.conf
PEAR_MODULES_LIST="pear.lst"
DEFAULT_INSTALL_DIR_NAGIOS="/usr/local/nagios"
DEFAULT_INSTALL_DIR_CENTREON="/usr/local/centreon"
DEFAULT_RRD_PERL="/usr/lib/perl5"
DEFAULT_SUDO_FILE="/etc/sudoers"
DEFAULT_WEB_USER="www-data"
DEFAULT_WEB_GROUP="www-data"
DEFAULT_NAGIOS_USER="nagios"
DEFAULT_NAGIOS_GROUP="nagcmd"
DEFAULT_BIN_RRDTOOL="/usr/bin/rrdtool"
DEFAULT_BIN_MAIL="/usr/bin/mail"
DEFAULT_BIN_SSH="/usr/bin/ssh"
DEFAULT_BIN_SCP="/usr/bin/scp"
DEFAULT_INIT_D="/etc/init.d"
DEFAULT_CRON_D="/etc/cron.d"
DEFAULT_PEAR_PATH="/usr/share/php"
DEFAULT_PHP_BIN="/usr/bin/php"
DEFAULT_PERL_BIN="/usr/bin/perl"
DEFAULT_CENTREON_LOG="/usr/local/centreon/log"
DEFAULT_CENTREON_ETC="/etc/centreon"
DEFAULT_CENTREON_RUNDIR="/var/run/centreon"
DEFAULT_CENTREON_GENDIR="/usr/local/centreon"
DEFAULT_CENTREON_VARLIB="/var/lib/centreon"
DEFAULT_CENTSTORAGE_RRD="/var/lib/centreon"
DEFAULT_CENTPLUGINS_TMP="/var/lib/centreon/centplugins"
DEFAULT_CENTSTORAGE_BINDIR="bin"
DEFAULT_CENTCORE_BINDIR="bin"
DEFAULT_SNMP_ETC="/etc/snmp"
DEFAULT_SNMPTT_BINDIR="/usr/local/centreon/bin/"
DEFAULT_CENTPLUGINSTRAPS_BINDIR="/usr/local/centreon/bin"
DEFAULT_CENTREON_USER="centreon"
DEFAULT_CENTREON_GROUP="centreon"
DEFAULT_PLUGIN_DIR="/usr/lib/nagios/plugins"
DEFAULT_CENTREON_BINDIR="/usr/local/centreon/bin"
DEFAULT_CENTREON_DATADIR="/usr/local/centreon/data"

from centreon-install.

albundy83 avatar albundy83 commented on June 19, 2024

Hello,

if you want an updated version that support directly Debian Jessie and latest release, you can check the fork :
https://github.com/GreenCom-Networks/centreon-install
Enjoy.

from centreon-install.

george-vieira avatar george-vieira commented on June 19, 2024

Forked my own which also fills out the paths correctly making it even easier to just select Broker and click next.
Your fork is missing libsnmp-perl which is required for centreontrapd service to start btw.

from centreon-install.

albundy83 avatar albundy83 commented on June 19, 2024

Ah yes, you are right.
Thanks.

from centreon-install.

george-vieira avatar george-vieira commented on June 19, 2024

Also noticed there's some issue with centcore and an strace shows it's looking for cmd file in wrong path:
stat("/var/lib/centreon/centcore.cmd", 0x1be7238) = -1 ENOENT (No such file or directory)
stat("/var/lib/centreon/centcore/", 0x1be7238) = -1 ENOENT (No such file or directory)

But the /etc/centreon/conf.pm config file contains:
\ # Centreon Centcore Command File
$cmdFile = "/var/lib/centreon-engine/rw/centengine.cmd";

which I'm now confused as their /usr/share/perl5/centreon/script/centcore.pm library files appears to use centcore.cmd but the /etc/centreon/conf.pm specifies the centreon-engine cmd file.

Now I'm confused what uses what, talks to what via what.lol.
Is this some mis configuration from the install?

What brought me to this issue is that I can't acknowledge services or hosts. simply nothing happens.

from centreon-install.

albundy83 avatar albundy83 commented on June 19, 2024

Hello,

which version are you using, as I have now moved to Centreon Web 2.7...
Where do you see this error ?

from centreon-install.

george-vieira avatar george-vieira commented on June 19, 2024

ignore it, worked it out to be permission issue on /var/lib/centreon which was possibly caused when I moved that path to a new disk volume due to it's massive size and somehow made it 755 rather than 775.
I find it really stupid that centreon uses passthru() to blindly write into a unix socket and not monitor errors from it hence why I endured so much pain trying to find the cause.

from centreon-install.

Related Issues (8)

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.