Giter VIP home page Giter VIP logo

centreon-discovery's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

centreon-discovery's Issues

CES 3.3 : Module MySQLdb FAIL, Modules Python weren't installed with success FAIL

Hi everyone,

I'm trying to install centreon-discovery on CES 3.3. Mariadb-devel is installed.
I followed this issue to resolve "MariaDB-devel FAIL"
--> https://github.com/Centreon-Community/centreon-discovery/issues/2

But now i got the following error :

`[root@vpc-gda-centreon centreon-discovery-master]# ./install.sh -i -t both
Waiting ...

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

Thanks for using Centreon

v2.3.1

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/nmap OK
/usr/bin/yum OK


    Checking all needed packages

python-devel OK

MariaDB-devel OK


    Accepting licence

You will now read Centreon Discovery module Licence.
Press enter to continue.

Do you accept GPL license ?
[y/n], default to [n]:

y


    Checking version number

python 2.6 (min. 2.4) OK
nmap 5.51 (min. 5.0) OK


    Install Python modules

Module PyCrypto ... OK
Module NMAP ... OK
Module SetupTools ... OK
Module MySQLdb ... FAIL
Modules Python weren't installed with success FAIL
INSTALL ABORT
`

I found with "echo" flags that the script is trying to "install modPython;" on line 321. That's why i have a FAIL.

Do you have some advices to help me ?

Thank you.

Frédéric LAINÉ

CES 3.3 : Need Mysql-devel at install Script

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

Problem to connect to the database for the poller

When you launch a scan on an ip range, in the Central_DiscoveryAgent.log you get this line:
--- Call DiscoveryAgent_Central ---
Check the status of poller
Traceback (most recent call last):
File "/usr/share/centreon-discovery-agent/DiscoveryAgent_central.py", line 225, in
db=connectToDB()
File "/usr/share/centreon-discovery-agent/DiscoveryAgent_central.py", line 74, in connectToDB
db=MySQLdb.connect(host=conf_host,user=conf_user,passwd=conf_password,db=conf_db)
File "build/bdist.linux-x86_64/egg/MySQLdb/init.py", line 81, in Connect
File "build/bdist.linux-x86_64/egg/MySQLdb/connections.py", line 187, in init
_mysql_exceptions.OperationalError: (1045, "Access denied for user '*****'@'localhost' (using password: YES)")

The problem is in the file /etc/centreon/centreon.conf.php, the password is in '' instead of "".

lost menu

Hi
dont'have all menu for discovery
for ex: configuration services rules is missing

install from iso
centreon 2.8.19

poller scan fails

When running a poller discovery from the central web interface it errors out.

Error message from the web interface is: "ERROR : Connection lost with the poller agent"

I have 2 networks that I try to scan. 1 the discovery daemon on the poller will die. The other one it seems to live, but still produces the error. The error message below are from the scan that doesn't kill the daemon. If I limit the scan range, it seems to finish, i.e. using /28 instead of /24. Not sure if it matters but the Central is on the Internet in a data center. The poller in within a lan on a private network and I have port forwarding to the poller.

The logs on the poller say

DiscoveryAgent_poller.py : STATUS_POLLER
Connected by ('REDACTED', 60676)
DiscoveryAgent_poller.py : SCAN_RANGEIP for 10.13.13.0/24
Send : #state#10.13.13.1#up#REDACTED'#pfSense REDACTED 2.1.4-RELEASE pfSense FreeBSD 8.3-RELEASE-p16 amd64
Send : #state#10.13.13.134#up#c4-centreon-poller#Linux c4-centreon-poller 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 19:58:13 UTC 2016 x86_64
Send : #state#10.13.13.216#up#REDACTED#Linux REDACTED 2.6.18-409.el5 #1 SMP Tue Mar 15 18:13:50 EDT 2016 x86_64
Send : #state#10.13.13.27#up##GS724Tv4 ProSafe 24-port Gigabit Ethernet Smart Switch, 6.3.1.4, B1.0.0.4
Send : #state#10.13.13.110#up#* TimeOut SNMP # TimeOut SNMP *
Send : #state#10.13.13.2#up#* TimeOut SNMP # TimeOut SNMP *
Send : #state#10.13.13.152#up#* TimeOut SNMP # TimeOut SNMP *
Send : #state#10.13.13.205#up#* TimeOut SNMP # TimeOut SNMP *
Send : #state#10.13.13.225#up#* TimeOut SNMP # TimeOut SNMP *
Send : #state#10.13.13.218#up#* TimeOut SNMP # TimeOut SNMP *
Send : #state#10.13.13.6#up#* TimeOut SNMP # TimeOut SNMP *

scanip#done


From the Central server's log

Central log : 2016/09/01 12:23:20

--- Call DiscoveryAgent_Central ---
Scan range IP
Scan the range IP 10.13.13.0 (range #17)
SCAN_RANGEIP : #state#10.13.13.1#up#REDACTED#pfSense REDACTED 2.1.4-RELEASE pfSense FreeBSD 8.3-RELEASE-p16 amd64
SCAN_RANGEIP : #state#10.13.13.134#up#c4-centreon-poller#Linux c4-centreon-poller 2.6.32-642.4.2.el6.x86_64 #1 SMP Tue Aug 23 19:58:13 UTC 2016 x86_64
SCAN_RANGEIP : #state#10.13.13.216#up#REDACTED#Linux REDACTED 2.6.18-409.el5 #1 SMP Tue Mar 15 18:13:50 EDT 2016 x86_64
SCAN_RANGEIP : #state#10.13.13.27#up##GS724Tv4 ProSafe 24-port Gigabit Ethernet Smart Switch, 6.3.1.4, B1.0.0.4
SCAN_RANGEIP : #state#10.13.13.110#up#* TimeOut SNMP # TimeOut SNMP *
SCAN_RANGEIP : #state#10.13.13.2#up#* TimeOut SNMP # TimeOut SNMP *
SCAN_RANGEIP : #state#10.13.13.152#up#* TimeOut SNMP # TimeOut SNMP *
SCAN_RANGEIP : #state#10.13.13.205#up#* TimeOut SNMP # TimeOut SNMP *
Error while receiving data.
Check connection of poller.
END
--- End DiscoveryAgent_Central ---

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.