In order to add subordinate charms such as nrpe, we need to have a primary
unit to relate them to. This charm provides that primary.
This charm provides a principal Juju unit so that we relate things like nrpe,
landscape-client, etc., to service the Juju controllers in a controller model.
Typically we want to do this when we have Nagios in a separate model and wish
to use cross model relations to allow monitoring and updates of the controller
In order to monitor a controller on machine 0 in a model named 'controller':
juju switch controller
juju deploy cs:~xavpaice/juju-controller --to 0 juju-controller
juju deploy cs:nrpe nrpe-controller
juju add-relation nrpe-controller juju-controller
juju config nrpe-controller nagios_host_context=mysitename
juju offer nrpe-controller:monitors
Application "nrpe" endpoints [monitors] available at "admin/controller.nrpe-controller"
juju switch $nagiosmodel
juju add-relation nagios admin/controller.nrpe-controller