diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-09 02:07:32 +0200 |
---|---|---|
committer | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2025-09-09 02:07:32 +0200 |
commit | fbd60d6a9d9ba5b45879280dcfda92379dec65da (patch) | |
tree | a7c0e428be10bb27b6344c6531b804451c4d40cc /plugins/check_ntp_peer.c | |
parent | b54869391faab7ef91586c81de21f18a61bac5aa (diff) | |
parent | 615fec347cd575c0ee4343aa17ee99962f375f64 (diff) | |
download | monitoring-plugins-fbd60d6a9d9ba5b45879280dcfda92379dec65da.tar.gz |
Merge branch 'master' into refactor/check_curl
Diffstat (limited to 'plugins/check_ntp_peer.c')
-rw-r--r-- | plugins/check_ntp_peer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 6e76bf23..5c4ff386 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
@@ -707,11 +707,11 @@ int main(int argc, char *argv[]) { | |||
707 | 707 | ||
708 | if (config.do_stratum) { | 708 | if (config.do_stratum) { |
709 | if (sresult == STATE_WARNING) { | 709 | if (sresult == STATE_WARNING) { |
710 | xasprintf(&result_line, "%s, stratum=%l (WARNING)", result_line, ntp_res.stratum); | 710 | xasprintf(&result_line, "%s, stratum=%li (WARNING)", result_line, ntp_res.stratum); |
711 | } else if (sresult == STATE_CRITICAL) { | 711 | } else if (sresult == STATE_CRITICAL) { |
712 | xasprintf(&result_line, "%s, stratum=%l (CRITICAL)", result_line, ntp_res.stratum); | 712 | xasprintf(&result_line, "%s, stratum=%li (CRITICAL)", result_line, ntp_res.stratum); |
713 | } else { | 713 | } else { |
714 | xasprintf(&result_line, "%s, stratum=%l", result_line, ntp_res.stratum); | 714 | xasprintf(&result_line, "%s, stratum=%li", result_line, ntp_res.stratum); |
715 | } | 715 | } |
716 | xasprintf(&perfdata_line, "%s %s", perfdata_line, perfd_stratum(ntp_res.stratum, config.do_stratum, config.stratum_thresholds)); | 716 | xasprintf(&perfdata_line, "%s %s", perfdata_line, perfd_stratum(ntp_res.stratum, config.do_stratum, config.stratum_thresholds)); |
717 | } | 717 | } |