Code

Support `check_ssh --hostname=ADDRESS' (but keep `--host=ADDRESS' for backward
[nagiosplug.git] / plugins / check_ssh.c
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'},