aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Andreas Baumann <mail@andreasbaumann.cc> 2021-07-28 19:17:46 +0200
committerGravatar Andreas Baumann <mail@andreasbaumann.cc> 2021-07-28 19:17:46 +0200
commit67088216abd866cc28dc438af1e89ca9de60c48d (patch)
tree17705ecdbf22cc15d7c7b03a9e4ae1e896396b83 /plugins
parentde5503063e4ea455a7a0a57afcc467a2041c859f (diff)
parent5a2400cc2a9e76787320632ea402f6d8378d5124 (diff)
downloadmonitoring-plugins-67088216abd866cc28dc438af1e89ca9de60c48d.tar.gz
Merge branch 'master' into feature_check_curl
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_by_ssh.c2
-rw-r--r--plugins/check_http.c4
2 files changed, 2 insertions, 4 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)
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++];
}
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 0b712665..34fb4f01 100644
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
@@ -1453,8 +1453,8 @@ redir (char *pos, char *status_line)
!strncmp(server_address, addr, MAX_IPV4_HOSTLENGTH) &&
(host_name && !strncmp(host_name, addr, MAX_IPV4_HOSTLENGTH)) &&
!strcmp(server_url, url))
- die (STATE_WARNING,
- _("HTTP WARNING - redirection creates an infinite loop - %s://%s:%d%s%s\n"),
+ die (STATE_CRITICAL,
+ _("HTTP CRITICAL - redirection creates an infinite loop - %s://%s:%d%s%s\n"),
type, addr, i, url, (display_html ? "</A>" : ""));
strcpy (server_type, type);