PDA

View Full Version : Importation - Pb DB Error


xspoon
02-16-2007, 03:56 PM
bonjour,

j'importe une conf de nagios 1.2/oreon 1.2.3 vers nagios 1.2/oreon 1.3.3

j'ai bien remplacé le fichier /usr/local/oreon/www/include/configuration/configGenerate/DB-Func.php comme indiqué dans le forum > import commands + miscommands.cfg > OK

par contre en important le reste de la conf, j'ai une erreur a la generation


Reading configuration data...

Error: Service description, host name, or check command is NULL

Error: Could not register service (config file '/usr/local/oreon/filesGeneration/nagiosCFG/services.cfg', line 653)

***> The name of the main configuration file looks suspicious...
Make sure you are specifying the name of the MAIN configuration file on
the command line and not the name of the host configuration file. The
main configuration file is typically '/usr/local/nagios/etc/nagios.cfg'

***> One or more problems was encountered while processing the config files...


alors j'essaye d'importer nagios.cfg avant le reste et j'ai :

Fatal error: Call to a member function on a non-object in /usr/local/oreon/www/include/configuration/configNagios/DB-Func.php on line 273

et si j'indique de remplacer completement le fichier j'ai la même erreur avec en plus:

DB Error : DELETE FROM cfg_nagios; : DB Error: syntax error


le fonctionnement normal est Ok a part ça
j'ai créé un host + service à la mano > OK

mais là je bloque...

xspoon
02-22-2007, 02:05 PM
[résolu]

c'est mieux quand on fait ça bien...

1. import checkcommands.cfg avec les options "Supprimer toute la configuration existante pour le type de fichier choisi" et "Commande de Check "
2. import misccommands.cfg avec l'option "Commande de Notification"
3. import du reste de la config en .tgz
4. test OK.