From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/49931-check_disk.patch | 53 ++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 web/attachments/49931-check_disk.patch (limited to 'web/attachments/49931-check_disk.patch') diff --git a/web/attachments/49931-check_disk.patch b/web/attachments/49931-check_disk.patch new file mode 100644 index 0000000..44ea1c4 --- /dev/null +++ b/web/attachments/49931-check_disk.patch @@ -0,0 +1,53 @@ +--- check_disk.c.orig Mon Mar 24 13:23:39 2003 ++++ check_disk.c Mon Mar 24 13:26:47 2003 +@@ -55,6 +55,7 @@ + char *exclude_device = ""; + int verbose = 0; + int display_mntp = FALSE; ++int local = FALSE; + + + int +@@ -75,7 +76,11 @@ + if (process_arguments (argc, argv) != OK) + usage ("Could not parse arguments\n"); + +- asprintf (&command_line, "%s %s", DF_COMMAND, path); ++ if (local) { ++ asprintf (&command_line, "%s -l %s", DF_COMMAND, path); ++ } else { ++ asprintf (&command_line, "%s %s", DF_COMMAND, path); ++ } + + if (verbose>0) + printf ("%s ==> ", command_line); +@@ -169,6 +174,7 @@ + {"verbose", no_argument, 0, 'v'}, + {"version", no_argument, 0, 'V'}, + {"help", no_argument, 0, 'h'}, ++ {"local", no_argument, 0, 'l'}, + {"mountpoint", no_argument, 0, 'm'}, + {"exclude_device", required_argument, 0, 'x'}, + {"quiet", no_argument, 0, 'q'}, +@@ -187,9 +193,9 @@ + while (1) { + #ifdef HAVE_GETOPT_H + c = +- getopt_long (argc, argv, "+?Vqhvt:c:w:p:x:m", long_options, &option_index); ++ getopt_long (argc, argv, "+?Vqhvt:c:w:p:x:lm", long_options, &option_index); + #else +- c = getopt (argc, argv, "+?Vqhvt:c:w:p:x:m"); ++ c = getopt (argc, argv, "+?Vqhvt:c:w:p:x:lm"); + #endif + + if (c == -1 || c == EOF) +@@ -247,6 +253,9 @@ + break; + case 'm': /* display mountpoint */ + display_mntp = TRUE; ++ break; ++ case 'l': ++ local = TRUE; + break; + case 'x': /* exclude path or partition */ + exclude_device = optarg; -- cgit v1.2.3-74-g34f1