| 10 hakkai, le 7 avr 2008 à 16:21:18Bonjour, voila j'ai un petit souci au niveau d'oreon une fois avoir fais toutes les configurations de nagios et oreon, lorsque je souhaite me connecter sur http://ipdemonserveur/oreon/ j'obtient un message d'erreur DB Error: connect failed
et je n'arrive pas à trouver de solution à ça, j'ai redemarrer tous les services apaches, mysql , nagios rien à faire
est-ce que ce serait possible de m'aider s'il vous plaît
centreon 1.4.2.4
nagios 3.0
MERCI Répondre à hakkai | Salut hakkai !
Quel est ton message exact, toute la ligne ! stp, cela aidera pour répondre à ta question Répondre à pti_kwi | 14 hakkai, le 7 avr 2008 à 18:09:15Salut, merci d'avoir répondu, donc j'ai fais l'installation de nagios3.0 et centreon1.4.2.4 tout c'est passée correctement, ensuite lorsque je me suis connecté à l'adresse http://ip@serveur/oreon/, le setup d'oreon se lance et à la dernière étape , il me demande de cliquer pour finaliser l'installation, je clique puis lorsque j'essaie de me connecter au site il me met comme erreur sur la page :
DB Error: connect failed
J'ai bô essayer de trouver une solution je n'y arrive.
c'est se message d'erreur DB Error: connect failed que j'obtient lorsque je que souhaite aller dans la page pour me loguer, c'est à dire que je n'obtient même pas la page pour l'authentification (login, mot de passe), j'obtient cette erreur.
Est-ce que tu pourrai m'aider s'il te plaît?
Merci Répondre à hakkai | Je te propose une réinstalle d'oreon: (sa prend pas beaucoup de temps). Mais avant vérifie:
que tu as bien la librairie perl DB avec la commande, je pense que c'est ded la que vient ton problème
#pear list
Cette fois ci porte une attention lors de l'install d'oreon avec le ./install.sh
-tous les chemins de fichier que tu indique :
- la présence de toute tes librairies PEAR
- si ta base de donnée est bien créer dans mysql
voici mon pear list :
Archive_Tar 1.3.2 stable
Auth_SASL 1.0.2 stable
Console_Getopt 1.2.3 stable
DB 1.7.13 stable
DB_DataObject 1.8.8 stable
DB_DataObject_FormBuilder 1.0.0RC7 beta
Date 1.4.7 stable
HTML_Common 1.2.4 stable
HTML_QuickForm 3.2.10 stable
HTML_QuickForm_advmultiselect 1.4.0 stable
HTML_Table 1.6.1 stable
HTTP 1.4.0 stable
HTTP_Request 1.4.2 stable
Image_Canvas 0.3.1 alpha
Image_Color 1.0.2 stable
Image_Graph 0.7.2 alpha
Image_GraphViz 1.2.1 stable
MDB2 2.4.1 stable
Mail 1.1.14 stable
Mail_Mime 1.3.1 stable
Net_Ping 2.4.3 stable
Net_SMTP 1.2.11 stable
Net_Socket 1.0.8 stable
Net_Traceroute 0.21.1 alpha
Net_URL 1.0.15 stable
Numbers_Roman 1.0.1 beta
Numbers_Words 0.15.0 beta
PEAR 1.7.1 stable
SOAP 0.11.0 beta
Structures_Graph 1.0.2 stable
Validate 0.8.1 beta
XML_RPC 1.5.1 stable Répondre à pti_kwi | 16 hakkai, le 8 avr 2008 à 10:10:53Salut, merci encore de ton aide
J'ai éditer le fichier mysql.ini
>;Use old password encryption method (needed for 4.0 and older clients).
> old_passwords
Ensuite j'ai mis à jour le mot de passe du user Oreon qui accède à la table Oreon :
>killall mysqld
>mysqld_safe --skip-grant-tables --skip-networking &
>mysql
>mysql > UPDATE mysql.user SET Password = OLD_PASSWORD('oreon') WHERE user='oreon';
>mysql> exit
>killall mysqld
>/etc/init.d/mysql start
j'ai réussit à arriver à l'interface d'oreon, puis j'entre mon login et MDP, j'obtient une erreur Invalid user
ensuite j'ai réinstaller centreon
Voici mon pear list :
Pack Version State
Archive_Tar 1.3.2 stable
Auth_SASL 1.0.2 stable
Console_Getopt 1.2.3 stable
DB 1.7.13 stable
DB_DataObject 1.8.8 stable
DB_DataObject_FormBuilder 1.0.0RC4 beta
Date 1.4.7 stable
HTML_Common 1.2.4 stable
HTML_QuickForm 3.2.10 stable
HTML_QuickForm_advmultiselect 1.4.0 stable
HTML_Table 1.8.2 stable
HTML_Template_IT 1.2.1 stable
HTTP 1.4.0 stable
HTTP_Request 1.4.2 stable
Image_Canvas 0.2.4 alpha
Image_Color 1.0.2 stable
Image_Graph 0.7.1 alpha
Image_GraphViz 1.2.1 stable
MDB2 2.4.1 stable
Mail 1.1.14 stable
Mail_Mime 1.5.2 stable
Mail_mimeDecode 1.5.0 stable
Net_DIME 0.3 beta
Net_Ping 2.4.3 stable
Net_SMTP 1.2.11 stable
Net_Socket 1.0.8 stable
Net_Traceroute 0.21 alpha
Net_URL 1.0.15 stable
Net_UserAgent_Detect 2.4.0 stable
Numbers_Roman 1.0.2 stable
Numbers_Words 0.14.0 beta
PEAR 1.7.1 stable
PEAR_Frontend_Gtk 0.4.0 beta
SOAP 0.11.0 beta
Structures_Graph 1.0.2 stable
Validate 0.8.1 beta
XML_Parser 1.2.8 stable
XML_RPC 1.5.1 stable
je me connecte à http://my_ip/oreon/ comme tu me la dis, hé à l'étape 3 Mysql script je dois faire un choix sur grosse liste et j'ai choisit le premier UPDATE-ODS-1.4.1-RC1.sql, je clique sur next et un message d'erreur s'affiche :
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /usr/local/centreon/www/install/step_upgrade/step4.php on line 28
Database ’oreon’ : Upgrade CRITICAL
Access denied for user 'admin'@'localhost' (using password: YES)
pourtant à ma base de donnée j'ai bien fait :
mysql -u root -p
mysql>USE mysql;
mysql>UPDATE user SET password=PASSWORD ('admin') WHERE user='root';
mysql>exit
/etc/init.d/mysql restart
mais je comprend pas, j'avais pas cette erreur la avant.
Pourrais-tu m'aider s'il te plaît?
MERCI Répondre à hakkai | Salut hakkai , j'ai eu ce propblème pour la réinstalle.
Dsl je ne t'ai pas donner assez de précision
Pour résoudre cette solution il faut avant de relancer la réinstalle avec ./install.sh , il faut :
- supprimer le fichier oreon.conf situé dans /etc
- supprimer le répertoire /usr/local/centreon
( Nb: commande pour supprimer : rm -R(répertoire)
bon courage ! Répondre à pti_kwi | 23 hakkai, le 11 avr 2008 à 10:32:41Merci, c'est bon cela à fonctionner je me connecte à oreon mais j'aimerai savoir comment le configuer pour ajouter les équipement à analyser , switch, router ...... et de plus quand je fais configuration nagios générer j'ai une erreur que voici :
Reading configuration data...
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Warning: comment_file variable ignored. Comments are now stored in the status and retention files.
Running pre-flight check on configuration data...
Checking services...
Error: There are no services defined!
Checked 0 services.
Checking hosts...
Error: There are no hosts defined!
Checked 0 hosts.
Checking host groups...
Checked 0 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Error: There are no contacts defined!
Checked 0 contacts.
Checking contact groups...
Checked 0 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 44 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 3
***> One or more problems was encountered while running the pre-flight check...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
Nagios 3.0
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 03-13-2008
License: GPL
Warning: aggregate_status_updates directive ignored. All status file updates are now aggregated.
Warning: downtime_file variable ignored. Downtime entries are now stored in the status and retention files.
Warning: comment_file variable ignored. Comments are now stored in the status and retention files.
Timing information on object configuration processing is listed
below. You can use this information to see if precaching your
object configuration would be useful.
Object Config Source: Config files (uncached)
OBJECT CONFIG PROCESSING TIMES (* = Potential for precache savings with -u option)
----------------------------------
Read: 0.002491 sec
Resolve: 0.000020 sec *
Recomb Contactgroups: 0.000014 sec *
Recomb Hostgroups: 0.000014 sec *
Dup Services: 0.000013 sec *
Recomb Servicegroups: 0.000014 sec *
Duplicate: 0.000005 sec *
Inherit: 0.000014 sec *
Recomb Contacts: 0.000004 sec *
Sort: 0.000004 sec *
Register: 0.000183 sec
Free: 0.000021 sec
============
TOTAL: 0.002801 sec * = 0.000106 sec (3.78%) estimated savings
Error: There are no services defined!
Error: There are no hosts defined!
Error: There are no contacts defined!
Timing information on configuration verification is listed below.
CONFIG VERIFICATION TIMES (* = Potential for speedup with -x option)
----------------------------------
Object Relationships: 0.000067 sec
Circular Paths: 0.000005 sec *
Misc: 0.000207 sec
============
TOTAL: 0.000279 sec * = 0.000005 sec (1.8%) estimated savings
***> One or more problems was encountered while running the pre-flight check...
cgi.cfg - déplacement OK
checkcommands.cfg - déplacement OK
contactgroups.cfg - déplacement OK
contacts.cfg - déplacement OK
dependencies.cfg - déplacement OK
escalations.cfg - déplacement OK
hostextinfo.cfg - déplacement OK
hostgroups.cfg - déplacement OK
hosts.cfg - déplacement OK
meta_commands.cfg - déplacement OK
meta_contact.cfg - déplacement OK
meta_contactgroup.cfg - déplacement OK
meta_dependencies.cfg - déplacement OK
meta_escalations.cfg - déplacement OK
meta_host.cfg - déplacement OK
meta_hostgroup.cfg - déplacement OK
meta_services.cfg - déplacement OK
meta_timeperiod.cfg - déplacement OK
misccommands.cfg - déplacement OK
nagios.cfg - déplacement OK
perfparse.cfg - déplacement OK
resource.cfg - déplacement OK
serviceextinfo.cfg - déplacement OK
servicegroups.cfg - déplacement OK
services.cfg - déplacement OK
timeperiods.cfg - déplacement OK
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
Pourrais-tu m'aider s'il te plaît?
Je te remercie. Répondre à hakkai | Slt ,
tu as 2 erreurs :
Error: There are no services defined!
Error: There are no hosts defined!
il y a un ordre à respecter :
1- créer un un groupe d'utilisateur
2- mettre un utilisateur dans un groupe
3-créer groupe hosts
4-mettre host dans groups host
3- créer un service pour l'host
sinon à partir de là faudra prendre un peu d'autonomie :
Aide toi de :
http://wiki.oreon-project.org/index.php/Documentation_FR#
http://forum.centreon.com/
Bon courage, moi je l'ai installé & je suis aussi entrain de le paramétrer.
Il faut beacoup de recherche et vérifier beaucoup tes message d'erreurs.
Bon courage ! Répondre à pti_kwi | 25 hakkai, le 11 avr 2008 à 15:17:16Merci infiniment de ton aide, je vais travailler de mon côté.
Merci Répondre à hakkai |
| 29 hakkai, le 18 avr 2008 à 11:36:16Bonjour, j'aimerai savoir comment diagnostiquer la température dans centreon, j'ai essayer avec check_snmp ,check_centreon_snmp_value mais ça ne fonctionne pas. la commande est check_centreon_snmp_value -H IP -w 25 -c 45 -o "le OID" -v 2c
Pourriez-Vous m'aider s'il vous plaît?
MERCI Répondre à hakkai | Alors pour t'aider 2 choses :
tu test ta commande d'abord dans un shell .
cd /chemin_rep_nagios/libexec/
ensuite tu entre ta comande avec :
./check_centreon_snmp_value -H IP -w 25 -c 45 -o "le OID" -v 2c
ensuite tu teste dans l'interface de centreon en faisant attention de respecter correctement les arguments! Répondre à pti_kwi | 39 hakkai, le 6 mai 2008 à 11:17:58Bonjour, merci d'avoir répondu, j'ai essayer la commande dans le shell, dans le dossiers libexec mais cela ne fonctionne pas : UNKNOWN: Received noSuchName(2) error-status at error-index 1 j'ai essayer avec la température du processeur de mon serveur.(./check_centreon_snmp_value -H IP -o OID -C public -w 25 -c 35 -v 2c)
Avec l'onduleur ça met CRITICAL Host unavailable
Comment faire? aidez-moi s'il vous plaît
Merci Répondre à hakkai |
|
|
| 42 celine123, le 19 jun 2008 à 17:44:18Salut pti-kwi
mon probléme que j'ai installé Oreon/Nagios et que tout sa se passe bien e t pour la configuration j'ai fais les étapes necessaire :
1- créer un un groupe d'utilisateur
2- mettre un utilisateur dans un groupe
3-créer groupe hosts
4-mettre host dans groups host
3- créer un service pour l'host
j'ai crée un service check_http mais je le vois pa dans la partie satuts de services et je suis bloké plus que 3 jrs
peut tu m'aider stp.
merci d'avance Répondre à celine123 |
|
|
|
|
|
|
|
|