Use /usr/local/lib/nagios/plugins for non-packaged checks
This commit is contained in:
parent
a83043b686
commit
b9e621b3e2
@ -23,7 +23,7 @@ from charmhelpers.contrib.charmsupport.nrpe import NRPE
|
||||
SERVICE_NAME = os.getenv('JUJU_UNIT_NAME').split('/')[0]
|
||||
POOL_NAME = SERVICE_NAME
|
||||
RABBIT_DIR = '/var/lib/rabbitmq'
|
||||
NAGIOS_PLUGINS='/usr/lib/nagios/plugins'
|
||||
NAGIOS_PLUGINS='/usr/local/lib/nagios/plugins'
|
||||
|
||||
|
||||
def install():
|
||||
|
@ -129,6 +129,7 @@ define service {{
|
||||
os.path.join(os.environ['CHARM_DIR'],
|
||||
'files/nrpe-external-master'),
|
||||
'/usr/lib/nagios/plugins',
|
||||
'/usr/local/lib/nagios/plugins',
|
||||
)
|
||||
parts = shlex.split(check_cmd)
|
||||
for path in search_path:
|
||||
|
@ -10,8 +10,6 @@
|
||||
|
||||
# This file is managed by juju. Do not make local changes.
|
||||
|
||||
# Author: Cristian Gafton <cristian.gafton@canonical.com>
|
||||
#
|
||||
# Copyright (C) 2009, 2012 Canonical
|
||||
# All Rights Reserved
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user