[Pkg-nagios-changes] [pkg-nagios-plugins] 255/413: fix help of check_disk

Jan Wagner waja at moszumanska.debian.org
Tue Nov 26 23:13:29 UTC 2013


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository pkg-nagios-plugins.

commit 45f4cff944ff74c2aec57afd702161a84be1a1bf
Author: Jan Wagner <waja at cyconet.org>
Date:   Wed Jul 7 10:18:32 2010 +0000

    fix help of check_disk
---
 debian/changelog                             |  7 +++++--
 debian/patches/00list                        |  1 +
 debian/patches/46_check_disk_fix_help.dpatch | 29 ++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 73e7132..d06bfb4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,11 @@ nagios-plugins (1.4.14-6) UNRELEASED; urgency=low
 
   * Rename 13_subst.in_again.dpatch to 01_subst.in.dpatch
   * Add missing 42_check_linux_raid_fix_rebuild.dpatch to patch list
-  * fix ssh_disk and make ssh_disk* better readable, thanks
-    Paul Slootman (Closes: 582272)
+  * Fix ssh_disk and make ssh_disk* better readable, thanks
+    Paul Slootman (Closes: #582272)
+  * Add 46_check_disk_fix_help.dpatch, since --help seems to imply the
+    possibility to suffix unit values to warn/crit parameters, thanks
+    Justin T Pryzby for reporting (Closes: #588273)
 
  -- Jan Wagner <waja at cyconet.org>  Sat, 08 May 2010 22:22:24 +0200
 
diff --git a/debian/patches/00list b/debian/patches/00list
index 588a4b6..46b7632 100644
--- a/debian/patches/00list
+++ b/debian/patches/00list
@@ -19,3 +19,4 @@
 43_check_http_large_pages_mleak.dpatch
 44_check_snmp_perfdata.dpatch
 45_check_http_sni_optional.dpatch
+46_check_disk_fix_help.dpatch
diff --git a/debian/patches/46_check_disk_fix_help.dpatch b/debian/patches/46_check_disk_fix_help.dpatch
new file mode 100644
index 0000000..aff9d12
--- /dev/null
+++ b/debian/patches/46_check_disk_fix_help.dpatch
@@ -0,0 +1,29 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 45_check_http_sni_optional.dpatch
+## From: Ton Voon <ton.voon at opsera.com>
+## Date: Wed, 7 Jul 2010 11:03:24 +0100
+## Subject: [PATCH] Fix examples in check_disk, where it implied was possible to suffix unit values to warn/crit parameters
+## X-Git-Url: http://nagiosplug.git.sourceforge.net/git/gitweb.cgi?p=nagiosplug/nagiosplug;a=patch;h=02f9207ebe3a5ae5b35b4b69be1f3bf95ab5a220
+##
+## DP: Fix examples in check_disk
+
+ at DPATCH@
+
+diff --git a/plugins/check_disk.c b/plugins/check_disk.c
+index 4913625..851d800 100644
+--- a/plugins/check_disk.c
++++ b/plugins/check_disk.c
+@@ -963,10 +963,10 @@ print_help (void)
+   printf ("%s\n", _("Examples:"));
+   printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /");
+   printf ("    %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB"));
+-  printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -g sidDATA -r '^/oracle/SID/data.*$'");
++  printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'");
+   printf ("    %s\n", _("Checks all filesystems not matching -r at 100M and 50M. The fs matching the -r regex"));
+   printf ("    %s\n", _("are grouped which means the freespace thresholds are applied to all disks together"));
+-  printf (" %s\n", "check_disk -w 100M -c 50M -C -w 1000M -c 500M -p /foo -C -w 5% -c 3% -p /bar");
++  printf (" %s\n", "check_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /bar");
+   printf ("    %s\n", _("Checks /foo for 1000M/500M and /bar for 5/3%. All remaining volumes use 100M/50M"));
+ 
+   printf (UT_SUPPORT);
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git



More information about the Pkg-nagios-changes mailing list