Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Backports:SLE-15-SP6:Update
monitoring-plugins-traffic_limit
b337c024130437d217d6be53ba58cd0238311200.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File b337c024130437d217d6be53ba58cd0238311200.patch of Package monitoring-plugins-traffic_limit
From b337c024130437d217d6be53ba58cd0238311200 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20St=C3=B6cker?= <github@dstoecker.de> Date: Tue, 28 May 2019 10:07:02 +0200 Subject: [PATCH] support ISO date, increase version to 0.5 --- check_traffic_limit | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/check_traffic_limit b/check_traffic_limit index 129f7c1..61513b2 100755 --- a/check_traffic_limit +++ b/check_traffic_limit @@ -60,20 +60,20 @@ my $iface = 'eth0'; my $warn_threshold = '0:'; my $crit_threshold = '0:'; my $period = "d"; -my $version = 'v0.4/2017-10-02/schoppa'; +my $version = 'v0.5/2019-05-28/schoppa'; my $printversion = 0; my $result = UNKNOWN; my $help = 0; my $vnstatquery = ''; use Time::localtime; -my ($mday, $mon) = (localtime->mday,localtime->mon); +my ($mday, $mon, $year) = (localtime->mday,localtime->mon,1900+localtime->year); my $local_day = sprintf("%02d", $mday); my $local_month = sprintf("%02d", $mon +1); my @months = qw(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec); my $local_month_abbreviated = $months[$local_month -1]; -my $day = "($local_month\/$local_day\/|$local_day\.$local_month\.)"; +my $day = "($local_month\/$local_day\/|$local_day\.$local_month\.|$year-$local_month-$local_day)"; my $month = "$local_month_abbreviated"; # -- GetOpt @@ -176,6 +176,8 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA =head1 HISTORY +v0.5/2019-05-28 support ISO data format yyyy-mm-dd + v0.4/2017-10-02 encoding bug fix in help output, LC_ALL fix V0.3/2011-02-09 minor fixes, add nagios grapher template
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor