浏览代码

Support `check_ssh --hostname=ADDRESS' (but keep `--host=ADDRESS' for backward
compatibility) (Ville Mattila - 1642780)


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1579 f882894a-f735-0410-b71e-b25c423dba1c

Holger Weiss 19 年之前
父节点
当前提交
210f39bc84
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 0
      THANKS.in
  2. 2 1
      plugins/check_ssh.c

+ 1 - 0
THANKS.in

@@ -208,3 +208,4 @@ Sebastian Schubert
 Jason Hoos
 Jason Hoos
 Chris Grim
 Chris Grim
 Nobuhiro Ban
 Nobuhiro Ban
+Ville Mattila

+ 2 - 1
plugins/check_ssh.c

@@ -102,7 +102,8 @@ process_arguments (int argc, char **argv)
 	static struct option longopts[] = {
 	static struct option longopts[] = {
 		{"help", no_argument, 0, 'h'},
 		{"help", no_argument, 0, 'h'},
 		{"version", no_argument, 0, 'V'},
 		{"version", no_argument, 0, 'V'},
-		{"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'},
 		{"use-ipv4", no_argument, 0, '4'},
 		{"use-ipv4", no_argument, 0, '4'},
 		{"use-ipv6", no_argument, 0, '6'},
 		{"use-ipv6", no_argument, 0, '6'},