charm-ceph-osd/hooks
Alex Kavanagh faefe90ce6 Fix nrpe ceph-osd status respecting permissions
The referenced bug (below) was caused because the nrpe check needed to
access the ceph owned directories, and as the nagios user, nrpe can't.
This change splits the check into a 'collect' phase that runs as root
via a cronjob each minute and writes a file to the tmp directory, and a
nrpe check phase that then reads that file and reports back to nagios.

The 'check' part deletes the 'collect' file, so that fresh information
is available for each nrpe check.  The cron task runs every minute (as
is lightweight), so the nrpe checks should not be sheduled more
frequently than 1 minute.

Change-Id: I4f4594a479eed47cc66643d0c6acece491ae854d
Closes-Bug: #1810749
2019-01-16 12:33:06 +00:00
..
charmhelpers Sync charm-helpers 2019-01-11 14:34:49 +00:00
add-storage Check for ceph.conf instead of package 2018-06-13 15:25:01 +02:00
ceph_hooks.py Fix nrpe ceph-osd status respecting permissions 2019-01-16 12:33:06 +00:00
config-changed Add unit tests for service status 2015-10-06 21:15:38 +01:00
install Fix upgrades from older charm versions 2017-12-20 12:01:24 +00:00
install.real Add unit tests for service status 2015-10-06 21:15:38 +01:00
install_deps Fix upgrades from older charm versions 2017-12-20 12:01:24 +00:00
mon-relation-changed Add unit tests for service status 2015-10-06 21:15:38 +01:00
mon-relation-departed Add unit tests for service status 2015-10-06 21:15:38 +01:00
nrpe-external-master-relation-changed Add unit tests for service status 2015-10-06 21:15:38 +01:00
nrpe-external-master-relation-joined Add unit tests for service status 2015-10-06 21:15:38 +01:00
osd-devices-storage-attached Add support for Storage hooks 2016-05-17 08:06:07 -04:00
osd-devices-storage-detaching Add support for Storage hooks 2016-05-17 08:06:07 -04:00
post-series-upgrade Series Upgrade 2018-09-21 07:38:01 +00:00
pre-series-upgrade Series Upgrade 2018-09-21 07:38:01 +00:00
secrets-storage-relation-broken Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
secrets-storage-relation-changed Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
secrets-storage-relation-departed Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
secrets-storage-relation-joined Add support for vault key management with vaultlocker 2018-05-15 08:28:15 +01:00
start Add unit tests for service status 2015-10-06 21:15:38 +01:00
stop Add unit tests for service status 2015-10-06 21:15:38 +01:00
storage.real Add support for Storage hooks 2016-05-17 08:06:07 -04:00
update-status Add unit tests for service status 2015-10-06 21:15:38 +01:00
upgrade-charm Bring ceph-osd to Python 3 2017-11-17 12:13:54 +00:00
upgrade-charm.real Remove the compiled python bytecode 2016-10-03 13:16:30 -04:00
utils.py Series Upgrade 2018-09-21 07:38:01 +00:00