diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/check_cluster.c | 4 | ||||
| -rw-r--r-- | plugins/check_http.c | 4 | ||||
| -rw-r--r-- | plugins/check_mrtgtraf.c | 4 | ||||
| -rw-r--r-- | plugins/check_ntp.c | 4 | ||||
| -rw-r--r-- | plugins/check_ntp_peer.c | 4 | ||||
| -rw-r--r-- | plugins/check_ntp_time.c | 4 |
6 files changed, 24 insertions, 0 deletions
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c index 2c7ee113..6f9c3e68 100644 --- a/plugins/check_cluster.c +++ b/plugins/check_cluster.c | |||
| @@ -71,6 +71,10 @@ int main(int argc, char **argv){ | |||
| 71 | int return_code=STATE_OK; | 71 | int return_code=STATE_OK; |
| 72 | thresholds *thresholds = NULL; | 72 | thresholds *thresholds = NULL; |
| 73 | 73 | ||
| 74 | setlocale (LC_ALL, ""); | ||
| 75 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
| 76 | textdomain (PACKAGE); | ||
| 77 | |||
| 74 | if(process_arguments(argc,argv)==ERROR) | 78 | if(process_arguments(argc,argv)==ERROR) |
| 75 | usage(_("Could not parse arguments")); | 79 | usage(_("Could not parse arguments")); |
| 76 | 80 | ||
diff --git a/plugins/check_http.c b/plugins/check_http.c index 728e7c13..bec02e1a 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
| @@ -140,6 +140,10 @@ main (int argc, char **argv) | |||
| 140 | { | 140 | { |
| 141 | int result = STATE_UNKNOWN; | 141 | int result = STATE_UNKNOWN; |
| 142 | 142 | ||
| 143 | setlocale (LC_ALL, ""); | ||
| 144 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
| 145 | textdomain (PACKAGE); | ||
| 146 | |||
| 143 | /* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */ | 147 | /* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */ |
| 144 | server_url = strdup(HTTP_URL); | 148 | server_url = strdup(HTTP_URL); |
| 145 | server_url_length = strlen(server_url); | 149 | server_url_length = strlen(server_url); |
diff --git a/plugins/check_mrtgtraf.c b/plugins/check_mrtgtraf.c index 97f0c92a..c38e595d 100644 --- a/plugins/check_mrtgtraf.c +++ b/plugins/check_mrtgtraf.c | |||
| @@ -79,6 +79,10 @@ main (int argc, char **argv) | |||
| 79 | char incoming_speed_rating[8]; | 79 | char incoming_speed_rating[8]; |
| 80 | char outgoing_speed_rating[8]; | 80 | char outgoing_speed_rating[8]; |
| 81 | 81 | ||
| 82 | setlocale (LC_ALL, ""); | ||
| 83 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
| 84 | textdomain (PACKAGE); | ||
| 85 | |||
| 82 | if (process_arguments (argc, argv) == ERROR) | 86 | if (process_arguments (argc, argv) == ERROR) |
| 83 | usage4 (_("Could not parse arguments")); | 87 | usage4 (_("Could not parse arguments")); |
| 84 | 88 | ||
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c index e3ac2c8e..86e3d098 100644 --- a/plugins/check_ntp.c +++ b/plugins/check_ntp.c | |||
| @@ -757,6 +757,10 @@ int main(int argc, char *argv[]){ | |||
| 757 | double offset=0, jitter=0; | 757 | double offset=0, jitter=0; |
| 758 | char *result_line, *perfdata_line; | 758 | char *result_line, *perfdata_line; |
| 759 | 759 | ||
| 760 | setlocale (LC_ALL, ""); | ||
| 761 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
| 762 | textdomain (PACKAGE); | ||
| 763 | |||
| 760 | result = offset_result = jitter_result = STATE_OK; | 764 | result = offset_result = jitter_result = STATE_OK; |
| 761 | 765 | ||
| 762 | if (process_arguments (argc, argv) == ERROR) | 766 | if (process_arguments (argc, argv) == ERROR) |
diff --git a/plugins/check_ntp_peer.c b/plugins/check_ntp_peer.c index 87d02e17..b5551ba8 100644 --- a/plugins/check_ntp_peer.c +++ b/plugins/check_ntp_peer.c | |||
| @@ -544,6 +544,10 @@ int main(int argc, char *argv[]){ | |||
| 544 | double offset=0, jitter=0; | 544 | double offset=0, jitter=0; |
| 545 | char *result_line, *perfdata_line; | 545 | char *result_line, *perfdata_line; |
| 546 | 546 | ||
| 547 | setlocale (LC_ALL, ""); | ||
| 548 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
| 549 | textdomain (PACKAGE); | ||
| 550 | |||
| 547 | if (process_arguments (argc, argv) == ERROR) | 551 | if (process_arguments (argc, argv) == ERROR) |
| 548 | usage4 (_("Could not parse arguments")); | 552 | usage4 (_("Could not parse arguments")); |
| 549 | 553 | ||
diff --git a/plugins/check_ntp_time.c b/plugins/check_ntp_time.c index 60e2b5a0..f414c328 100644 --- a/plugins/check_ntp_time.c +++ b/plugins/check_ntp_time.c | |||
| @@ -534,6 +534,10 @@ int main(int argc, char *argv[]){ | |||
| 534 | double offset=0; | 534 | double offset=0; |
| 535 | char *result_line, *perfdata_line; | 535 | char *result_line, *perfdata_line; |
| 536 | 536 | ||
| 537 | setlocale (LC_ALL, ""); | ||
| 538 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
| 539 | textdomain (PACKAGE); | ||
| 540 | |||
| 537 | result = offset_result = STATE_OK; | 541 | result = offset_result = STATE_OK; |
| 538 | 542 | ||
| 539 | if (process_arguments (argc, argv) == ERROR) | 543 | if (process_arguments (argc, argv) == ERROR) |
