Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CES 3.3 : Need Mysql-devel at install Script #2

Open
piellick opened this issue May 2, 2016 · 7 comments
Open

CES 3.3 : Need Mysql-devel at install Script #2

piellick opened this issue May 2, 2016 · 7 comments

Comments

@piellick
Copy link

piellick commented May 2, 2016

I'm trying to install centreon-discovery (2.1) module on fresh CES 3.3, MariaDB-devel already installed :

[root@centreon centreon-discovery-Centreon-Discovery-2.1]# yum install mysql-devel
Modules complémentaires chargés : fastestmirror
Configuration du processus d'installation
Loading mirror speeds from cached hostfile

  • base: fr2.rpmfind.net
  • extras: mirror.in2p3.fr
  • updates: fr2.rpmfind.net
    Le paquet mysql-devel-5.1.73-5.el6_7.1.x86_64 est rendu obsolète par MariaDB-devel-10.1.13-1.el7.centos.x86_64 qui est déjà installé
    Rien à faire
    [root@centreon centreon-discovery-Centreon-Discovery-2.1]#

[root@centreon centreon-discovery-Centreon-Discovery-2.1]# ./install.sh -i -t central
Waiting ...

http://community.centreon.com/projects/centreon-discovery

Thanks for using Centreon

v2.1


    Find distribution

OS found: CENTOS OK


    Checking all needed binaries

rm OK
cp OK
mv OK
/bin/chmod OK
/bin/chown OK
echo OK
more OK
mkdir OK
find OK
/bin/grep OK
/bin/cat OK
/bin/sed OK
/usr/bin/python OK
/usr/bin/gcc OK
/usr/bin/yum OK


    Checking all needed packages

python-devel OK
mysql-devel FAIL

Please check fail packages and retry

@piellick piellick changed the title Need Mysql-devel at install Script CES 3.3 : Need Mysql-devel at install Script May 2, 2016
@maksimatveev
Copy link

@piellick and if the change in the script mysql-devel on mariadb-devel?

@piellick
Copy link
Author

piellick commented May 3, 2016

hello, can you tell me where i need to change it ?

I try this :

binaries/packages in function distrib

if [ "$distrib" == "DEBIAN" ] || [ "$distrib" == "UBUNTU" ] ; then
BINARIES=$BINARIES" ${DPKG}"
if [ "$typeInstall" == "poller" ] ; then
PACKAGES="python-dev"
else
PACKAGES="python-dev libmysqlclient-dev"
fi
elif [ "$distrib" == "REDHAT" ] || [ "$distrib" == "CENTOS" ] ; then
BINARIES=$BINARIES" ${YUM}"
if [ "$typeInstall" == "poller" ] ; then
PACKAGES="python-devel"
else
PACKAGES="python-devel mariadb-devel"
fi

fi

but the check don't work :


    Checking all needed packages

python-devel OK
mariadb-devel FAIL

Please check fail packages and retry
[root@centreon centreon-discovery-Centreon-Discovery-2.1]# yum install mariadb-devel
Modules complémentaires chargés : fastestmirror
Configuration du processus d'installation
Loading mirror speeds from cached hostfile

  • base: fr2.rpmfind.net
  • extras: mirror.in2p3.fr
  • updates: fr2.rpmfind.net
    Le paquet MariaDB-devel-10.1.13-1.el7.centos.x86_64 est déjà installé dans sa dernière version
    Rien à faire
    [root@centreon centreon-discovery-Centreon-Discovery-2.1]#

@ur13000
Copy link

ur13000 commented May 3, 2016

Hello !
I had the same problem
try "locate mariadb" and "locate MariaDB", it's not the same
you must write in the file install.sh:

PACKAGES="python-devel MariaDB-devel"
and not PACKAGES="python-devel mariadb-devel"
I hope this will help you, this solved my problem

@piellick
Copy link
Author

piellick commented May 3, 2016

god ...you right ! Thanks. Install script need to be updated.

@piellick
Copy link
Author

piellick commented May 3, 2016

ur13000 , Do you have to modify other things in the script?

Globally, this script already has been tested with CES 3.3 or am I the only one to want to install a discovery module ?


    Load parameters

Please specify the directory with contain "instCentWeb.conf" [/etc/centreon]

/etc/centreon

Unable to load all parameters in "instCentWeb.conf"
INSTALL ABORT

@ur13000
Copy link

ur13000 commented May 3, 2016

Not anything else, I just had a few missing rpm files.

Load Centreon parameters

Please specify the directory with contain "instCentWeb.conf" [/etc/centreon]

/etc/centreon

Parameters were loaded with success OK

@maksimatveev
Copy link

@piellick it works with centreon 2.7.x? addition in UI to configure anything needed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants