diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_curl.c | 1 | ||||
| -rw-r--r-- | plugins/check_dbi.c | 1 | ||||
| -rw-r--r-- | plugins/check_fping.c | 1 | ||||
| -rw-r--r-- | plugins/check_hpjd.c | 1 | ||||
| -rw-r--r-- | plugins/check_http.c | 1 | ||||
| -rw-r--r-- | plugins/check_smtp.c | 1 | ||||
| -rw-r--r-- | plugins/check_snmp.c | 1 |
7 files changed, 7 insertions, 0 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index be5740d7..b7137145 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
| @@ -1654,6 +1654,7 @@ process_arguments (int argc, char **argv) | |||
| 1654 | break; | 1654 | break; |
| 1655 | case 'R': /* regex */ | 1655 | case 'R': /* regex */ |
| 1656 | cflags |= REG_ICASE; | 1656 | cflags |= REG_ICASE; |
| 1657 | // fall through | ||
| 1657 | case 'r': /* regex */ | 1658 | case 'r': /* regex */ |
| 1658 | strncpy (regexp, optarg, MAX_RE_SIZE - 1); | 1659 | strncpy (regexp, optarg, MAX_RE_SIZE - 1); |
| 1659 | regexp[MAX_RE_SIZE - 1] = 0; | 1660 | regexp[MAX_RE_SIZE - 1] = 0; |
diff --git a/plugins/check_dbi.c b/plugins/check_dbi.c index ced13d05..d73efbb2 100644 --- a/plugins/check_dbi.c +++ b/plugins/check_dbi.c | |||
| @@ -426,6 +426,7 @@ process_arguments (int argc, char **argv) | |||
| 426 | else | 426 | else |
| 427 | timeout_interval = atoi (optarg); | 427 | timeout_interval = atoi (optarg); |
| 428 | 428 | ||
| 429 | break; | ||
| 429 | case 'H': /* host */ | 430 | case 'H': /* host */ |
| 430 | if (!is_host (optarg)) | 431 | if (!is_host (optarg)) |
| 431 | usage2 (_("Invalid hostname/address"), optarg); | 432 | usage2 (_("Invalid hostname/address"), optarg); |
diff --git a/plugins/check_fping.c b/plugins/check_fping.c index 6f5656ef..23a9e990 100644 --- a/plugins/check_fping.c +++ b/plugins/check_fping.c | |||
| @@ -354,6 +354,7 @@ process_arguments (int argc, char **argv) | |||
| 354 | break; | 354 | break; |
| 355 | case 'I': /* sourceip */ | 355 | case 'I': /* sourceip */ |
| 356 | sourceif = strscpy (sourceif, optarg); | 356 | sourceif = strscpy (sourceif, optarg); |
| 357 | break; | ||
| 357 | case '4': /* IPv4 only */ | 358 | case '4': /* IPv4 only */ |
| 358 | address_family = AF_INET; | 359 | address_family = AF_INET; |
| 359 | break; | 360 | break; |
diff --git a/plugins/check_hpjd.c b/plugins/check_hpjd.c index c4b44178..c34bb082 100644 --- a/plugins/check_hpjd.c +++ b/plugins/check_hpjd.c | |||
| @@ -353,6 +353,7 @@ process_arguments (int argc, char **argv) | |||
| 353 | usage2 (_("Port must be a positive short integer"), optarg); | 353 | usage2 (_("Port must be a positive short integer"), optarg); |
| 354 | else | 354 | else |
| 355 | port = atoi(optarg); | 355 | port = atoi(optarg); |
| 356 | break; | ||
| 356 | case 'D': /* disable paper out check*/ | 357 | case 'D': /* disable paper out check*/ |
| 357 | check_paper_out = 0; | 358 | check_paper_out = 0; |
| 358 | break; | 359 | break; |
diff --git a/plugins/check_http.c b/plugins/check_http.c index 8c03bc8b..432a984b 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
| @@ -498,6 +498,7 @@ bool process_arguments (int argc, char **argv) | |||
| 498 | break; | 498 | break; |
| 499 | case 'R': /* regex */ | 499 | case 'R': /* regex */ |
| 500 | cflags |= REG_ICASE; | 500 | cflags |= REG_ICASE; |
| 501 | // fall through | ||
| 501 | case 'r': /* regex */ | 502 | case 'r': /* regex */ |
| 502 | strncpy (regexp, optarg, MAX_RE_SIZE - 1); | 503 | strncpy (regexp, optarg, MAX_RE_SIZE - 1); |
| 503 | regexp[MAX_RE_SIZE - 1] = 0; | 504 | regexp[MAX_RE_SIZE - 1] = 0; |
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c index eaa7eeba..b035aab5 100644 --- a/plugins/check_smtp.c +++ b/plugins/check_smtp.c | |||
| @@ -616,6 +616,7 @@ process_arguments (int argc, char **argv) | |||
| 616 | #else | 616 | #else |
| 617 | usage (_("SSL support not available - install OpenSSL and recompile")); | 617 | usage (_("SSL support not available - install OpenSSL and recompile")); |
| 618 | #endif | 618 | #endif |
| 619 | // fall through | ||
| 619 | case 'S': | 620 | case 'S': |
| 620 | /* starttls */ | 621 | /* starttls */ |
| 621 | use_ssl = TRUE; | 622 | use_ssl = TRUE; |
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c index c425df3c..04dc6c6f 100644 --- a/plugins/check_snmp.c +++ b/plugins/check_snmp.c | |||
| @@ -855,6 +855,7 @@ process_arguments (int argc, char **argv) | |||
| 855 | break; | 855 | break; |
| 856 | case 'R': /* regex */ | 856 | case 'R': /* regex */ |
| 857 | cflags = REG_ICASE; | 857 | cflags = REG_ICASE; |
| 858 | // fall through | ||
| 858 | case 'r': /* regex */ | 859 | case 'r': /* regex */ |
| 859 | cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; | 860 | cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; |
| 860 | strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); | 861 | strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); |
