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