[monitoring-plugins] Let ssh decide if a host is valid, enables usage ...

Lorenz Kästle git at monitoring-plugins.org
Mon Jul 5 09:40:11 CEST 2021


 Module: monitoring-plugins
 Branch: master
 Commit: 6e5ee70d07c0a8515acdc3ad52716285a4b7f77b
 Author: Lorenz Kästle <lorenz.kaestle at netways.de>
   Date: Fri Jun 25 12:12:48 2021 +0200
    URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=6e5ee70

Let ssh decide if a host is valid, enables usage of ssh .config file

---

 plugins/check_by_ssh.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/plugins/check_by_ssh.c b/plugins/check_by_ssh.c
index 13d8bc3..485bf3b 100644
--- a/plugins/check_by_ssh.c
+++ b/plugins/check_by_ssh.c
@@ -230,7 +230,6 @@ process_arguments (int argc, char **argv)
 				timeout_interval = atoi (optarg);
 			break;
 		case 'H':									/* host */
-			host_or_die(optarg);
 			hostname = optarg;
 			break;
 		case 'p': /* port number */
@@ -329,7 +328,6 @@ process_arguments (int argc, char **argv)
 		if (c <= argc) {
 			die (STATE_UNKNOWN, _("%s: You must provide a host name\n"), progname);
 		}
-		host_or_die(argv[c]);
 		hostname = argv[c++];
 	}
 



More information about the Commits mailing list