summaryrefslogtreecommitdiffstats
path: root/web/attachments/119447-check_by_ssh.diff
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/119447-check_by_ssh.diff')
-rw-r--r--web/attachments/119447-check_by_ssh.diff49
1 files changed, 49 insertions, 0 deletions
diff --git a/web/attachments/119447-check_by_ssh.diff b/web/attachments/119447-check_by_ssh.diff
new file mode 100644
index 0000000..a915d9f
--- /dev/null
+++ b/web/attachments/119447-check_by_ssh.diff
@@ -0,0 +1,49 @@
1--- check_by_ssh.c.orig 2005-02-08 18:17:08.000000000 +0300
2+++ check_by_ssh.c 2005-02-08 18:13:37.000000000 +0300
3@@ -191,6 +191,7 @@
4 {"user", required_argument, 0, 'u'},
5 {"logname", required_argument, 0, 'l'},
6 {"command", required_argument, 0, 'C'},
7+ {"quiet", required_argument, 0, 'q'},
8 {"use-ipv4", no_argument, 0, '4'},
9 {"use-ipv6", no_argument, 0, '6'},
10 {0, 0, 0, 0}
11@@ -207,10 +208,10 @@
12 while (1) {
13 #ifdef HAVE_GETOPT_H
14 c =
15- getopt_long (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:", long_options,
16+ getopt_long (argc, argv, "Vvhq46ft:H:O:p:i:u:l:C:n:s:", long_options,
17 &option_index);
18 #else
19- c = getopt (argc, argv, "Vvh46ft:H:O:p:i:u:l:C:n:s:");
20+ c = getopt (argc, argv, "Vvhq46ft:H:O:p:i:u:l:C:n:s:");
21 #endif
22
23 if (c == -1 || c == EOF)
24@@ -268,6 +269,7 @@
25 case 'i': /* identity */
26 asprintf (&comm, "%s -%c %s", comm, c, optarg);
27 break;
28+ case 'q': /* quiet */
29 case '4': /* Pass these switches directly to ssh */
30 case '6': /* -4 for IPv4, -6 for IPv6 */
31 case 'f': /* fork to background */
32@@ -364,6 +366,8 @@
33 " list of nagios service names, separated by ':' [optional]\n"
34 "-n, --name=NAME\n"
35 " short name of host in nagios configuration [optional]\n"
36+ "-q, --quiet\n"
37+ " tell ssh to run in quiet mode\n"
38 "-4, --use-ipv4\n"
39 " tell ssh to use IPv4\n"
40 "-6, --use-ipv6\n"
41@@ -391,7 +395,7 @@
42 {
43 printf
44 ("Usage:\n"
45- "check_by_ssh [-f46] [-t timeout] [-i identity] [-l user] -H <host> -C <command>\n"
46+ "check_by_ssh [-fq46] [-t timeout] [-i identity] [-l user] -H <host> -C <command>\n"
47 " [-n name] [-s servicelist] [-O outputfile] [-p port]\n"
48 "check_by_ssh -V prints version info\n"
49 "check_by_ssh -h prints more detailed help\n");