canonical / juju-lint

Run checks against a juju model
GNU General Public License v3.0
0 stars 4 forks source link

Missing 'guest' suffix for nrpe application deployed in KVM #268

Closed zxhdaze closed 6 months ago

zxhdaze commented 6 months ago

Configuration of nrpe application deployed in KVM guest might be different than it's configuration targeting physical host.

One example is to disable swap checks on KVM guest deployed by Juju to silence Nagios false positive alerts about missing swap.

To differentiate nrpe-host and nrpe-container from nrpe deployed in KVM guest, it is suggested to give it a different name, e.g. nrpe-kvm-guest.

Then a new 'guest' suffix needs to be added to juju-lint configuration, so that the new nrpe flavor is recognized correctly.

nrpe: where: container aware # and except nagios host-suffixes: [host, physical, guest] <-- here container-suffixes: [lxd, container]