Bonjour à tous !
Je viens de tout réinstaller, Debian 4 Etch + Nagios 2.6 (inclus dans les sources) + Oreon 1.4.
Mais j'ai un problème lorsque je souhaite générer les fichiers de configuration de Nagios pour que la configuration soit appliquée, sous oreon.
En effet, j'ai cette erreur :
Si vous avez besoin de plus d'informations, n'hésitez pas à me les demander (par exemple les droits, les répertoires sous oreon etc...).
Pour l'instant j'ai ça :
Les quelques répertoires qui me semble important :
---
Sinon, j'ai essayé un truc :
- changer Configuration Directory en /etc/nagios2/
- copier le contenu du répertoire filesGeneration dans /etc/nagios2
- et chmod 777 sur /etc/nagios2
- déplacement OK, mais ça ne fonctionnait toujours pas (pas d'host, pas de services etc...)
Et du coup, je me suis retrouvé avec ceci dans /etc/nagios2/ :
J'ai donc remis Configuration Directory en /usr/local/nagios/etc/ (déplacement KO), mais je me retrouve avec tout ces fichiers dans /etc/nagios2 maintenant :? (De plus, je vois que certaines tailles de fichiers ont changé ! Est-ce grave ?)
---
J'ai vu quelque chose de similaire ici : http://forums.bfl-solutions.eu/viewt...C3%A9placement
cp /etc/oreon/fileGeneration/nagioCFG/* /etc/nagios
chmod 777 /etc/nagios/*.cfg
Mais moi j'ai pas de répertoire /etc/nagios
Je dois en créer un ? oO
---
Voilà, merci d'avance pour votre aide !
Je viens de tout réinstaller, Debian 4 Etch + Nagios 2.6 (inclus dans les sources) + Oreon 1.4.
Mais j'ai un problème lorsque je souhaite générer les fichiers de configuration de Nagios pour que la configuration soit appliquée, sous oreon.
En effet, j'ai cette erreur :
Nagios 2.6
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
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 4 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
cgi.cfg - déplacement KO
checkcommands.cfg - déplacement KO
contactgroups.cfg - déplacement KO
contacts.cfg - déplacement KO
dependencies.cfg - déplacement KO
escalations.cfg - déplacement KO
hostextinfo.cfg - déplacement KO
hostgroups.cfg - déplacement KO
hosts.cfg - déplacement KO
misccommands.cfg - déplacement KO
nagios.cfg - déplacement KO
resource.cfg - déplacement KO
serviceextinfo.cfg - déplacement KO
servicegroups.cfg - déplacement KO
services.cfg - déplacement KO
timeperiods.cfg - déplacement KO
Restarting nagios2 monitoring daemon: nagios2
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 11-27-2006
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 4 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
cgi.cfg - déplacement KO
checkcommands.cfg - déplacement KO
contactgroups.cfg - déplacement KO
contacts.cfg - déplacement KO
dependencies.cfg - déplacement KO
escalations.cfg - déplacement KO
hostextinfo.cfg - déplacement KO
hostgroups.cfg - déplacement KO
hosts.cfg - déplacement KO
misccommands.cfg - déplacement KO
nagios.cfg - déplacement KO
resource.cfg - déplacement KO
serviceextinfo.cfg - déplacement KO
servicegroups.cfg - déplacement KO
services.cfg - déplacement KO
timeperiods.cfg - déplacement KO
Restarting nagios2 monitoring daemon: nagios2
Pour l'instant j'ai ça :
/etc/nagios2$ ls -l
-rw-r--r-- 1 www-data nagios 1598 2007-07-16 15:05 apache2.conf
-rw-r--r-- 1 www-data nagios 9573 2007-03-04 23:56 cgi.cfg
-rw-r--r-- 1 www-data nagios 4653 2007-03-04 23:56 commands.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-07-16 15:05 conf.d
-rw-r--r-- 1 www-data nagios 48 2007-07-16 15:48 htpasswd.users
-rw-r--r-- 1 www-data nagios 30431 2007-03-04 23:56 nagios.cfg
-rw-r----- 1 www-data nagios 1293 2007-03-04 23:55 resource.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-03-04 23:56 stylesheets
/usr/local/oreon/filesGeneration/nagiosCFG# ls -l
-rw-r--r-- 1 www-data www-data 1920 2007-07-17 09:16 cgi.cfg
-rw-r--r-- 1 www-data www-data 6360 2007-07-17 09:16 checkcommands.cfg
-rw-r--r-- 1 www-data www-data 1249 2007-07-17 09:16 contactgroups.cfg
-rw-r--r-- 1 www-data www-data 1516 2007-07-17 09:16 contacts.cfg
-rw-r--r-- 1 www-data www-data 1158 2007-07-17 09:16 dependencies.cfg
-rw-r--r-- 1 www-data www-data 1158 2007-07-17 09:16 escalations.cfg
-rw-r--r-- 1 www-data www-data 1204 2007-07-17 09:16 hostextinfo.cfg
-rw-r--r-- 1 www-data www-data 1251 2007-07-17 09:16 hostgroups.cfg
-rw-r--r-- 1 www-data www-data 1480 2007-07-17 09:16 hosts.cfg
-rw-r--r-- 1 www-data www-data 3447 2007-07-17 09:16 misccommands.cfg
-rw-r--r-- 1 www-data www-data 3431 2007-07-17 09:16 nagios.cfg
-rw-r--r-- 1 www-data www-data 2567 2007-07-17 09:16 nagiosCFG.DEBUG
-rw-r--r-- 1 www-data www-data 1191 2007-07-17 09:16 resource.cfg
-rw-r--r-- 1 www-data www-data 1302 2007-07-17 09:16 serviceextinfo.cfg
-rw-r--r-- 1 www-data www-data 1158 2007-07-17 09:16 servicegroups.cfg
-rw-r--r-- 1 www-data www-data 1518 2007-07-17 09:16 services.cfg
-rw-r--r-- 1 www-data www-data 1993 2007-07-17 09:16 timeperiods.cfg
-rw-r--r-- 1 www-data nagios 1598 2007-07-16 15:05 apache2.conf
-rw-r--r-- 1 www-data nagios 9573 2007-03-04 23:56 cgi.cfg
-rw-r--r-- 1 www-data nagios 4653 2007-03-04 23:56 commands.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-07-16 15:05 conf.d
-rw-r--r-- 1 www-data nagios 48 2007-07-16 15:48 htpasswd.users
-rw-r--r-- 1 www-data nagios 30431 2007-03-04 23:56 nagios.cfg
-rw-r----- 1 www-data nagios 1293 2007-03-04 23:55 resource.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-03-04 23:56 stylesheets
/usr/local/oreon/filesGeneration/nagiosCFG# ls -l
-rw-r--r-- 1 www-data www-data 1920 2007-07-17 09:16 cgi.cfg
-rw-r--r-- 1 www-data www-data 6360 2007-07-17 09:16 checkcommands.cfg
-rw-r--r-- 1 www-data www-data 1249 2007-07-17 09:16 contactgroups.cfg
-rw-r--r-- 1 www-data www-data 1516 2007-07-17 09:16 contacts.cfg
-rw-r--r-- 1 www-data www-data 1158 2007-07-17 09:16 dependencies.cfg
-rw-r--r-- 1 www-data www-data 1158 2007-07-17 09:16 escalations.cfg
-rw-r--r-- 1 www-data www-data 1204 2007-07-17 09:16 hostextinfo.cfg
-rw-r--r-- 1 www-data www-data 1251 2007-07-17 09:16 hostgroups.cfg
-rw-r--r-- 1 www-data www-data 1480 2007-07-17 09:16 hosts.cfg
-rw-r--r-- 1 www-data www-data 3447 2007-07-17 09:16 misccommands.cfg
-rw-r--r-- 1 www-data www-data 3431 2007-07-17 09:16 nagios.cfg
-rw-r--r-- 1 www-data www-data 2567 2007-07-17 09:16 nagiosCFG.DEBUG
-rw-r--r-- 1 www-data www-data 1191 2007-07-17 09:16 resource.cfg
-rw-r--r-- 1 www-data www-data 1302 2007-07-17 09:16 serviceextinfo.cfg
-rw-r--r-- 1 www-data www-data 1158 2007-07-17 09:16 servicegroups.cfg
-rw-r--r-- 1 www-data www-data 1518 2007-07-17 09:16 services.cfg
-rw-r--r-- 1 www-data www-data 1993 2007-07-17 09:16 timeperiods.cfg
Configuration --> Nagios CFG
Log file : /usr/local/nagios/var/nagios.log
Object Configuration Directory : /usr/local/nagios/etc/
Temp File : /usr/local/nagios/var/nagios.tmp
--
Configuration --> Ressources CFG
Expression de la MACRO * : $USER1$=/usr/lib/nagios/plugins/
--
Configuration --> CGI CFG
Main Configuration File Location : /usr/local/nagios/etc/nagios.cfg
Physical HTML Path : /usr/local/nagios/share
URL HTML Path :/nagios
Log file : /usr/local/nagios/var/nagios.log
Object Configuration Directory : /usr/local/nagios/etc/
Temp File : /usr/local/nagios/var/nagios.tmp
--
Configuration --> Ressources CFG
Expression de la MACRO * : $USER1$=/usr/lib/nagios/plugins/
--
Configuration --> CGI CFG
Main Configuration File Location : /usr/local/nagios/etc/nagios.cfg
Physical HTML Path : /usr/local/nagios/share
URL HTML Path :/nagios
Sinon, j'ai essayé un truc :
- changer Configuration Directory en /etc/nagios2/
- copier le contenu du répertoire filesGeneration dans /etc/nagios2
- et chmod 777 sur /etc/nagios2
- déplacement OK, mais ça ne fonctionnait toujours pas (pas d'host, pas de services etc...)
Et du coup, je me suis retrouvé avec ceci dans /etc/nagios2/ :
-rw-r--r-- 1 www-data nagios 1598 2007-07-16 15:05 apache2.conf
-rwxrwxrwx 1 www-data nagios 1920 2007-07-17 09:12 cgi.cfg
-rwxrwxrwx 1 www-data www-data 6360 2007-07-17 09:12 checkcommands.cfg
-rwxrwxrwx 1 www-data nagios 4653 2007-03-04 23:56 commands.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-07-16 15:05 conf.d
-rwxrwxrwx 1 www-data www-data 1249 2007-07-17 09:12 contactgroups.cfg
-rwxrwxrwx 1 www-data www-data 1516 2007-07-17 09:12 contacts.cfg
-rwxrwxrwx 1 www-data www-data 1158 2007-07-17 09:12 dependencies.cfg
-rwxrwxrwx 1 www-data www-data 1158 2007-07-17 09:12 escalations.cfg
-rwxrwxrwx 1 www-data www-data 1204 2007-07-17 09:12 hostextinfo.cfg
-rwxrwxrwx 1 www-data www-data 1251 2007-07-17 09:12 hostgroups.cfg
-rwxrwxrwx 1 www-data www-data 1480 2007-07-17 09:12 hosts.cfg
-rw-r--r-- 1 www-data nagios 48 2007-07-16 15:48 htpasswd.users
-rwxrwxrwx 1 www-data www-data 3447 2007-07-17 09:12 misccommands.cfg
-rwxrwxrwx 1 www-data nagios 3305 2007-07-17 09:12 nagios.cfg
-rwxrwxrwx 1 www-data nagios 1191 2007-07-17 09:12 resource.cfg
-rwxrwxrwx 1 www-data www-data 1302 2007-07-17 09:12 serviceextinfo.cfg
-rwxrwxrwx 1 www-data www-data 1158 2007-07-17 09:12 servicegroups.cfg
-rwxrwxrwx 1 www-data www-data 1518 2007-07-17 09:12 services.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-03-04 23:56 stylesheets
-rwxrwxrwx 1 www-data www-data 1993 2007-07-17 09:12 timeperiods.cfg
-rwxrwxrwx 1 www-data nagios 1920 2007-07-17 09:12 cgi.cfg
-rwxrwxrwx 1 www-data www-data 6360 2007-07-17 09:12 checkcommands.cfg
-rwxrwxrwx 1 www-data nagios 4653 2007-03-04 23:56 commands.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-07-16 15:05 conf.d
-rwxrwxrwx 1 www-data www-data 1249 2007-07-17 09:12 contactgroups.cfg
-rwxrwxrwx 1 www-data www-data 1516 2007-07-17 09:12 contacts.cfg
-rwxrwxrwx 1 www-data www-data 1158 2007-07-17 09:12 dependencies.cfg
-rwxrwxrwx 1 www-data www-data 1158 2007-07-17 09:12 escalations.cfg
-rwxrwxrwx 1 www-data www-data 1204 2007-07-17 09:12 hostextinfo.cfg
-rwxrwxrwx 1 www-data www-data 1251 2007-07-17 09:12 hostgroups.cfg
-rwxrwxrwx 1 www-data www-data 1480 2007-07-17 09:12 hosts.cfg
-rw-r--r-- 1 www-data nagios 48 2007-07-16 15:48 htpasswd.users
-rwxrwxrwx 1 www-data www-data 3447 2007-07-17 09:12 misccommands.cfg
-rwxrwxrwx 1 www-data nagios 3305 2007-07-17 09:12 nagios.cfg
-rwxrwxrwx 1 www-data nagios 1191 2007-07-17 09:12 resource.cfg
-rwxrwxrwx 1 www-data www-data 1302 2007-07-17 09:12 serviceextinfo.cfg
-rwxrwxrwx 1 www-data www-data 1158 2007-07-17 09:12 servicegroups.cfg
-rwxrwxrwx 1 www-data www-data 1518 2007-07-17 09:12 services.cfg
drwxr-xr-x 2 www-data nagios 4096 2007-03-04 23:56 stylesheets
-rwxrwxrwx 1 www-data www-data 1993 2007-07-17 09:12 timeperiods.cfg
---
J'ai vu quelque chose de similaire ici : http://forums.bfl-solutions.eu/viewt...C3%A9placement
cp /etc/oreon/fileGeneration/nagioCFG/* /etc/nagios
chmod 777 /etc/nagios/*.cfg
Je dois en créer un ? oO
---
Voilà, merci d'avance pour votre aide !
Comment