PDA

View Full Version : Transfert oreon nagios


maxime21121
17th April 2007, 18:04
Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data...

Error: Invalid command object directive '"$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTP UT$\t$SERVICESTATE$\t$SERVICEPERFDATA$\n"'.
Error: Could not add object property in file '/usr/local/oreon/filesGeneration/nagiosCFG/misccommands.cfg' on line 53.

***> 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 another 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...

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.


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
misccommands.cfg - déplacement OK
nagios.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... FAILED! Restart aborted. Check your Nagios configuration.

voici l'erreur que m'affiche oreon lors du transfert de oreon a nagios et voici la ligne de commande associé:

"
Code:

/usr/bin/printf"%b"
"$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT $\t$SERVICESTATE$\t$SERVICEPERFDATA$\n" | /usr/local/nagios/bin/perfparse-log2mysql -c
/usr/local/nagios/etc/perfparse.cfg"

je ne comprend pas pourquoi il n'y a pas de communication oreon nagios
merci de votre aide

DonKiShoot
17th April 2007, 18:16
Pas bien les copier coller des commandes :D
Faut les tapers ŕ la main si on ne veut pas d'erreurs étranges.

maxime21121
17th April 2007, 18:22
/usr/bin/printf"%b"
"$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT $\t$SERVICESTATE$\t$SERVICEPERFDATA$\n" | /usr/local/nagios/bin/perfparse-log2mysql -c
/usr/local/nagios/etc/perfparse.cfg"

voila la vrai version dsl mais j espere que vousaurez une reponse a mes demande
merci

DonKiShoot
17th April 2007, 18:30
pourquoi tu colles "%b" ŕ printf ?

maxime21121
18th April 2007, 10:10
voici l erreur que l on m affiche:

Nagios 2.5
Copyright (c) 1999-2006 Ethan Galstad (http://www.nagios.org)
Last Modified: 07-13-2006
License: GPL

Reading configuration data...

Error: Invalid command object directive '"$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT $\t$SERVICESTATE$\t$SERVICEPERFDATA$\n"'.
Error: Could not add object property in file '/usr/local/oreon/filesGeneration/nagiosCFG/misccommands.cfg' on line 53.

***> 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 another 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...

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.


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
misccommands.cfg - déplacement OK
nagios.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... FAILED! Restart aborted. Check your Nagios configuration.


et voici ma commande:
"/usr/bin/printf "%b"
"$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICEOUTPUT $\t$SERVICESTATE$\t$SERVICEPERFDATA$\n" | /usr/local/nagios/bin/perfparse-log2mysql -c
/usr/local/nagios/etc/perfparse.cfg"

ca fait deja quelque jours que j ai cette erreur et je ne comprend plus rien.
merci de m aider

maxime21121
18th April 2007, 10:44
j ai l impression que perfparse n est pas installer sur mon serveur car sur les deux chemin indiquer qui sont:
/usr/local/nagios/bin/perfparse-log2mysql
/usr/local/nagios/etc/perfparse.cfg
les deux fichiers perfparse-log2mysql et perfparse.cfg ne sont ni dans l un ni dans l autre des deux chemin indiquer.
Comment faire pour y resoudre ou faut il que je reinstall perfparse et si oui comment?
merci