summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-10 04:00:40 +0000
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-10 04:00:40 +0000
commitc1b08bca7b9c01d01c805dc9e40a447d4526d2d5 (patch)
tree1a188f7899638ee0c9c885d0a8d339069ebbb87d
parent5ed07cacfd0c7633ae726114c93ffe6f1b829b83 (diff)
downloadmonitoring-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
-rw-r--r--plugins/check_ntp.c10
-rw-r--r--plugins/check_ntp_peer.c10
-rw-r--r--plugins/check_ntp_time.c10
3 files changed, 15 insertions, 15 deletions
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index 164d5190..e3ac2c8e 100644
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
@@ -797,23 +797,23 @@ int main(int argc, char *argv[]){
797 797
798 switch (result) { 798 switch (result) {
799 case STATE_CRITICAL : 799 case STATE_CRITICAL :
800 asprintf(&result_line, "NTP CRITICAL:"); 800 asprintf(&result_line, _("NTP CRITICAL:"));
801 break; 801 break;
802 case STATE_WARNING : 802 case STATE_WARNING :
803 asprintf(&result_line, "NTP WARNING:"); 803 asprintf(&result_line, _("NTP WARNING:"));
804 break; 804 break;
805 case STATE_OK : 805 case STATE_OK :
806 asprintf(&result_line, "NTP OK:"); 806 asprintf(&result_line, _("NTP OK:"));
807 break; 807 break;
808 default : 808 default :
809 asprintf(&result_line, "NTP UNKNOWN:"); 809 asprintf(&result_line, _("NTP UNKNOWN:"));
810 break; 810 break;
811 } 811 }
812 if(offset_result == STATE_UNKNOWN){ 812 if(offset_result == STATE_UNKNOWN){
813 asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); 813 asprintf(&result_line, "%s %s", result_line, _("Offset unknown"));
814 asprintf(&perfdata_line, ""); 814 asprintf(&perfdata_line, "");
815 } else { 815 } else {
816 asprintf(&result_line, "%s Offset %.10g secs", result_line, offset); 816 asprintf(&result_line, "%s %s %.10g secs", result_line, _("Offset"), offset);
817 asprintf(&perfdata_line, "%s", perfd_offset(offset)); 817 asprintf(&perfdata_line, "%s", perfd_offset(offset));
818 } 818 }
819 if (do_jitter) { 819 if (do_jitter) {
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c
index fbe278c9..87d02e17 100644
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
@@ -578,16 +578,16 @@ int main(int argc, char *argv[]){
578 578
579 switch (result) { 579 switch (result) {
580 case STATE_CRITICAL : 580 case STATE_CRITICAL :
581 asprintf(&result_line, "NTP CRITICAL:"); 581 asprintf(&result_line, _("NTP CRITICAL:"));
582 break; 582 break;
583 case STATE_WARNING : 583 case STATE_WARNING :
584 asprintf(&result_line, "NTP WARNING:"); 584 asprintf(&result_line, _("NTP WARNING:"));
585 break; 585 break;
586 case STATE_OK : 586 case STATE_OK :
587 asprintf(&result_line, "NTP OK:"); 587 asprintf(&result_line, _("NTP OK:"));
588 break; 588 break;
589 default : 589 default :
590 asprintf(&result_line, "NTP UNKNOWN:"); 590 asprintf(&result_line, _("NTP UNKNOWN:"));
591 break; 591 break;
592 } 592 }
593 if(!syncsource_found) 593 if(!syncsource_found)
@@ -597,7 +597,7 @@ int main(int argc, char *argv[]){
597 asprintf(&result_line, "%s %s", result_line, _("Offset unknown")); 597 asprintf(&result_line, "%s %s", result_line, _("Offset unknown"));
598 asprintf(&perfdata_line, ""); 598 asprintf(&perfdata_line, "");
599 } else { 599 } else {
600 asprintf(&result_line, "%s Offset %.10g secs", result_line, offset); 600 asprintf(&result_line, "%s %s %.10g secs", result_line, _("Offset"), offset);
601 asprintf(&perfdata_line, "%s", perfd_offset(offset)); 601 asprintf(&perfdata_line, "%s", perfd_offset(offset));
602 } 602 }
603 if (do_jitter) { 603 if (do_jitter) {
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);