diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c
index ce4c08482f1b47cab0452ce686a8e6f21e6a0353..afe44c9512d668f9410393cddaf89bf838970dbd 100644 (file)
--- a/plugins/check_ssh.c
+++ b/plugins/check_ssh.c
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'},
switch (c) {
case '?': /* help */
- usage2 (_("Unknown argument"), optarg);
+ usage5 ();
case 'V': /* version */
print_revision (progname, revision);
exit (STATE_OK);