View Full Version : Service CRITICAL
Nochancexp
4th March 2009, 13:33
Voila je viens de réinstaller pour la XXXème fois nagios/centreon sur une RedHat5. en utilisant à la lettre le tuto suivant : http://en.doc.centreon.com/Main_Page/fr
toute l'installation : OK
nagios installé
centréon installé
PB N°1 lorsque je vais dans home de centreon en interfaec web je vois 4 services en CRITICAL, la même chose sur l'interface web de nagios.
PB N°2 lorsque j'ai ajouter un host à monitorer ( un serveur web ) je l'ai mis via l'interface web de centreon : CONFIGURATION > HOST > ADD mais je ne le vois ni dans centreon ni dans nagios ( j'ai bien fait "export" )
quelqu'un à une idée pour ces 2 problèmes ?
merci d'avance
gueutzilla
4th March 2009, 13:37
Salut,
Que disent les logs de nagios et de centreon???
Nochancexp
4th March 2009, 14:45
comment est ce que je fais pour les voir ?
voici ce que j'ai a l'écran
lorsque je fais /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
voici le résultat ( sur la machine )
[root@SciencesPoBordeaux ~]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Nagios 3.0.6
Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
Last Modified: 12-01-2008
License: GPL
Reading configuration data...
Running pre-flight check on configuration data...
Checking services...
Checked 4 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 3 contacts.
Checking contact groups...
Checked 2 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 54 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: 0
Things look okay - No serious problems were detected during the pre-flight check
par contre à l'écran sur http://monadresseip/nagios/ j'ai ceci :
>> http://img3.imageshack.us/img3/8210/er7.png
j'ai fait un ps aux | grep nagios voici le résultat :
[root@SciencesPoBordeaux ~]# ps aux | grep nagios
nagios 2165 0.0 1.0 13140 5524 ? SN 06:39 0:01 /usr/bin/perl -w /usr/local/centreon/bin/centcore
nagios 2205 0.0 0.6 9696 3384 ? S 06:39 0:00 /usr/bin/perl -w /usr/local/centreon/bin/centstorage
nagios 4235 1.3 1.1 14752 5864 ? R 07:16 0:00 /usr/bin/perl -w /usr/local/centreon/bin/centstorage
root 4251 0.0 0.1 3940 724 pts/1 R+ 07:16 0:00 grep nagios
Et voici pour finir ce que j'ai à l'écran sur http://monadresseip/centreon/
>> http://img187.imageshack.us/img187/2497/er6.png
gueutzilla
4th March 2009, 15:54
Va voir dans /usr/local/nagios/var (nagios.log et status.log) et dans /usr/local/centreon/log.
si tu fait /etc/init.d/nagios restart est ce que c'est ok?
Quel sont les droits sur les répertoire centreon et nagios?
Nochancexp
4th March 2009, 16:08
les droit sont bon normalement vu que j'ai suivit le tuto
voila mon nagios.log
[1236143937] Nagios 3.0.6 starting... (PID=6198)
[1236143937] Local time is Wed Mar 04 06:18:57 CET 2009
[1236143937] LOG VERSION: 2.0
[1236143937] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios@nagios.org)
[1236143937] ndomod: Could not open data sink! I'll keep trying, but some output may get lost...
[1236143937] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[1236143937] Finished daemonizing... (New PID=6199)
[1236143937] INITIAL HOST STATE: Centreon-Server;UP;HARD;1;
[1236143937] INITIAL SERVICE STATE: Centreon-Server;/;OK;HARD;1;(null)
[1236143937] INITIAL SERVICE STATE: Centreon-Server;load;OK;HARD;1;(null)
[1236143937] INITIAL SERVICE STATE: Centreon-Server;memory;OK;HARD;1;(null)
[1236143937] INITIAL SERVICE STATE: Centreon-Server;ping;OK;HARD;1;(null)
[1236143985] ndomod: Successfully connected to data sink. 455 queued items to flush.
[1236143985] ndomod: Successfully flushed 455 queued items to data sink.
[1236144017] SERVICE ALERT: Centreon-Server;/;CRITICAL;SOFT;1;(null)
[1236144077] SERVICE ALERT: Centreon-Server;/;CRITICAL;SOFT;2;(null)
[1236144092] SERVICE ALERT: Centreon-Server;load;CRITICAL;SOFT;1;(null)
[1236144137] SERVICE ALERT: Centreon-Server;/;CRITICAL;HARD;3;(null)
[1236144152] SERVICE ALERT: Centreon-Server;load;CRITICAL;SOFT;2;(null)
[1236144168] SERVICE ALERT: Centreon-Server;memory;CRITICAL;SOFT;1;(null)
[1236144212] SERVICE ALERT: Centreon-Server;load;CRITICAL;HARD;3;(null)
[1236144227] SERVICE ALERT: Centreon-Server;memory;CRITICAL;SOFT;2;(null)
[1236144242] SERVICE ALERT: Centreon-Server;ping;CRITICAL;SOFT;1;(null)
[1236144287] SERVICE ALERT: Centreon-Server;memory;CRITICAL;HARD;3;(null)
[1236144302] SERVICE ALERT: Centreon-Server;ping;CRITICAL;SOFT;2;(null)
[1236144362] SERVICE ALERT: Centreon-Server;ping;CRITICAL;HARD;3;(null)
[1236144405] Caught SIGTERM, shutting down...
[1236144405] Successfully shutdown... (PID=6199)
[1236144405] ndomod: Shutdown complete.
[1236144405] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' deinitialized successfully.
[1236144407] Nagios 3.0.6 starting... (PID=6660)
[1236144407] Local time is Wed Mar 04 06:26:47 CET 2009
[1236144407] LOG VERSION: 2.0
[1236144407] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios@nagios.org)
[1236144407] ndomod: Successfully connected to data sink. 0 queued items to flush.
[1236144407] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[1236144407] Finished daemonizing... (New PID=6661)
[1236144407] INITIAL HOST STATE: Centreon-Server;UP;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.21 ms
[1236144407] INITIAL SERVICE STATE: Centreon-Server;/;CRITICAL;HARD;3;(null)
[1236144407] INITIAL SERVICE STATE: Centreon-Server;load;CRITICAL;HARD;3;(null)
[1236144407] INITIAL SERVICE STATE: Centreon-Server;memory;CRITICAL;HARD;3;(null)
[1236144407] INITIAL SERVICE STATE: Centreon-Server;ping;CRITICAL;HARD;3;(null)
[1236144998] ndomod: Error writing to data sink! Some output may get lost...
[1236145014] ndomod: Successfully reconnected to data sink! 0 items lost, 67 queued items to flush.
[1236145014] ndomod: Successfully flushed 67 queued items to data sink.
[1236145015] ndomod: Error writing to data sink! Some output may get lost...
[1236145020] Caught SIGTERM, shutting down...
[1236145020] Successfully shutdown... (PID=6661)
[1236145020] ndomod: Shutdown complete.
[1236145020] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' deinitialized successfully.
[1236147702] Nagios 3.0.6 starting... (PID=4581)
[1236147702] Local time is Wed Mar 04 07:21:42 CET 2009
[1236147702] LOG VERSION: 2.0
[1236147702] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nagios@nagios.org)
[1236147702] ndomod: Successfully connected to data sink. 0 queued items to flush.
[1236147702] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' initialized successfully.
[1236147702] Finished daemonizing... (New PID=4582)
[1236147702] INITIAL HOST STATE: Centreon-Server;UP;HARD;1;PING OK - Paquets perdus = 0%, RTA = 0.70 ms
[1236147702] INITIAL SERVICE STATE: Centreon-Server;/;CRITICAL;HARD;3;(null)
[1236147702] INITIAL SERVICE STATE: Centreon-Server;load;CRITICAL;HARD;3;(null)
[1236147702] INITIAL SERVICE STATE: Centreon-Server;memory;CRITICAL;HARD;3;(null)
[1236147702] INITIAL SERVICE STATE: Centreon-Server;ping;CRITICAL;HARD;3;(null)
[1236147782] Warning: Return code of 13 for check of service '/' on host 'Centreon-Server' was out of bounds.
[1236147857] Warning: Return code of 13 for check of service 'load' on host 'Centreon-Server' was out of bounds.
[1236147932] Warning: Return code of 13 for check of service 'memory' on host 'Centreon-Server' was out of bounds.
[1236148007] Warning: Return code of 13 for check of service 'ping' on host 'Centreon-Server' was out of bounds.
[1236148082] Warning: Return code of 13 for check of service '/' on host 'Centreon-Server' was out of bounds.
[1236148157] Warning: Return code of 13 for check of service 'load' on host 'Centreon-Server' was out of bounds.
[1236148232] Warning: Return code of 13 for check of service 'memory' on host 'Centreon-Server' was out of bounds.
[1236148307] Warning: Return code of 13 for check of service 'ping' on host 'Centreon-Server' was out of bounds.
[1236148382] Warning: Return code of 13 for check of service '/' on host 'Centreon-Server' was out of bounds.
[1236148457] Warning: Return code of 13 for check of service 'load' on host 'Centreon-Server' was out of bounds.
[1236148532] Warning: Return code of 13 for check of service 'memory' on host 'Centreon-Server' was out of bounds.
[1236148607] Warning: Return code of 13 for check of service 'ping' on host 'Centreon-Server' was out of bounds.
[1236148682] Warning: Return code of 13 for check of service '/' on host 'Centreon-Server' was out of bounds.
[1236148757] Warning: Return code of 13 for check of service 'load' on host 'Centreon-Server' was out of bounds.
[1236148832] Warning: Return code of 13 for check of service 'memory' on host 'Centreon-Server' was out of bounds.
[1236148907] Warning: Return code of 13 for check of service 'ping' on host 'Centreon-Server' was out of bounds.
[1236148963] ndomod: Error writing to data sink! Some output may get lost...
[1236148979] ndomod: Successfully reconnected to data sink! 0 items lost, 66 queued items to flush.
[1236148979] ndomod: Successfully flushed 66 queued items to data sink.
[1236148980] ndomod: Error writing to data sink! Some output may get lost...
[1236148982] Warning: Return code of 13 for check of service '/' on host 'Centreon-Server' was out of bounds.
[1236148982] HOST ALERT: Centreon-Server;DOWN;SOFT;1;CRITIQUE - Le réseau est inaccessible (127.0.0.1)
[1236148984] Caught SIGTERM, shutting down...
[1236148984] Successfully shutdown... (PID=4582)
[1236148984] ndomod: Shutdown complete.
[1236148984] Event broker module '/usr/local/nagios/bin/ndomod-3x.o' deinitialized successfully.
quand je fait /etc/init.d/nagios restart j'ai le message suivant
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
gueutzilla
4th March 2009, 16:53
Ok donc ya un problème au niveau de nagios...
Qu'est ce que tu as dans status.log??
Peut tu me dire quel droits sont appliquer aux dossiers nagios/ et centreon/
Nochancexp
4th March 2009, 16:57
je ne le trouve pas status.log :(
gueutzilla
4th March 2009, 17:13
Ok et pour les droit tu a mis quoi sur les repertoires nagios et centreon?
(ls -l /usr/local/nagios et ls -l /usr/local/centreon) voir si sa ne viendrais pas de la...
naparuba
4th March 2009, 17:16
ton nagios ne tourne pas, tout simplement. Regarde ce que donne une vérification de conf (page de l'export).
Nochancexp
4th March 2009, 17:34
sa me donne le message suivant
- cgi.cfg - movement KO
- checkcommands.cfg - movement KO
- contactgroups.cfg - movement KO
- contacts.cfg - movement KO
- dependencies.cfg - movement KO
- escalations.cfg - movement KO
- hostextinfo.cfg - movement KO
- hostgroups.cfg - movement KO
- hosts.cfg - movement KO
- meta_commands.cfg - movement KO
- meta_contact.cfg - movement KO
- meta_contactgroup.cfg - movement KO
- meta_dependencies.cfg - movement KO
- meta_escalations.cfg - movement KO
- meta_host.cfg - movement KO
- meta_hostgroup.cfg - movement KO
- meta_services.cfg - movement KO
- meta_timeperiod.cfg - movement KO
- misccommands.cfg - movement KO
- nagios.cfg - movement KO
- ndo2db.cfg - movement KO
- ndomod.cfg - movement KO
- resource.cfg - movement KO
- serviceextinfo.cfg - movement KO
- servicegroups.cfg - movement KO
- services.cfg - movement KO
- timeperiods.cfg - movement KO
gueutzilla
4th March 2009, 17:48
Et les droits sur le repertoir nagios??
naparuba
4th March 2009, 17:48
Alors gueutzilla (http://forum.centreon.com/member.php?u=4757) a raison.
rouin
20th April 2009, 13:33
Bonjour,
Nochancexp as-tu résolu ton problème?(J'ai la même chose!)