summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-11 05:57:35 (GMT)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>2007-12-11 05:57:35 (GMT)
commit56c9db8516069b34a3174ee6511d5e6962007d27 (patch)
tree73ebcece0b7acccad3a4f1ff2c30c43e7c7b9bef
parent14be3a7df38404c2b35007c7fbd7111eb0495980 (diff)
downloadmonitoring-plugins-56c9db8516069b34a3174ee6511d5e6962007d27.tar.gz
Adding missing function calls needed for i18n (only for plugins already in POTFILES.in)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1861 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r--plugins-root/check_icmp.c4
-rw-r--r--plugins/check_cluster.c4
-rw-r--r--plugins/check_http.c4
-rw-r--r--plugins/check_mrtgtraf.c4
-rw-r--r--plugins/check_ntp.c4
-rw-r--r--plugins/check_ntp_peer.c4
-rw-r--r--plugins/check_ntp_time.c4
7 files changed, 28 insertions, 0 deletions
diff --git a/plugins-root/check_icmp.c b/plugins-root/check_icmp.c
index f0ba9d0..7636bc7 100644
--- a/plugins-root/check_icmp.c
+++ b/plugins-root/check_icmp.c
@@ -371,6 +371,10 @@ main(int argc, char **argv)
371 int icmp_sockerrno, udp_sockerrno, tcp_sockerrno; 371 int icmp_sockerrno, udp_sockerrno, tcp_sockerrno;
372 int result; 372 int result;
373 struct rta_host *host; 373 struct rta_host *host;
374
375 setlocale (LC_ALL, "");
376 bindtextdomain (PACKAGE, LOCALEDIR);
377 textdomain (PACKAGE);
374 378
375 /* print a helpful error message if geteuid != 0 */ 379 /* print a helpful error message if geteuid != 0 */
376 np_warn_if_not_root(); 380 np_warn_if_not_root();
diff --git a/plugins/check_cluster.c b/plugins/check_cluster.c
index 2c7ee11..6f9c3e6 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 728e7c1..bec02e1 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 97f0c92..c38e595 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 e3ac2c8..86e3d09 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 87d02e1..b5551ba 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 60e2b5a..f414c32 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)