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/207725-check_by_ssh.patch | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 web/attachments/207725-check_by_ssh.patch (limited to 'web/attachments/207725-check_by_ssh.patch') diff --git a/web/attachments/207725-check_by_ssh.patch b/web/attachments/207725-check_by_ssh.patch new file mode 100644 index 0000000..be15032 --- /dev/null +++ b/web/attachments/207725-check_by_ssh.patch @@ -0,0 +1,36 @@ +--- check_by_ssh.c 2006-10-18 20:25:16.000000000 -0400 ++++ check_by_ssh_new.c 2006-12-18 10:51:04.000000000 -0500 +@@ -166,6 +166,7 @@ + {"proto2", no_argument, 0, '2'}, + {"use-ipv4", no_argument, 0, '4'}, + {"use-ipv6", no_argument, 0, '6'}, ++ {"quiet", no_argument, 0, 'q'}, + {0, 0, 0, 0} + }; + +@@ -177,7 +178,7 @@ + strcpy (argv[c], "-t"); + + while (1) { +- c = getopt_long (argc, argv, "Vvh1246ft:H:O:p:i:u:l:C:S:n:s:", longopts, ++ c = getopt_long (argc, argv, "Vvh1246fqt:H:O:p:i:u:l:C:S:n:s:", longopts, + &option); + + if (c == -1 || c == EOF) +@@ -238,6 +239,7 @@ + case '2': /* 1 to force version 1, 2 to force version 2 */ + case '4': /* -4 for IPv4 */ + case '6': /* -6 for IPv6 */ ++ case 'q': /* Quiet ssh output to suppress motd */ + case 'f': /* fork to background */ + asprintf (&comm, "%s -%c", comm, c); + break; +@@ -328,6 +330,8 @@ + printf (" %s\n", _("tell ssh to use Protocol 1")); + printf (" %s\n", "-2, --proto2"); + printf (" %s\n", _("tell ssh to use Protocol 2")); ++ printf (" %s\n", "-q, --quiet"); ++ printf (" %s\n", _("tell ssh to use quiet mode")); + printf (" %s\n", "-S, --skiplines=n"); + printf (" %s\n", _("Ignore first n lines on STDERR (to suppress a logon banner)")); + printf (" %s\n", "-f"); -- cgit v1.2.3-74-g34f1