Aller au contenu

impossible d'ajouter des hôtes depuis centreon


sam450

Messages recommandés

bonjour

voilà j'ai à nouveau quelques problèmes, après avoir importer ma configuration nagios dans centreon , j'ai bien les hôtes que j'avais créé, avant d'installer centreon.(dans configuration et monitoring)

mais voilà dès que j'essaye d'ajouter dans centreon un hôte il n'apparaît pas dans monitoring, comment cela ce fait-il , même en redémarrant nagios, en relançant mon navigateur.

par contre quand je modifie directement le fichier hosts dans nagios les modification apparaissent aussi bien dans nagios que dans centreon

si quelqu'un a une idée ....

config: nagios 2.10, centreon 1.4.1 ubuntu 7.04

Lien vers le commentaire
Partager sur d’autres sites

quand je fais générer j'ai ça

au dessus :

Warning: fopen(/usr/lib/nagios/plugins/oreon.conf) [function.fopen]: failed to open stream: No such file or directory in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 22

Warning: file(/usr/lib/nagios/plugins/oreon.conf) [function.file]: failed to open stream: No such file or directory in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 106

Warning: Invalid argument supplied for foreach() in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 108

Warning: fopen(/usr/lib/nagios/plugins/oreon.conf) [function.fopen]: failed to open stream: No such file or directory in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 138

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 158

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 161

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 168

Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 171

Warning: fclose(): supplied argument is not a valid stream resource in /usr/local/oreon/www/include/configuration/configGenerate/oreon_pm.php on line 66

au dessous:

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

Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.

quand je fais ensuite une vérification avec -v ,il me dit que j'ai une erreur au niveau de misccommands.cfg ,qui correspond au service perfdata, Si je désactive ce service, et que je refais un test, il me dit que les fichiers de conf exite déja

quand je vais dans centreon modifier la commande perfdata jai ça au dessus de la comamnde

Warning: opendir(/usr/lib/nagios/plugins/) [function.opendir]: failed to open dir: No such file or directory in /usr/local/oreon/www/include/configuration/configObject/command/DB-Func.php on line 147

Warning: readdir(): supplied argument is not a valid Directory resource in /usr/local/oreon/www/include/configuration/configObject/command/DB-Func.php on line 148

Warning: closedir(): supplied argument is not a valid Directory resource in /usr/local/oreon/www/include/configuration/configObject/command/DB-Func.php on line 160

voilà je sais pas si ça peut aider, mon bon désoler de ne pas être plus explicite

Lien vers le commentaire
Partager sur d’autres sites

Quels sont tes répertoires pour oreon et nagios? Regarde si dans la conf d'oreon tu as mis le bon répertoire pour Nagios.

merci naparuba

effectivement j'avais un problème au niveau des répertoires d'installation

par contre j'ai toujours ce petit probleme

Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Reading configuration data...

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.


Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Error: Could not add object property in file '/usr/local/oreon/filesGeneration/nagiosCFG/misccommands.cfg' on line 53.
***> One or more problems was encountered while reading configuration data...

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

Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.

en éditant le fichier de conf la commande qui pose problème semble être perfadata

définit comme suis

define command{

command_name process-service-perfdata

command_line $USER1$/process-service-perfdata "$LASTSERVICECHECK$"

"$HOSTNAME$""$SERVICEDESC$""$SERVICEOUTPUT$"

"$SERVICESTATE$""$SERVICEPERFDATA$"

}

aprés quelques recherche j'ai modifié le service mais j'ai toujours un message

Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Reading configuration data...

Error: Timeperiod 'meta_timeperiod' has already been defined
Error: Could not register timeperiod (config file '/usr/local/oreon/filesGeneration/nagiosCFG/meta_timeperiod.cfg', starting on line 20)

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


Nagios 2.10
Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org)
Last Modified: 10-21-2007
License: GPL

Error: Timeperiod 'meta_timeperiod' has already been defined
Error: Could not register timeperiod (config file '/usr/local/oreon/filesGeneration/nagiosCFG/meta_timeperiod.cfg', starting on line 20)
***> One or more problems was encountered while reading configuration data...

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

j'ai essayé de mettre en commentaire le fichier mais, il me refait le même message pour tout les autres fichier de conf

Lien vers le commentaire
Partager sur d’autres sites

petit up car j'y comprends plus rien ^^

voila le fichier généré

Nagios 2.10

Copyright © 1999-2007 Ethan Galstad (http://www.nagios.org)

Last Modified: 10-21-2007

License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...

Checked 8 services.

Checking hosts...

Checked 8 hosts.

Checking host groups...

Checked 2 host groups.

Checking service groups...

Checked 0 service groups.

Checking contacts...

Checked 3 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 52 commands.

Checking time periods...

Checked 5 time periods.

Checking extended host info definitions...

Checked 8 extended host info definitions.

Checking extended service info definitions...

Checked 8 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.10

Copyright © 1999-2007 Ethan Galstad (http://www.nagios.org)

Last Modified: 10-21-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: 8

Total scheduled hosts: 8

Host inter-check delay method: SMART

Average host check interval: 60.00 sec

Host inter-check delay: 7.50 sec

Max host check spread: 30 min

First scheduled check: Tue Nov 13 16:15:07 2007

Last scheduled check: Tue Nov 13 16:15:59 2007

SERVICE SCHEDULING INFORMATION

-------------------------------

Total services: 8

Total scheduled services: 8

Service inter-check delay method: SMART

Average service check interval: 120.00 sec

Inter-check delay: 15.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 Nov 13 16:17:07 2007

Last scheduled check: Tue Nov 13 16:18:52 2007

CHECK PROCESSING INFORMATION

----------------------------

Service check reaper interval: 10 sec

Max concurrent service checks: Unlimited

PERFORMANCE SUGGESTIONS

-----------------------

* Host checks might be scheduled too closely together - consider increasing 'check_interval' option for your hosts

cgi.cfg - déplacement KO

checkcommands.cfg - déplacement OK

contactgroups.cfg - déplacement KO

contacts.cfg - déplacement KO

dependencies.cfg - déplacement OK

escalations.cfg - déplacement OK

hostextinfo.cfg - déplacement OK

hostgroups.cfg - déplacement KO

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 KO

perfparse.cfg - déplacement OK

resource.cfg - déplacement KO

serviceextinfo.cfg - déplacement OK

servicegroups.cfg - déplacement OK

services.cfg - déplacement KO

timeperiods.cfg - déplacement KO

Running configuration check... FAILED! Restart aborted. Check your Nagios configuration.

quand je lance ensuite dans le terminal une vérification il me dit

Error: Could not find any host matching '3750_MP_1'

Error: Could not expand hostgroups and/or hosts specified in extended host info (config file '/usr/local/nagios/etc/hostextinfo.cfg', starting on line 44)

donc il est pas content car il trouve pas l'hôte , mais c'est celui que je viens de créer !!

Lien vers le commentaire
Partager sur d’autres sites

  • 3 semaines après...

Il mets host.cfg - déplacement KO, ca doit venir de là. Il n'y a aps un problème de droit sur l'endoit où il doit poser les fichiers?

Pour ton problème de perfdata, il faut que la ligne tienne de commande soit en une seule ligne, ca n'a pas l'air d'être le cas.

PS: désolé pour le retard de réponse, j'étais en vacances :oops:

Lien vers le commentaire
Partager sur d’autres sites

Il mets host.cfg - déplacement KO, ca doit venir de là. Il n'y a aps un problème de droit sur l'endoit où il doit poser les fichiers?

Pour ton problème de perfdata, il faut que la ligne tienne de commande soit en une seule ligne, ca n'a pas l'air d'être le cas.

PS: désolé pour le retard de réponse, j'étais en vacances :dd:

pas de problème

ça fonctionne un peut mieux j'ai plus d'erreur quand je fais générer les fichiers

mais il y a quand même deux petite choses bizarre

-quand je vais un restart nagios

root@ubuntu:/etc/init.d# /etc/init.d/nagios restart

Running configuration check...done

Stopping nagios: done.

Starting nagios:Pas de répertoire, connexion avec HOME=/

done.

de plus dans centreon onglet "vue d'oreon" je n'ai aucun hôtes

36ebe3ec59.jpg

merci pour tes réponses

Lien vers le commentaire
Partager sur d’autres sites

Hum... là je ne sais pas trop, je ne passe jamais par là pour accéder à la métrologie (direct sur perfparse), mais ca fonctionne sur mon oreon, mais je ne me souviens pas avoir fait de modif particulière ( à part activer perfparse dans les options). Là je pense qu'il va falloir demander directement sur le forum d'Oreon. Désolé.

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...