Fix missing part of commit 4d4c998
In that commit this piece of code was moved under the check for whether the nagios plugins dir exists but seems this piece was inadvertently not removed. Change-Id: I72d48438105edd8cb311d36253a592009a9c3706 Closes-Bug: 1786164
This commit is contained in:
parent
2d4fba0360
commit
d5f28378d2
|
@ -627,11 +627,6 @@ def update_nrpe_checks():
|
|||
elif os.path.isfile(STATS_CRONFILE):
|
||||
os.remove(STATS_CRONFILE)
|
||||
|
||||
if config('management_plugin'):
|
||||
rsync(os.path.join(charm_dir(), 'scripts',
|
||||
'check_rabbitmq_cluster.py'),
|
||||
os.path.join(NAGIOS_PLUGINS, 'check_rabbitmq_cluster.py'))
|
||||
|
||||
# Find out if nrpe set nagios_hostname
|
||||
hostname = nrpe.get_nagios_hostname()
|
||||
myunit = nrpe.get_nagios_unit_name()
|
||||
|
|
Loading…
Reference in New Issue