diff options
author | Holger Weiss <hweiss@users.sourceforge.net> | 2007-01-23 18:34:45 +0000 |
---|---|---|
committer | Holger Weiss <hweiss@users.sourceforge.net> | 2007-01-23 18:34:45 +0000 |
commit | 210f39bc84cfbb21cd72dc054e43f13815ee0616 (patch) | |
tree | 97e3193345482b8111ff6948447cd101ed97076f /plugins/check_ssh.c | |
parent | 934bf71b9d0404af8846b545e523fa32767988af (diff) | |
download | monitoring-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
Diffstat (limited to 'plugins/check_ssh.c')
-rw-r--r-- | plugins/check_ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_ssh.c b/plugins/check_ssh.c index ce4c0848..1c24e588 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'}, |