diff options
Diffstat (limited to 'plugins/check_ntp_time.c')
-rw-r--r-- | plugins/check_ntp_time.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index ad7f6c4b..60e2b5a0 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
@@ -556,23 +556,23 @@ int main(int argc, char *argv[]){ | |||
556 | 556 | ||
557 | switch (result) { | 557 | switch (result) { |
558 | case STATE_CRITICAL : | 558 | case STATE_CRITICAL : |
559 | asprintf(&result_line, "NTP CRITICAL:"); | 559 | asprintf(&result_line, _("NTP CRITICAL:")); |
560 | break; | 560 | break; |
561 | case STATE_WARNING : | 561 | case STATE_WARNING : |
562 | asprintf(&result_line, "NTP WARNING:"); | 562 | asprintf(&result_line, _("NTP WARNING:")); |
563 | break; | 563 | break; |
564 | case STATE_OK : | 564 | case STATE_OK : |
565 | asprintf(&result_line, "NTP OK:"); | 565 | asprintf(&result_line, _("NTP OK:")); |
566 | break; | 566 | break; |
567 | default : | 567 | default : |
568 | asprintf(&result_line, "NTP UNKNOWN:"); | 568 | asprintf(&result_line, _("NTP UNKNOWN:")); |
569 | break; | 569 | break; |
570 | } | 570 | } |
571 | if(offset_result == STATE_UNKNOWN){ | 571 | if(offset_result == STATE_UNKNOWN){ |
572 | asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); | 572 | asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); |
573 | asprintf(&perfdata_line, ""); | 573 | asprintf(&perfdata_line, ""); |
574 | } else { | 574 | } else { |
575 | asprintf(&result_line, "%s Offset %.10g secs", result_line, offset); | 575 | asprintf(&result_line, "%s %s %.10g secs", result_line, _("Offset"), offset); |
576 | asprintf(&perfdata_line, "%s", perfd_offset(offset)); | 576 | asprintf(&perfdata_line, "%s", perfd_offset(offset)); |
577 | } | 577 | } |
578 | printf("%s|%s\n", result_line, perfdata_line); | 578 | printf("%s|%s\n", result_line, perfdata_line); |