View Full Version : interface graphique vide
bonjour ŕ tous
je suis confronte ŕ un probleme au niveau de mon ods j'ai installe centreon 1.4 et nagios 2.9 au lancement de mon ods on me mets
error:/usr/local/oreon/ODS/var/ods.pid alrealdy exists et en faisant un vi sur ce fichier j'arrive ŕ eliminer son pid mais il me mets toujours ce message d'erreur merci pour votre soutien.
Tu as regardé si ODS tournait ?
ps -eaf | grep ods
Un fois que le démon ne tourne plus, supprime le fichier ods.pid et relance le service
/etc/init.d/ods start
Il ne veut pas démarrer car le fichier existe déjŕ, le contenu du fichier est uniquement pour information.
merci pour ta reponse mais j'ai fait un vi /usr/local/oreon/ODS/var/ods.pid et suuprimer le pid mais cela est toujours pareille mais auparavant est-il normal que lors de la generation et l'exportation de mais fichier je n'ai aucun message sur sur le nombre d'erreur et warning mais simplement 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
merci pour ton soutien
Alors chaque chose en sont temps :p
Supprimer le PID dans le fichier .pid ne sert a rien, il faut supprimer le fichier si jamais il est toujours présent mais que le service ODS est stopper.
Ensuite, pour savoir si tout c'est bien passé (coté config) tu peux tester avec l'option -v de nagios (premier choix dans la partie Nagios de centreon)
Voila :)
merci watt j'ai supprime le ods pid en faisant un /etc/init.d/ods start on mets Starting ODS Collector : ods je crois que c'est bon de ce cote en cliquant sur l'option -v ds nagios je n'ai rien mais en cliquant sur deplacer les fichiers on me mets 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
par de resultats sur la verification de mes fichiers
merci
watt j'ai fait un rm -R sur ods.pid dans le repertoire /usr/local/oreon/ODS/var/ et y pour la suppression en faisant un /etc/init.d/ods start c'est bon une premiere fois et puis apres
le meme message d'erreur revient ai-je mal suupprime mon fichier merci
comment ca les fois d'aprčs ????
Supprime le fichier, fait start, stop, start... ca fait quoi ?
ok watt merci c'est bon please tu peux observer mes fichier ci dessus de config car j'ai verifie ma config avec -v warning=0 et total errror=o apres installer centreon et exporter les fichiers comme tu peux le voir je n'ai rien ŕ l'affichage et ods tourne normalement et je vois rien au niveau de nagios auusi
merci pour ton soutien
tu as créer test hosts avec des services ?
oui tu peux les observer (debug -v et reload nagios ) on metsNagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 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 47 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 1 extended host info definitions.
Checking extended service info definitions...
Checked 1 extended service info definitions.
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: 0
Things look okay - No serious problems were detected during the pre-flight check
et apres en redemarrant nagios on me metsNagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 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 47 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 1 extended host info definitions.
Checking extended service info definitions...
Checked 1 extended service info definitions.
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: 0
Things look okay - No serious problems were detected during the pre-flight check
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Projected scheduling information for host and service
checks is listed below. This information assumes that
you are going to start running Nagios with your current
config files.
HOST SCHEDULING INFORMATION
---------------------------
Total hosts: 1
Total scheduled hosts: 1
Host inter-check delay method: SMART
Average host check interval: 60.00 sec
Host inter-check delay: 60.00 sec
Max host check spread: 30 min
First scheduled check: Tue Oct 16 18:23:25 2007
Last scheduled check: Tue Oct 16 18:23:25 2007
SERVICE SCHEDULING INFORMATION
-------------------------------
Total services: 1
Total scheduled services: 1
Service inter-check delay method: SMART
Average service check interval: 60.00 sec
Inter-check delay: 60.00 sec
Interleave factor method: SMART
Average services per host: 1.00
Service interleave factor: 1
Max service check spread: 30 min
First scheduled check: Tue Oct 16 18:24:25 2007
Last scheduled check: Tue Oct 16 18:24:25 2007
CHECK PROCESSING INFORMATION
----------------------------
Service check reaper interval: 10 sec
Max concurrent service checks: 20
PERFORMANCE SUGGESTIONS
-----------------------
I have no suggestions - things look okay.
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 KO
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 KO
timeperiods.cfg - déplacement OK
on voit bien que les services cfg et hosts cfg sont ko
je verifie mes droits dans /usr/local/oreon j'ai total 32
drwxrwxr-x 3 apache apache 4096 oct 14 18:36 cron
drwxrwxr-x 4 apache apache 4096 oct 14 18:36 doc
drwxrwxr-x 4 apache apache 4096 oct 14 18:36 filesGeneration
drwxrwxr-x 3 apache apache 4096 oct 14 18:36 filesUpload
drwxrwxr-x 7 apache apache 4096 oct 14 18:36 GPL_LIB
drwxrwxr-x 2 apache nagios 4096 oct 16 18:16 log
drwxrwxr-x 5 apache apache 4096 oct 14 18:36 ODS
drwxrwxr-x 12 apache apache 4096 oct 16 13:10 www
et dans /usr/local/nagios/etc j'ai -rwxrwxr-x 1 apache nagios 1878 oct 16 18:23 cgi.cfg
-rw-r--r-- 1 apache apache 5857 oct 16 18:23 checkcommands.cfg
-rwxrwxr-x 1 apache nagios 8579 oct 14 17:25 commands.cfg
-rw-r--r-- 1 apache apache 1254 oct 16 18:23 contactgroups.cfg
-rw-r--r-- 1 apache apache 1538 oct 16 18:23 contacts.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 dependencies.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 escalations.cfg
-rw-r--r-- 1 apache apache 1201 oct 16 18:23 hostextinfo.cfg
-rw-r--r-- 1 apache apache 1236 oct 16 18:23 hostgroups.cfg
-rw-r--r-- 1 nagios nagios 1157 oct 16 16:42 hosts.cfg (1)
-rwxrwxr-x 1 apache nagios 20 oct 14 17:39 htpasswd.users
-rwxrwxr-x 1 apache nagios 12469 oct 14 17:25 localhost.cfg
-rw-r--r-- 1 apache apache 1630 oct 16 18:23 meta_commands.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_contact.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_contactgroup.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_dependencies.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_escalations.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_host.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_hostgroup.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 meta_services.cfg
-rw-r--r-- 1 apache apache 1410 oct 16 18:23 meta_timeperiod.cfg
-rw-r--r-- 1 apache apache 3756 oct 16 18:23 misccommands.cfg
-rwxrwxr-x 1 apache nagios 3909 oct 16 18:23 nagios.cfg
-rw-r--r-- 1 apache apache 2084 oct 16 18:23 perfparse.cfg
-rwxrwxr-x 1 apache nagios 1193 oct 16 18:23 resource.cfg
-rw-r--r-- 1 apache apache 1314 oct 16 18:23 serviceextinfo.cfg
-rw-r--r-- 1 apache apache 1158 oct 16 18:23 servicegroups.cfg
-rw-r--r-- 1 nagios nagios 1158 oct 16 16:41 services.cfg ( 2)
-rw-r--r-- 1 apache apache 1993 oct 16 18:23 timeperiods.cfg
les droits de 1 et 2 sont -il juste ou bien un fichier log garde t-il les config erronés merci watt
ouatt je crois je me debrouille mieux maintenant apres avoir donne des droits corrects ŕ et j'ai Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 1 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 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 47 commands.
Checking time periods...
Checked 5 time periods.
Checking extended host info definitions...
Checked 1 extended host info definitions.
Checking extended service info definitions...
Checked 1 extended service info definitions.
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: 0
Things look okay - No serious problems were detected during the pre-flight check
Nagios 2.9
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 04-10-2007
License: GPL
Projected scheduling information for host and service
checks is listed below. This information assumes that
you are going to start running Nagios with your current
config files.
HOST SCHEDULING INFORMATION
---------------------------
Total hosts: 1
Total scheduled hosts: 1
Host inter-check delay method: SMART
Average host check interval: 60.00 sec
Host inter-check delay: 60.00 sec
Max host check spread: 30 min
First scheduled check: Tue Oct 16 18:52:53 2007
Last scheduled check: Tue Oct 16 18:52:53 2007
SERVICE SCHEDULING INFORMATION
-------------------------------
Total services: 1
Total scheduled services: 1
Service inter-check delay method: SMART
Average service check interval: 60.00 sec
Inter-check delay: 60.00 sec
Interleave factor method: SMART
Average services per host: 1.00
Service interleave factor: 1
Max service check spread: 30 min
First scheduled check: Tue Oct 16 18:53:53 2007
Last scheduled check: Tue Oct 16 18:53:53 2007
CHECK PROCESSING INFORMATION
----------------------------
Service check reaper interval: 10 sec
Max concurrent service checks: 20
PERFORMANCE SUGGESTIONS
-----------------------
I have no suggestions - things look okay.
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
je crois que c'est bon mais au niveau de nagios je n'arrive pas ŕ le demarrer j'ai pas
running configuration check done
starting nagios
et stopping nagios
et ods tourne bien mais je n'ai rien ŕ l'affichage et pour /etc/initd/nagios j'ai Starting nagios: done.
merci watt
watt en plus si cela peut d' aider je te donne plus d'infos car j'ai fait un ls -l /usr/local/nagios/
total 24
drwxrwxr-x 2 nagios nagios 4096 oct 14 17:24 bin
drwxrwxr-x 2 apache nagios 4096 oct 16 18:40 etc
drwxrwxr-x 3 apache nagios 4096 oct 14 18:36 libexec
drwxrwxr-x 2 nagios nagios 4096 oct 14 17:24 sbin
drwxrwxr-x 9 nagios nagios 4096 oct 14 17:36 share
drwxrwsr-x 3 nagios nagiocmd 4096 oct 16 18:51 var
merci
je crois que apres toutes ces infos tu vas me situer definitiviment et une derniere question pourquoi rien ne s'affiche au niveau de la page d'acceuil malgre que ods tourne parfaitement merci