The configure_nagios() function runs on every hook

Bug #1795902 reported by Barry Price
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Livepatch Charm
Fix Released
Medium
Barry Price

Bug Description

It'd be nice to limit this to only run when it needs to (i.e. on upgrade/install hooks, or on changes to the nagios_* charm variables).

Related branches

Revision history for this message
Junien F (axino) wrote :

You can create a new flag to gate the setup_nrpe() call. Set that flag at the end of setup_nrpe(), and clear it in a @hook('config-changed')-decorated function. It should do the right thing (at least it does for me)

Revision history for this message
Junien F (axino) wrote :

Also you should switch to layer:nagios !

Barry Price (barryprice)
Changed in canonical-livepatch-charm:
assignee: nobody → Barry Price (barryprice)
importance: Undecided → Medium
status: New → In Progress
Barry Price (barryprice)
Changed in canonical-livepatch-charm:
status: In Progress → Fix Committed
Barry Price (barryprice)
Changed in canonical-livepatch-charm:
status: Fix Committed → Fix Released
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.