summaryrefslogtreecommitdiffstats
path: root/plugins/check_ntp.c
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 /plugins/check_ntp.c
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
Diffstat (limited to 'plugins/check_ntp.c')
-rw-r--r--plugins/check_ntp.c10
1 files changed, 5 insertions, 5 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) {