Nagios charm needs to handle self-signed SSL certificate expiration.

Bug #1903353 reported by Paul Goins
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Nagios Charm
Won't Fix
Medium
Unassigned

Bug Description

On a customer cloud using the self-signed certificate option, the certificate has expired. However, the charm does not appear to have anything in place for dealing with this. It creates the certificate one and only one time.

Revision history for this message
Paul Goins (vultaire) wrote :

The certificate is generated by charmhelpers, and it looks like the expiration is hard-coded to 365 days. If this expires, there is no charmed action to manage this.

The workaround is likely as follows:

* Delete the /etc/ssl/certs/<ip>.pem and /etc/ssl/private/<ip>.key files
* Run the config-changed hook by hand.

Revision history for this message
Paul Goins (vultaire) wrote :

The workaround works, in case others hit this.

Revision history for this message
Dariusz Smigiel (smigiel-dariusz) wrote (last edit ):

Bumping up the bug.
I spent half of the day trying to find where the issue happened.

FTR: the certificate is on a remote (cloud's) nagios unit.

Jose Guedez (jfguedez)
Changed in charm-nagios:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Facundo Ciccioli (fandanbango) wrote :

We should also monitor the certificate's expiry date when 'monitor_self' is turned on, whether is a self-signed one or not. As of today, I think we don't have any such monitoring and this always hits us by surprise with a misleading alert (bootstack-thruk-CUSTOMER-agent-0-bootstack-CUSTOMER-thruk-CUSTOMER-agent-0).

While this issue seems to be for adding a 'reissue-certificate' action or something similar when using a self-signed certificate, I believe the monitoring could be implemented as part of it.

Revision history for this message
Eric Chen (eric-chen) wrote :

This charm is no longer being actively maintained. New feature won't be implemented.
Please consider using the new Canonical Observability Stack instead.
(https://charmhub.io/topics/canonical-observability-stack).

Changed in charm-nagios:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.