landscape-server doesn't export check definitions

Bug #2012693 reported by Barry Price
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Charm
New
Undecided
Unassigned

Bug Description

The landscape-server charm appears to have its own implementation to set up and write nagios check configuration to disk.

The way things are currently handled, while the service checks are indeed written correctly to /etc/nagios/nrpe.d, they're not then exported to /var/lib/nagios/export even when export_nagios_definitions is set to True on the nrpe subordinate.

The end result is that when we instruct the nagios server to import all defined checks, Landscape's own checks aren't picked up, and we miss monitoring rules.

I'd suggest maybe using the nrpe library to set up the checks instead, which should include export awareness for free:

https://github.com/canonical/ops-lib-nrpe

Barry Price (barryprice)
description: updated
description: updated
Revision history for this message
Barry Price (barryprice) wrote :

n.b. We've worked around this for now by manually running this Python script on each landscape-server unit:

https://paste.ubuntu.com/p/6FcZHgDjjM/

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.