summaryrefslogtreecommitdiffstats
path: root/web/attachments/229809-c
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/229809-c')
-rw-r--r--web/attachments/229809-c19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/attachments/229809-c b/web/attachments/229809-c
new file mode 100644
index 0000000..5f311fc
--- /dev/null
+++ b/web/attachments/229809-c
@@ -0,0 +1,19 @@
1*** check_by_ssh.c 18 Apr 2007 21:31:29 +0200 1.43
2--- check_by_ssh.c 19 May 2007 17:15:55 +0200
3***************
4*** 393,398 ****
5--- 393,406 ----
6 printf (" %s\n", _("To use passive mode, provide multiple '-C' options, and provide"));
7 printf (" %s\n", _("all of -O, -s, and -n options (servicelist order must match '-C'options)"));
8 printf ("\n");
9+ printf (" %s\n", _("The -C command is not evaluated by a shell, it is parsed by a custom algorithm."));
10+ printf (" %s\n", _("Double quotes are forbiden. "));
11+ printf (" %s\n", _("Single quotes are allowed if not surrounded by spaces but"));
12+ printf (" %s\n", _("will not have the expected result because they are parsed"));
13+ printf (" %s\n", _("in a way that was not designed specificaly for ssh invocation."));
14+ printf (" %s\n", _("Backslash can be used as in the following example:"));
15+ printf (" %s\n", _("... -C 'check_mysql_query -q select\ count\(serial\)\ from\ counter -u nagios -d pokernetwork -H localhost -c 0' ... "));
16+ printf ("\n");
17 printf ("%s\n", _("Examples:"));
18 printf (" %s\n", "$ check_by_ssh -H localhost -n lh -s c1:c2:c3 -C uptime -C uptime -C uptime -O /tmp/foo");
19 printf (" %s\n", "$ cat /tmp/foo");