Page MenuHomePhabricator

Should we have a specific check for SSL certificate expiration on elasticsearch
Closed, ResolvedPublic

Description

We do have icinga checks on SSL certificates for externally facing services. In the context of elasticsearch, the service is purely internal at this point. It relies on Puppet SSL certificates, so we *might* already have something in place to check their expiration. In any case, we need to make sure that we will have early warning of their expiration.

Event Timeline

Icinga check command ssl-cert-check is defined in modules/nagios_common/files/checkcommands.cfg. It might make sense to use it...

@faidon said: "yes we should", @Gehel will implement this.

Change 279154 had a related patch set uploaded (by Gehel):
Adding an Icinga check for SSL certificate

https://gerrit.wikimedia.org/r/279154

Change 279154 merged by Gehel:
elasticsarch: add Icinga check for SSL certificate

https://gerrit.wikimedia.org/r/279154

Mentioned in SAL [2016-03-24T10:18:44Z] <gehel> activating SSL certificate check on elasticsearch - T130366

Change 279331 had a related patch set uploaded (by Gehel):
Corrected port number to check for SSL cert on elasticsearch

https://gerrit.wikimedia.org/r/279331

Change 279331 merged by Gehel:
Corrected port number to check for SSL cert on elasticsearch

https://gerrit.wikimedia.org/r/279331

Change is now deployed on all elasticsearch servers. After some back and forth (wrong port configured in the check, error in puppet merge) icinga is now green again.

one of them: (elastic1001)

"SSL OK - Certificate elastic1001.eqiad.wmnet valid until 2021-03-15 19:57:34 +0000 (expires in 1817 days)"

https://icinga.wikimedia.org/cgi-bin/icinga/extinfo.cgi?type=2&host=elastic1001&service=Elasticsearch+HTTPS

and here are all of them at the same time:

https://icinga.wikimedia.org/cgi-bin/icinga/status.cgi?search_string=Elasticsearch+HTTPS

@Gehel Looks resolved to me, cool!