Solved

Statut Inconnu

  • 10 August 2022
  • 5 replies
  • 773 views

Badge +1

Bonsoir à tous, j’espère que vous vous portez bien.

j’ai un souci.

J’ai ajouté un hôte Windows sur mon serveur Centreon pour le superviser. Mais je suis en train de voir que tous mes services ont le statut inconnu (“status= unknown”).

Je n’arrive pas à m’en sortir.

J’ai besoin de votre aide.

Merci d’avance.

icon

Best answer by sims24 12 August 2022, 14:54

View original

5 replies

Badge +1
Statut détaillé

INCONNU : nom de sécurité du paramètre manquant. 

Pour être plus précis, voici l’erreur que j’ai rencontré.

Userlevel 6
Badge +19

Bonjour, 

 

Quel est la commande exactes utilisée pour un service donné avec le problème svp?

Badge +1

Bonjour,

j’ai au final laissé tomber l’agent SNMP apparemment Centreon ne l’exploite pas bien. Et je me suis tourné vers l’agent centreon-nsclient. Mais j’ai toujours un problème (

Statut détaillé

UNKNOWN: 500 Can't connect to 192.168.1.33:8443 ).

 

 

Et voici la commande :

Serveur de supervision
Central

Durée du statut actuel
1h 17m - 3/3(H)

Dernier changement de statut
13/08/2022 10:34

Dernier contrôle
13/08/2022 11:46

Dernier contrôle avec un statut OK
01/01/1970 01:00

Prochain contrôle
13/08/2022 11:51

Temps d'exécution
0.214637 s

Latence
0.156 s

Pourcentage de changement de statut
4.144736842105263%

Dernière notification
01/01/1970 01:00

Numéro de notification actuel
15
Commande

/usr/lib/centreon/plugins//centreon_nsclient_restapi.pl

--plugin=apps::nsclient::restapi::plugin

--mode=query

--hostname='192.168.1.33'

--port='8443'

--proto='https'

--legacy-password='Ici j’ai le mot de passe de mon nsclient'

--command=check_drivesize

--arg="drive=*"

--arg="perf-config=used(unit:B)used %(ignored:true)"

--arg="filter=type = 'fixed' and name not regexp '.*yst.*'"

--arg="warning=total_used>80%"

--arg="critical=total_used>90%"

Userlevel 4
Badge +14

Hello,

Have follow the instruction to activate SNMP https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/operatingsystems-windows-snmp/ more specifically https://docs.microsoft.com/fr-fr/troubleshoot/windows-server/networking/configure-snmp-service

The message indicate you do set the community you have defined previously.

About the NSClient REST API could you provide your configuration, the NSClient.ini file ?

You have information about the configuration of NSClient Rest API here https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/operatingsystems-windows-nsclient-05-restapi/

Regards,

Greg

Userlevel 1
Badge +11

Rajoute: 

--ssl-opt="SSL_verify_mode => SSL_VERIFY_NONE" dans la macro NSCPRESTAPIEXTRAOPTIONS de ton hote

Reply