[pkg-nagios-changes] [Git][nagios-team/pkg-nagios-plugins-contrib][master] Fix check_memory plugin not working when default locale is not English

Jan Wagner gitlab at salsa.debian.org
Thu Apr 29 09:48:00 BST 2021



Jan Wagner pushed to branch master at Debian Nagios Maintainer Group / pkg-nagios-plugins-contrib


Commits:
87821165 by Jérôme Charaoui at 2021-04-28T12:38:36+00:00
Fix check_memory plugin not working when default locale is not English

- - - - -


3 changed files:

- + debian/patches/check_memory/force_locale
- debian/patches/check_memory/monitoring-plugin
- debian/patches/series


Changes:

=====================================
debian/patches/check_memory/force_locale
=====================================
@@ -0,0 +1,13 @@
+diff --git a/check_memory/check_memory b/check_memory/check_memory
+index bf46711..fa2c47c 100644
+--- a/check_memory/check_memory
++++ b/check_memory/check_memory
+@@ -27,7 +27,7 @@ use Nagios::Plugin;
+
+ $PROGNAME = "check_memory";
+ $VERSION = '1.0.1';
+-$FREECMD = '/usr/bin/free';
++$FREECMD = 'LANG=C /usr/bin/free';
+ $UNIT = 'M';
+
+ my $np = Nagios::Plugin->new(


=====================================
debian/patches/check_memory/monitoring-plugin
=====================================
@@ -33,7 +33,7 @@ index bf46711..4f272d1 100644
  
  $PROGNAME = "check_memory";
  $VERSION = '1.0.1';
- $FREECMD = '/usr/bin/free';
+ $FREECMD = 'LANG=C /usr/bin/free';
  $UNIT = 'M';
  
 -my $np = Nagios::Plugin->new(


=====================================
debian/patches/series
=====================================
@@ -25,6 +25,7 @@ check_libvirt/fix_cache_path
 check_lm_sensors/manpage_whatis_fix
 check_lm_sensors/spelling_errors
 check_lm_sensors/interpreter
+check_memory/force_locale
 check_memory/new_free
 check_memory/monitoring-plugin
 check_nfsmounts/perl_module



View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/-/commit/87821165da9f96845ef4cda1f8afcfcaea0b7741

-- 
View it on GitLab: https://salsa.debian.org/nagios-team/pkg-nagios-plugins-contrib/-/commit/87821165da9f96845ef4cda1f8afcfcaea0b7741
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-nagios-changes/attachments/20210429/eadfbe2e/attachment-0001.htm>


More information about the pkg-nagios-changes mailing list