Add support for monitoring-plugins

This commit is contained in:
Jan Wagner 2014-08-13 14:33:05 +02:00
parent 973f7d983f
commit 5dbb90525d
2 changed files with 6 additions and 2 deletions

2
debian/control vendored
View file

@ -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
.

6
debian/postinst vendored
View file

@ -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