+ Répondre à la discussion Actualité déjà publiée
  1. #1
    Rédacteur

    Avatar de ram-0000
    Homme Profil pro
    Consultant en sécurité
    Inscrit en
    mai 2007
    Messages
    11 517
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 54
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Consultant en sécurité
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : mai 2007
    Messages : 11 517
    Points : 50 399
    Points
    50 399

    Par défaut Le serveur de supervision libre (partie 3) - Installation de Centreon

    Bonjour à tous !

    La rubrique Réseaux vous propose un article sur Nagios par nicolargo : Le serveur de supervision libre (partie 3) - Installation de Centreon.

    Je propose de commencer une série d'articles sur l'installation d'un serveur de supervision basé uniquement sur des solutions libres :
    • Partie I - Installation du système d'exploitation GNU/Linux ;
    • Partie II - Installation de Nagios ;
    • Partie III - Installation de Centreon ;
    • Partie IV - Installation de Cacti.
    Cet article traitera de l'installation de Centreon.
    N'hésitez pas à faire part de vos remarques, commentaires ou propositions d'améliorations !

    Le serveur de supervision libre (partie 3) - Installation de Centreon

    Raymond
    Vous souhaitez participer à la rubrique Réseaux ? Contactez-moi

    Cafuro Cafuro est un outil SNMP dont le but est d'aider les administrateurs système et réseau à configurer leurs équipements SNMP réseau.
    e-verbe Un logiciel de conjugaison des verbes de la langue française.

    Ma page personnelle sur DVP
    .

  2. #2
    Candidat au Club
    Homme Profil pro
    Cyberdocumentaliste
    Inscrit en
    octobre 2016
    Messages
    2
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Drôme (Rhône Alpes)

    Informations professionnelles :
    Activité : Cyberdocumentaliste

    Informations forums :
    Inscription : octobre 2016
    Messages : 2
    Points : 3
    Points
    3

    Par défaut Par défaut Le serveur de supervision libre (partie 3) - Installation de Centreon

    salut je suis en pleinne installation de ndoutils pour nagios et quand j'arrive a la compilation cela ne marche pas voila l'erreur...

    make all
    cd ./src && make
    make[1]: Entering directory '/usr/src/ndoutils-2.1.3/src'
    make ndo2db-2x
    make[2]: Entering directory '/usr/src/ndoutils-2.1.3/src'
    gcc -fPIC -g -O2 -DHAVE_CONFIG_H -c -o db.o db.c
    db.c: In function ‘ndo2db_db_init’:
    db.c:169:6: warning: implicit declaration of function ‘mysql_init’ [-Wimplicit-function-declaration]
    if(!mysql_init(&idi->dbinfo.mysql_conn)){
    ^~~~~~~~~~
    db.c:169:29: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    if(!mysql_init(&idi->dbinfo.mysql_conn)){
    ^
    db.c: In function ‘ndo2db_db_connect’:
    db.c:210:7: warning: implicit declaration of function ‘mysql_real_connect’ [-Wimplicit-function-declaration]
    if (!mysql_real_connect(
    ^~~~~~~~~~~~~~~~~~
    db.c:211:16: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    &idi->dbinfo.mysql_conn,
    ^
    db.c:218:4: error: ‘CLIENT_REMEMBER_OPTIONS’ undeclared (first use in this function)
    CLIENT_REMEMBER_OPTIONS
    ^~~~~~~~~~~~~~~~~~~~~~~
    db.c:218:4: note: each undeclared identifier is reported only once for each function it appears in
    db.c:220:3: warning: implicit declaration of function ‘mysql_close’ [-Wimplicit-function-declaration]
    mysql_close(&idi->dbinfo.mysql_conn);
    ^~~~~~~~~~~
    db.c:220:27: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    mysql_close(&idi->dbinfo.mysql_conn);
    ^
    db.c:221:77: warning: implicit declaration of function ‘mysql_error’ [-Wimplicit-function-declaration]
    syslog(LOG_USER|LOG_INFO,"Error: Could not connect to MySQL database: %s",mysql_error(&idi->dbinfo.mysql_conn));
    ^~~~~~~~~~~
    db.c:221:101: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    syslog(LOG_USER|LOG_INFO,"Error: Could not connect to MySQL database: %s",mysql_error(&idi->dbinfo.mysql_conn));
    ^
    db.c: In function ‘ndo2db_db_disconnect’:
    db.c:244:26: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    mysql_close(&idi->dbinfo.mysql_conn);
    ^
    db.c: In function ‘ndo2db_db_hello’:
    db.c:265:5: warning: implicit declaration of function ‘asprintf’ [-Wimplicit-function-declaration]
    if(asprintf(&buf,"SELECT instance_id FROM %s WHERE instance_name='%s'",ndo2db_db_tablenames[NDO2DB_DBTABLE_INSTANCES],idi->instance_name)==-1)
    ^~~~~~~~
    db.c:268:14: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
    ^
    db.c:268:28: warning: implicit declaration of function ‘mysql_store_result’ [-Wimplicit-function-declaration]
    idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
    ^~~~~~~~~~~~~~~~~~
    db.c:268:59: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
    ^
    db.c:269:18: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_row’
    if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
    ^
    db.c:269:29: warning: implicit declaration of function ‘mysql_fetch_row’ [-Wimplicit-function-declaration]
    if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
    ^~~~~~~~~~~~~~~
    db.c:269:56: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
    ^
    db.c:270:53: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_row’
    ndo2db_convert_string_to_unsignedlong(idi->dbinfo.mysql_row[0],&idi->dbinfo.instance_id);
    ^
    db.c:273:3: warning: implicit declaration of function ‘mysql_free_result’ [-Wimplicit-function-declaration]
    mysql_free_result(idi->dbinfo.mysql_result);
    ^~~~~~~~~~~~~~~~~
    db.c:273:32: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    mysql_free_result(idi->dbinfo.mysql_result);
    ^
    db.c:274:14: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    idi->dbinfo.mysql_result=NULL;
    ^
    db.c:283:28: warning: implicit declaration of function ‘mysql_insert_id’ [-Wimplicit-function-declaration]
    idi->dbinfo.instance_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
    ^~~~~~~~~~~~~~~
    db.c:283:56: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    idi->dbinfo.instance_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
    ^
    db.c:303:55: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    idi->dbinfo.conninfo_id=mysql_insert_id(&idi->dbinfo.mysql_conn);
    ^
    db.c: In function ‘ndo2db_db_query’:
    db.c:477:6: warning: implicit declaration of function ‘mysql_query’ [-Wimplicit-function-declaration]
    if (mysql_query(&idi->dbinfo.mysql_conn,buf)) {
    ^~~~~~~~~~~
    db.c:477:30: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    if (mysql_query(&idi->dbinfo.mysql_conn,buf)) {
    ^
    db.c:479:75: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    syslog(LOG_USER|LOG_INFO,"mysql_error: '%s'\n", mysql_error(&idi->dbinfo.mysql_conn));
    ^
    db.c: In function ‘ndo2db_handle_db_error’:
    db.c:512:9: warning: implicit declaration of function ‘mysql_errno’ [-Wimplicit-function-declaration]
    result=mysql_errno(&idi->dbinfo.mysql_conn);
    ^~~~~~~~~~~
    db.c:512:33: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    result=mysql_errno(&idi->dbinfo.mysql_conn);
    ^
    db.c:513:13: error: ‘CR_SERVER_LOST’ undeclared (first use in this function)
    if(result==CR_SERVER_LOST || result==CR_SERVER_GONE_ERROR){
    ^~~~~~~~~~~~~~
    db.c:513:39: error: ‘CR_SERVER_GONE_ERROR’ undeclared (first use in this function)
    if(result==CR_SERVER_LOST || result==CR_SERVER_GONE_ERROR){
    ^~~~~~~~~~~~~~~~~~~~
    db.c: In function ‘ndo2db_db_get_latest_data_time’:
    db.c:565:14: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
    ^
    db.c:565:59: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_conn’
    idi->dbinfo.mysql_result=mysql_store_result(&idi->dbinfo.mysql_conn);
    ^
    db.c:566:18: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_row’
    if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
    ^
    db.c:566:56: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    if((idi->dbinfo.mysql_row=mysql_fetch_row(idi->dbinfo.mysql_result))!=NULL){
    ^
    db.c:567:53: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_row’
    ndo2db_convert_string_to_unsignedlong(idi->dbinfo.mysql_row[0],t);
    ^
    db.c:569:32: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    mysql_free_result(idi->dbinfo.mysql_result);
    ^
    db.c:570:14: error: ‘ndo2db_dbconninfo {aka struct ndo2db_dbconninfo_struct}’ has no member named ‘mysql_result’
    idi->dbinfo.mysql_result=NULL;
    ^
    Makefile:108: recipe for target 'db.o' failed
    make[2]: *** [db.o] Error 1
    make[2]: Leaving directory '/usr/src/ndoutils-2.1.3/src'
    Makefile:71: recipe for target 'ndo2db' failed
    make[1]: *** [ndo2db] Error 2
    make[1]: Leaving directory '/usr/src/ndoutils-2.1.3/src'
    Makefile:74: recipe for target 'all' failed
    make: *** [all] Error 2

    pouvez vous m'aider peace

Discussions similaires

  1. Réponses: 1
    Dernier message: 07/01/2014, 13h43
  2. Réponses: 0
    Dernier message: 09/11/2013, 10h28

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo