Comment 2 for bug 1792841

Revision history for this message
Haw Loeung (hloeung) wrote :

What do you mean? Any charms using charmhelper.contrib.charmsupport.nrpe drops files in /var/lib/nagios/export for a nagios host to collect.

The file there has nothing about path of check_nrpe but rather looks like this:

| #---------------------------------------------------
| # This file is Juju managed
| #---------------------------------------------------
| define service {
| use active-service
| host_name host
| service_description Verify canonical-livepatch is working
| check_command check_nrpe!check_canonical-livepatch
| servicegroups livepatch
| }

See charmhelpers code:

https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/charmsupport/nrpe.py#L129
https://github.com/juju/charm-helpers/blob/master/charmhelpers/contrib/charmsupport/nrpe.py#L215