Code

Support `check_ssh --hostname=ADDRESS' (but keep `--host=ADDRESS' for backward
authorHolger Weiss <hweiss@users.sourceforge.net>
Tue, 23 Jan 2007 18:34:45 +0000 (18:34 +0000)
committerHolger Weiss <hweiss@users.sourceforge.net>
Tue, 23 Jan 2007 18:34:45 +0000 (18:34 +0000)
compatibility) (Ville Mattila - 1642780)

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

THANKS.in
plugins/check_ssh.c

index 584fee08a9521f5d24b7a90f8aaffca28ddcacb1..b18c66bb5fce833f81900b8a06d5537d77512e7c 100644 (file)
--- a/THANKS.in
+++ b/THANKS.in
@@ -208,3 +208,4 @@ Sebastian Schubert
 Jason Hoos
 Chris Grim
 Nobuhiro Ban
+Ville Mattila
index ce4c08482f1b47cab0452ce686a8e6f21e6a0353..1c24e5889c460525910d55baa793ce6d08c86f4e 100644 (file)
@@ -102,7 +102,8 @@ process_arguments (int argc, char **argv)
        static struct option longopts[] = {
                {"help", no_argument, 0, 'h'},
                {"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'},
                {"use-ipv4", no_argument, 0, '4'},
                {"use-ipv6", no_argument, 0, '6'},