[Pkg-nagios-changes] [pkg-nagios-snmp-plugins] 01/02: Add support for monitoring-plugins
Jan Wagner
waja at moszumanska.debian.org
Fri Aug 22 15:34:34 UTC 2014
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-snmp-plugins.
commit 5dbb90525d0b0dc4a06f7ad745436ecb9492f786
Author: Jan Wagner <waja at cyconet.org>
Date: Wed Aug 13 14:33:05 2014 +0200
Add support for monitoring-plugins
---
debian/control | 2 +-
debian/postinst | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/debian/control b/debian/control
index f3645ef..36c948d 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Standards-Version: 3.9.5
Package: nagios-snmp-plugins
Architecture: all
-Depends: ${perl:Depends}, ${misc:Depends}, libnet-snmp-perl, nagios-plugins-basic (>= 1.4.5-2), perl-base (>= 5.8.4-8), ucf
+Depends: ${perl:Depends}, ${misc:Depends}, libnet-snmp-perl, monitoring-plugins-common | nagios-plugins-basic (>= 1.4.5-2), perl-base (>= 5.8.4-8), ucf
Description: SNMP Plugins for nagios
A set of Nagios plugins to check hosts/devices using snmp protocol
.
diff --git a/debian/postinst b/debian/postinst
index 55a755d..c27de01 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -5,7 +5,11 @@ set -e
templdir=/usr/share/nagios-snmp-plugins/pluginconfig
if [ "$1" = "configure" ]; then
- if [ -f /usr/share/nagios-plugins/dpkg/functions ]; then
+ if [ -f /usr/share/monitoring-plugins/dpkg/functions ]; then
+ # only working with monitoring-plugins-basic
+ . /usr/share/monitoring-plugins/dpkg/functions
+ register_cfgs $2
+ elif [ -f /usr/share/nagios-plugins/dpkg/functions ]; then
# only working with nagios-plugins-basic (>= 1.4.5-2)
. /usr/share/nagios-plugins/dpkg/functions
register_cfgs $2
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-snmp-plugins.git
More information about the Pkg-nagios-changes
mailing list