Comments (7)
Hi
I have exactly the same problem with CES 3.3 someone know how to resolve this issue?
Thank You
Loic
from centreon-discovery.
Hi,
I have the same issue with v 2.3.1 on CES 3.3, has anyone managed to resolve it ?
install.log finish with :
error: command 'gcc' failed with exit status 1
Module MySQLdb : FAIL
Modules Python weren't installed with success : FAIL
Full install.log attached
install.log.txt
Thank you for any help.
Fab
from centreon-discovery.
Hi,
I finally managed to install this version on CES 3.3 by updating git and then git cloning centreon-discovery rather than downloading it :/
from centreon-discovery.
Hi
Can you explain what you do exactly?
on my Ces3.3 I have git 1.7.1
If I clone Git I have a local copie ok .
When I launch install.sh it's fail on Python Modules Mysqldb
from centreon-discovery.
@lolo54000
Everything I did is here, I think I forget nothing :
Add MariaDB repository and update
echo "# MariaDB 5.5 CentOS repository list - created 2016-09-01 11:56 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1" > /etc/yum.repos.d/MariaDB.repo
yum update
Install requirements
yum groupinstall "Development tools"
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel python-devel MariaDB-devel
rpm -vhU http://nmap.org/dist/nmap-7.12-1.x86_64.rpm
wget http://github.com/git/git/archive/v2.9.3.tar.gz
tar -xzf v2.9.3.tar.gz
cd git-2.9.3
make prefix=/usr/local all
make prefix=/usr/local install
Clone Centreon-Discovery
git clone http://github.com/Centreon-Community/centreon-discovery.git
Prepare before install
cd centreon-discovery
nano install.sh
replace line 210
PACKAGES="python-devel mysql-devel"
by
PACKAGES="python-devel MariaDB-devel"
chmod 755 install.sh
Install
./install.sh -i -t central
Then you should be able to install the module in Centreon Web administration.
... but it looks like discovering does not work anyway, still something missing :/
from centreon-discovery.
Got it !
First don't install last version of nmap, it won't work with it, if you did, do this :
rpm -e nmap
rpm -vhU https://nmap.org/dist/nmap-5.51-1.x86_64.rpm
Next, if you only have a central, you must install the module in "both" mode :
./install.sh -i -t both
Last, there is an error in the file /usr/share/centreon-discovery/DiscoveryAgent_central.py somewhere in here line 69:
if ligne.lstrip().startswith("$conf_centreon['password']"):
conf_password = ligne.replace("$conf_centreon['password'] = \"","").replace("\";","").rstrip()
so it does not find the database password.
As I am really new to all this, I don't know how to fix this in a clean way, my temporary fix is on line 74 :
db=MySQLdb.connect(host=conf_host,user=conf_user,passwd='actual_db_passwd_here',db=conf_db)
I guess someone can provide a cleaner fix :)
from centreon-discovery.
best fix I can find :
nano /etc/centreon/centreon.conf.php
replace line 22
$conf_centreon['password'] = 'your_db_password';
by
$conf_centreon['password'] = "your_db_password";
from centreon-discovery.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from centreon-discovery.