Add support for monitoring-plugins
This commit is contained in:
parent
973f7d983f
commit
5dbb90525d
2
debian/control
vendored
2
debian/control
vendored
|
@ -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
6
debian/postinst
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue