Accepting request 507793 from server:monitoring

- use complete options for rrdtool (lower-limit instead of lower, etc)

OBS-URL: https://build.opensuse.org/request/show/507793
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/monitoring-plugins-sentry3?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2017-07-04 07:11:03 +00:00 committed by Git OBS Bridge
commit 5747685267
3 changed files with 14 additions and 8 deletions

View File

@ -47,18 +47,18 @@ foreach ($DS as $i) {
}
if ($CRIT_MAX[$i] != "") {
$critical = $CRIT_MAX[$i];
$upper = " --upper=" . $CRIT_MAX[$i];
$upper = " --upper-limit=" . $CRIT_MAX[$i];
}
if ($CRIT_MIN[$i] != "") {
$criticallower = $CRIT_MIN[$i];
$lower = " --lower=" . $criticallower;
$lower = " --lower-limit=" . $criticallower;
}
if ($MIN[$i] != "") {
$lower = " --lower=" . $MIN[$i];
$lower = " --lower-limit=" . $MIN[$i];
$minimum = $MIN[$i];
}
if ($MAX[$i] != "") {
$upper = " --upper=" . $MAX[$i];
$upper = " --upper-limit=" . $MAX[$i];
$maximum = $MAX[$i];
}
if ($UNIT[$i] == "%%") {

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Jul 3 11:54:36 UTC 2017 - lars@linux-schulserver.de
- use complete options for rrdtool (lower-limit instead of lower, etc)
-------------------------------------------------------------------
Wed Jul 30 19:21:01 UTC 2014 - lars@linux-schulserver.de

View File

@ -1,7 +1,7 @@
#
# spec file for package monitoring-plugins-sentry3
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -15,13 +15,14 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: monitoring-plugins-sentry3
Version: 2012
Release: 100
License: GPL-2.0+
Release: 0
Summary: Monitor Servertech devices that use the Sentry3 MIB
Url: http://www.linuxhomenetworking.com/
License: GPL-2.0+
Group: System/Monitoring
Url: http://www.linuxhomenetworking.com/
Requires: perl(Nagios::Plugin) >= 0.36
Requires: perl(Net::SNMP)
Source0: check_sentry3