diff options
author | Mark Grimes | 2015-09-24 18:04:37 -0400 |
---|---|---|
committer | Mark Grimes | 2015-09-24 18:07:26 -0400 |
commit | f5f9c29f06ccf912d76b21bd5e2dcb8e314271f4 (patch) | |
tree | f8f37532e02b009ab522f7400da62de8f8903f8b | |
parent | da076b7cd3ca297ffbb1c0547eee4906a46c0f86 (diff) | |
download | aur-f5f9c29f06ccf912d76b21bd5e2dcb8e314271f4.tar.gz |
Changes the install location back to /usr/share/nagios/libexec
- Putting it in /usr/lib/monitoring-plugins would require patching (not
setting a config flag). Users are better off setting $USER1$ in the
/etc/nagios/resource.cfg file to point to /usr/lib/monitoring-plugins
rather than monkeying with symlinks.
- This requires changing $USER1$/check_nrpe in the
/etc/nagios/objects/commands.cfg file, to
/usr/share/nagios/libexec/check_nrpe.
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 6 | ||||
-rw-r--r-- | nagios-nrpe-plugin.install | 12 |
3 files changed, 11 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = nagios-nrpe-plugin pkgdesc = The Nagios NRPE server side plugin. pkgver = 2.15 - pkgrel = 3 + pkgrel = 4 url = http://www.nagios.org install = nagios-nrpe-plugin.install arch = any @@ -4,7 +4,7 @@ pkgname=nagios-nrpe-plugin pkgver=2.15 -pkgrel=3 +pkgrel=4 pkgdesc="The Nagios NRPE server side plugin." license=('GPL') arch=('any') @@ -16,12 +16,12 @@ install=nagios-nrpe-plugin.install build() { cd ${srcdir}/nrpe-${pkgver} - ./configure --prefix=/usr/lib/monitoring-plugins \ + ./configure --prefix=/usr/share/nagios \ --with-nagios-user=nagios --with-nagios-group=nagios || return 1 make || return 1 } package() { cd ${srcdir}/nrpe-${pkgver} - make prefix=${pkgdir}/usr/lib/monitoring-plugins install-plugin || return 1 + make prefix=${pkgdir}/usr/share/nagios install-plugin || return 1 } diff --git a/nagios-nrpe-plugin.install b/nagios-nrpe-plugin.install index 40975dbc06b4..577e4639c0c7 100644 --- a/nagios-nrpe-plugin.install +++ b/nagios-nrpe-plugin.install @@ -1,9 +1,11 @@ post_install() { - echo "check_nrpe has been moved to /usr/lib/monitoring-plugins to" - echo "be consistent with the change from nagios-plugins to" - echo "monitoring-plugins. You may need to tell nagios where the" - echo "plugins are located, or symlink /usr/share/nagios/libexec to" - echo "/usr/lib/monitoring-plugins." + echo "check_nrpe is now installed in /usr/share/nagios/libexec." + echo "If you are using monitoring-plugins, it is recommended" + echo "that /usr/share/nagios/libexec *not* be symlinked to" + echo "/usr/lib/monitoring-plugins. Instead, in /etc/nagios/resource.cfg" + echo "set $USER1$=/usr/lib/monitoring-plugins and in" + echo "/etc/nagios/objects/commands.cfg change the relevant lines to" + echo "to 'command_line /usr/share/nagios/libexec/check_nrpe ...'." } post_upgrade() { |