2017-10-04 1 views
0

Salut J'ai installé le plugin logstash pour Icinga 2. J'ai configuré l'API en émettant icinga2 api setup puis j'ai redémarré le service Icinga 2.Icinga sortie Plugin pour Logstash provoquant OpenSSL :: SSL :: SSLError: échec de vérification du certificat Problème

J'utilise Nagios 2 nom d'utilisateur et mot de passe API disponible dans /etc/icinga2/conf.d/api-users.conf et essayer de pousser quelques journaux à Nagios 2 de Logstash et d'obtenir la question suivante

[2017-10-04T07:14:14,565][ERROR][logstash.outputs.icinga ] Request failed {:host=>"xxxxxxxxxx", :port=>5665, :path=>"/v1/actions/process-check-result?service=%25%7Bhostname%7D%21dummy", :body=>"{\"plugin_output\":\"83.149.9.216 - - [04/Jan/2015:05:13:42 +0000] \\\"GET /presentations/logstash-monitorama-2013/images/Test-search.png HTTP/1.1\\\" 200 203023 \\\"http://semicomplete.com/presentations/logstash-monitorama-2013/\\\" \\\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.77 Safari/537.36\\\"\"}", :error=>#<OpenSSL::SSL::SSLError: certificate verify failed>} 

Voici mon fichier de configuration

input { 
    file { 
     path => "/home/logstashtest/*" 
     start_position => beginning 
     ignore_older => 0 
    } 
} 
filter { 
    if ([message] !~ "83.149.9.216") { 
     drop { } 
    } 
    grok { 
     match => { "message" => "%{COMBINEDAPACHELOG}"} 
    } 
} 
output { 
     icinga { 
     host   => "*****" //Remote Icinga Host 
     user   => "*****" //Icinga 2 Api User 
     password  => "*****" //Icinga 2 Api Password 
     action   => "process-check-result" 
     action_config => { 
      plugin_output => "%{message}" 
     } 
     icinga_host => "%{hostname}" 
     icinga_service => "dummy" 

     } 
} 

Ai-je besoin de passer le chemin pour le certificat SSL dans la demande disponible en pki/ca.crt. Existe-t-il un moyen de désactiver la validation SSL dans Logstash? S'il vous plaît aidez-moi sur ce qui cause le problème

Répondre

0

Icinga sortie pour le plugin Logstash utilise par défaut SSL pour se connecter à Icinga API. J'ai désactivé en réglant ssl_verify => false dans le plugin