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] != "") { if ($CRIT_MAX[$i] != "") {
$critical = $CRIT_MAX[$i]; $critical = $CRIT_MAX[$i];
$upper = " --upper=" . $CRIT_MAX[$i]; $upper = " --upper-limit=" . $CRIT_MAX[$i];
} }
if ($CRIT_MIN[$i] != "") { if ($CRIT_MIN[$i] != "") {
$criticallower = $CRIT_MIN[$i]; $criticallower = $CRIT_MIN[$i];
$lower = " --lower=" . $criticallower; $lower = " --lower-limit=" . $criticallower;
} }
if ($MIN[$i] != "") { if ($MIN[$i] != "") {
$lower = " --lower=" . $MIN[$i]; $lower = " --lower-limit=" . $MIN[$i];
$minimum = $MIN[$i]; $minimum = $MIN[$i];
} }
if ($MAX[$i] != "") { if ($MAX[$i] != "") {
$upper = " --upper=" . $MAX[$i]; $upper = " --upper-limit=" . $MAX[$i];
$maximum = $MAX[$i]; $maximum = $MAX[$i];
} }
if ($UNIT[$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 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 # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -15,13 +15,14 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
Name: monitoring-plugins-sentry3 Name: monitoring-plugins-sentry3
Version: 2012 Version: 2012
Release: 100 Release: 0
License: GPL-2.0+
Summary: Monitor Servertech devices that use the Sentry3 MIB Summary: Monitor Servertech devices that use the Sentry3 MIB
Url: http://www.linuxhomenetworking.com/ License: GPL-2.0+
Group: System/Monitoring Group: System/Monitoring
Url: http://www.linuxhomenetworking.com/
Requires: perl(Nagios::Plugin) >= 0.36 Requires: perl(Nagios::Plugin) >= 0.36
Requires: perl(Net::SNMP) Requires: perl(Net::SNMP)
Source0: check_sentry3 Source0: check_sentry3