From 210f39bc84cfbb21cd72dc054e43f13815ee0616 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Tue, 23 Jan 2007 18:34:45 +0000 Subject: [PATCH] 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 --- THANKS.in | 1 + plugins/check_ssh.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/THANKS.in b/THANKS.in index 584fee0..b18c66b 100644 --- a/THANKS.in +++ b/THANKS.in @@ -208,3 +208,4 @@ Sebastian Schubert Jason Hoos Chris Grim Nobuhiro Ban +Ville 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) 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'}, -- 2.30.2