Просмотр исходного кода

check_by_ssh: added --hostname support

just like the guidelines and the help already suggests.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
Sven Nierlein 11 лет назад
Родитель
Сommit
47348fc57d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      plugins/check_by_ssh.c

+ 2 - 1
plugins/check_by_ssh.c

@@ -169,7 +169,8 @@ process_arguments (int argc, char **argv)
 		{"verbose", no_argument, 0, 'v'},
 		{"verbose", no_argument, 0, 'v'},
 		{"fork", no_argument, 0, 'f'},
 		{"fork", no_argument, 0, 'f'},
 		{"timeout", required_argument, 0, 't'},
 		{"timeout", required_argument, 0, 't'},
-		{"host", required_argument, 0, 'H'},
+		{"host", required_argument, 0, 'H'},    /* backward compatibility */
+		{"hostname", required_argument, 0, 'H'},
 		{"port", required_argument,0,'p'},
 		{"port", required_argument,0,'p'},
 		{"output", required_argument, 0, 'O'},
 		{"output", required_argument, 0, 'O'},
 		{"name", required_argument, 0, 'n'},
 		{"name", required_argument, 0, 'n'},