diff options
author | Sven Nierlein <sven@nierlein.de> | 2014-08-06 13:51:18 (GMT) |
---|---|---|
committer | Sven Nierlein <sven@nierlein.de> | 2014-08-06 13:51:18 (GMT) |
commit | 57fb03cea59c266a0930c3a368cbed40bbc66169 (patch) | |
tree | fac61e03779751ff4995dcaf98e7f7c48687ca6c /plugins/check_by_ssh.c | |
parent | a5b6d94fc6daa1868745441f6fed8f7576f2e5dd (diff) | |
download | monitoring-plugins-57fb03cea59c266a0930c3a368cbed40bbc66169.tar.gz |
check_by_ssh: added --hostname support
just like the guidelines and the help already suggests.
Signed-off-by: Sven Nierlein <sven@nierlein.de>
Diffstat (limited to 'plugins/check_by_ssh.c')
-rw-r--r-- | plugins/check_by_ssh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 58f333d..a877f88 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
@@ -169,7 +169,8 @@ process_arguments (int argc, char **argv) | |||
169 | {"verbose", no_argument, 0, 'v'}, | 169 | {"verbose", no_argument, 0, 'v'}, |
170 | {"fork", no_argument, 0, 'f'}, | 170 | {"fork", no_argument, 0, 'f'}, |
171 | {"timeout", required_argument, 0, 't'}, | 171 | {"timeout", required_argument, 0, 't'}, |
172 | {"host", required_argument, 0, 'H'}, | 172 | {"host", required_argument, 0, 'H'}, /* backward compatibility */ |
173 | {"hostname", required_argument, 0, 'H'}, | ||
173 | {"port", required_argument,0,'p'}, | 174 | {"port", required_argument,0,'p'}, |
174 | {"output", required_argument, 0, 'O'}, | 175 | {"output", required_argument, 0, 'O'}, |
175 | {"name", required_argument, 0, 'n'}, | 176 | {"name", required_argument, 0, 'n'}, |