diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2021-12-02 16:42:05 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-02 16:42:05 +0100 |
| commit | 911e44045d7291f5ede22739fd176ef55dd3de4a (patch) | |
| tree | cf36b95a4a964b03d6ecf75770ced2cb3a2ac3a9 /plugins/check_by_ssh.c | |
| parent | 8294af907bd8482a86df749f562b7ec09e3faeed (diff) | |
| parent | ed7cdf82a42f16532801ea4f118870ce9a130fcf (diff) | |
| download | monitoring-plugins-911e44045d7291f5ede22739fd176ef55dd3de4a.tar.gz | |
Merge branch 'master' into fix/shellcheck
Diffstat (limited to 'plugins/check_by_ssh.c')
| -rw-r--r-- | plugins/check_by_ssh.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c index 13d8bc3b..485bf3be 100644 --- a/plugins/check_by_ssh.c +++ b/plugins/check_by_ssh.c | |||
| @@ -230,7 +230,6 @@ process_arguments (int argc, char **argv) | |||
| 230 | timeout_interval = atoi (optarg); | 230 | timeout_interval = atoi (optarg); |
| 231 | break; | 231 | break; |
| 232 | case 'H': /* host */ | 232 | case 'H': /* host */ |
| 233 | host_or_die(optarg); | ||
| 234 | hostname = optarg; | 233 | hostname = optarg; |
| 235 | break; | 234 | break; |
| 236 | case 'p': /* port number */ | 235 | case 'p': /* port number */ |
| @@ -329,7 +328,6 @@ process_arguments (int argc, char **argv) | |||
| 329 | if (c <= argc) { | 328 | if (c <= argc) { |
| 330 | die (STATE_UNKNOWN, _("%s: You must provide a host name\n"), progname); | 329 | die (STATE_UNKNOWN, _("%s: You must provide a host name\n"), progname); |
| 331 | } | 330 | } |
| 332 | host_or_die(argv[c]); | ||
| 333 | hostname = argv[c++]; | 331 | hostname = argv[c++]; |
| 334 | } | 332 | } |
| 335 | 333 | ||
