diff options
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-12-10 04:00:40 +0000 |
---|---|---|
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | 2007-12-10 04:00:40 +0000 |
commit | c1b08bca7b9c01d01c805dc9e40a447d4526d2d5 (patch) | |
tree | 1a188f7899638ee0c9c885d0a8d339069ebbb87d /plugins/check_ntp_time.c | |
parent | 5ed07cacfd0c7633ae726114c93ffe6f1b829b83 (diff) | |
download | monitoring-plugins-c1b08bca7b9c01d01c805dc9e40a447d4526d2d5.tar.gz |
OOPS! Last commit should have included these files.
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1858 f882894a-f735-0410-b71e-b25c423dba1c
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); |