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