summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp_peer.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-12 13:47:13 +0100
committerLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2025-03-12 13:47:13 +0100
commit2765379e3b2b18f6ca108ea96617fe8582078650 (patch)
tree2f28691581b0c822241007f89fcb03eec734b078 /plugins/check_ntp_peer.c
parentab2c2f525987dba8d314644d9eeeb48f9ae4d70c (diff)
downloadmonitoring-plugins-2765379e3b2b18f6ca108ea96617fe8582078650.tar.gz
Fix format specifier
Diffstat (limited to 'plugins/check_ntp_peer.c')
-rw-r--r--plugins/check_ntp_peer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c
index 19e8a11f..6e76bf23 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=%i (WARNING)", result_line, ntp_res.stratum); 710 xasprintf(&result_line, "%s, stratum=%l (WARNING)", result_line, ntp_res.stratum);
711 } else if (sresult == STATE_CRITICAL) { 711 } else if (sresult == STATE_CRITICAL) {
712 xasprintf(&result_line, "%s, stratum=%i (CRITICAL)", result_line, ntp_res.stratum); 712 xasprintf(&result_line, "%s, stratum=%l (CRITICAL)", result_line, ntp_res.stratum);
713 } else { 713 } else {
714 xasprintf(&result_line, "%s, stratum=%i", result_line, ntp_res.stratum); 714 xasprintf(&result_line, "%s, stratum=%l", 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 }