Centreon-Community / centreon-discovery

An extension to discover resources to monitor with Centreon
GNU General Public License v2.0
7 stars 19 forks source link

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

Open piellick opened 8 years ago

piellick commented 8 years ago

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

[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

maksimatveev commented 8 years ago

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

piellick commented 8 years ago

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

ur13000 commented 8 years ago

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 commented 8 years ago

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

piellick commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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