summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 14be3a7)
raw | patch | inline | side by side (parent: 14be3a7)
author | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Tue, 11 Dec 2007 05:57:35 +0000 (05:57 +0000) | ||
committer | Thomas Guyot-Sionnest <dermoth@users.sourceforge.net> | |
Tue, 11 Dec 2007 05:57:35 +0000 (05:57 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
index f0ba9d0ce7313d78e995d8035ee7e65cbcd88a73..7636bc714a5fe5ecdde9e3b63e234686731a098f 100644 (file)
int icmp_sockerrno, udp_sockerrno, tcp_sockerrno;
int result;
struct rta_host *host;
+
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
/* print a helpful error message if geteuid != 0 */
np_warn_if_not_root();
index 2c7ee113b38c78b428842aeb24a2802ef82c236e..6f9c3e68e81e075b662198d118fc15c920d9f5ae 100644 (file)
--- a/plugins/check_cluster.c
+++ b/plugins/check_cluster.c
int return_code=STATE_OK;
thresholds *thresholds = NULL;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
if(process_arguments(argc,argv)==ERROR)
usage(_("Could not parse arguments"));
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 728e7c1381dc40dd837335ef4e706f0af30b91aa..bec02e1af5af67ce2a16d32604b3ba759cc27921 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
{
int result = STATE_UNKNOWN;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
/* Set default URL. Must be malloced for subsequent realloc if --onredirect=follow */
server_url = strdup(HTTP_URL);
server_url_length = strlen(server_url);
index 97f0c92ae0e5035a8ba6cdbf4caf481fb4f2bb1a..c38e595d811bfc4e66d116f0f0edd309bb490a52 100644 (file)
--- a/plugins/check_mrtgtraf.c
+++ b/plugins/check_mrtgtraf.c
char incoming_speed_rating[8];
char outgoing_speed_rating[8];
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
diff --git a/plugins/check_ntp.c b/plugins/check_ntp.c
index e3ac2c8e7e431f7cf28a708cee1defb99636ef0f..86e3d0985bf4f2ee57fbf020844dfa150d8a060a 100644 (file)
--- a/plugins/check_ntp.c
+++ b/plugins/check_ntp.c
double offset=0, jitter=0;
char *result_line, *perfdata_line;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
result = offset_result = jitter_result = STATE_OK;
if (process_arguments (argc, argv) == ERROR)
index 87d02e172a25fed86ede87fb999d497fbbe6a354..b5551ba8d64f9af7b431708d6c537cfd44eafe15 100644 (file)
--- a/plugins/check_ntp_peer.c
+++ b/plugins/check_ntp_peer.c
double offset=0, jitter=0;
char *result_line, *perfdata_line;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
index 60e2b5a0eab03523363f8d5c758519fa3b19c9cc..f414c328891662fc43cd9f27e1a9e5740155f29d 100644 (file)
--- a/plugins/check_ntp_time.c
+++ b/plugins/check_ntp_time.c
double offset=0;
char *result_line, *perfdata_line;
+ setlocale (LC_ALL, "");
+ bindtextdomain (PACKAGE, LOCALEDIR);
+ textdomain (PACKAGE);
+
result = offset_result = STATE_OK;
if (process_arguments (argc, argv) == ERROR)