nrpe-external-master monitor script check_haproxy fails when enable_monitoring = false

Bug #1790705 reported by Drew Freiberger
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-haproxy
Triaged
High
Unassigned

Bug Description

When deploying haproxy and relating nrpe, check_haproxy is defined by the haproxy charm in /etc/nagios/nrpe.d/check_haproxy.cmd.

However, the command this calls in charmhelpers errors out if enable_monitoring is not set to true.

Either we need to not drop check_haproxy.cmd on nrpe-external-master relation joined/changed if enable_monitoring is set to false, or we need to override the enable_monitoring configuration if nrpe-external-master relation exists.

There are some security repercussions of automatically enabling monitoring, i.e. opening ports for stats when deployment may not intend for stats port to listen, so we should probably not have check_haproxy.cmd configured if enable_monitoring = false.

This was found on a xenial/queens cloud with 18.05 charms.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

Ultimately, this creates a check_haproxy UNKNOWN result in nagios.

Workaround is to run 'juju config haproxy enable_monitoring=true'

Junien Fridrick (axino)
Changed in charm-haproxy:
importance: Undecided → High
status: New → Triaged
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.