summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Weiss <hweiss@users.sourceforge.net>2007-01-23 18:34:45 (GMT)
committerHolger Weiss <hweiss@users.sourceforge.net>2007-01-23 18:34:45 (GMT)
commit210f39bc84cfbb21cd72dc054e43f13815ee0616 (patch)
tree97e3193345482b8111ff6948447cd101ed97076f
parent934bf71b9d0404af8846b545e523fa32767988af (diff)
downloadmonitoring-plugins-210f39bc84cfbb21cd72dc054e43f13815ee0616.tar.gz
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
-rw-r--r--THANKS.in1
-rw-r--r--plugins/check_ssh.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/THANKS.in b/THANKS.in
index 584fee0..b18c66b 100644
--- a/THANKS.in
+++ b/THANKS.in
@@ -208,3 +208,4 @@ Sebastian Schubert
208Jason Hoos 208Jason Hoos
209Chris Grim 209Chris Grim
210Nobuhiro Ban 210Nobuhiro Ban
211Ville Mattila
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index ce4c084..1c24e58 100644
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
@@ -102,7 +102,8 @@ process_arguments (int argc, char **argv)
102 static struct option longopts[] = { 102 static struct option longopts[] = {
103 {"help", no_argument, 0, 'h'}, 103 {"help", no_argument, 0, 'h'},
104 {"version", no_argument, 0, 'V'}, 104 {"version", no_argument, 0, 'V'},
105 {"host", required_argument, 0, 'H'}, 105 {"host", required_argument, 0, 'H'}, /* backward compatibility */
106 {"hostname", required_argument, 0, 'H'},
106 {"port", required_argument, 0, 'p'}, 107 {"port", required_argument, 0, 'p'},
107 {"use-ipv4", no_argument, 0, '4'}, 108 {"use-ipv4", no_argument, 0, '4'},
108 {"use-ipv6", no_argument, 0, '6'}, 109 {"use-ipv6", no_argument, 0, '6'},