diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-11-28 10:52:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-28 10:52:39 +0100 |
| commit | 2f96b82c9b67ca1aad6cd584a9c458d060bdd4bb (patch) | |
| tree | 1f2f08c06e06f26a8bec3472e2e630382506c71b /plugins/check_ntp_peer.c | |
| parent | 16db5eed1e5c59493506fef4e69d564ee8e607ca (diff) | |
| download | monitoring-plugins-2f96b82c9b67ca1aad6cd584a9c458d060bdd4bb.tar.gz | |
check_ntp_time/check_ntp_peer: unix socket handling (#2187)
* check_ntp_time/check_ntp_peer: unix socket handling
* No tests for check_ntp since it is deprecated
Diffstat (limited to 'plugins/check_ntp_peer.c')
| -rw-r--r-- | plugins/check_ntp_peer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index f7cad630..26f74286 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
| @@ -625,7 +625,7 @@ check_ntp_peer_config_wrapper process_arguments(int argc, char **argv) { | |||
| 625 | mp_thresholds_set_crit(result.config.truechimer_thresholds, tmp.range); | 625 | mp_thresholds_set_crit(result.config.truechimer_thresholds, tmp.range); |
| 626 | } break; | 626 | } break; |
| 627 | case 'H': | 627 | case 'H': |
| 628 | if (!is_host(optarg)) { | 628 | if (!is_host(optarg) && (optarg[0] != '/')) { |
| 629 | usage2(_("Invalid hostname/address"), optarg); | 629 | usage2(_("Invalid hostname/address"), optarg); |
| 630 | } | 630 | } |
| 631 | result.config.server_address = strdup(optarg); | 631 | result.config.server_address = strdup(optarg); |
