← Back to team overview

nagios-charmers team mailing list archive

[Bug 1834976] Re: config-changed doesn't restart nagios3 when config file is modified

 

I'm able to reproduce this with Juju (client=2.7.1, controller=2.5.8):

$ juju deploy cs:ceph-mon-44 -n3
$ juju deploy cs:nrpe-61
$ juju relate ceph-mon nrpe
$ juju deploy cs:nagios-35

Don't relate nrpe and nagios yet. First wait for nrpe and nagios to
become ready. Now relate them:

$ juju relate nrpe nagios

Get Nagios' password:

$ juju run -a nagios -- cat /var/lib/juju/nagios.passwd

Open Nagios in a browser and log as nagiosadmin. Browse to Hosts and see
that only one ceph-mon out of 3 is present, although Nagios' config
contains the 3 hosts:

$ juju run -a nagios -- grep -A5 define.host /etc/nagios3/conf.d/charm.cfg | grep host_name
         host_name                      juju-ceph-mon-2
         host_name                      juju-ceph-mon-0
         host_name                      juju-ceph-mon-1

Now if you restart Nagios, which is what the charm should do, all hosts
pop up in Nagios' web UI:

$ juju run -a nagios -- sudo systemctl restart nagios3


** Changed in: nagios-charm
   Importance: Undecided => High

** Changed in: nagios-charm
       Status: Incomplete => Triaged

** Changed in: nagios-charm
     Assignee: Aurelien Lourot (aurelien-lourot) => (unassigned)

-- 
You received this bug notification because you are a member of Nagios
Charm developers, which is subscribed to Nagios Charm.
https://bugs.launchpad.net/bugs/1834976

Title:
  config-changed doesn't restart nagios3 when config file is modified

Status in Nagios Charm:
  Triaged

Bug description:
  If a hook modifies /etc/nagios3/nagios.cfg, we need the service to
  restart to collect that change, but the hook doesn't initiate that
  service restart.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nagios-charm/+bug/1834976/+subscriptions


References