summaryrefslogtreecommitdiffstats
path: root/plugins/check_swap.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-25 23:17:46 +0000
commite9ccc6b21a1152bbf150302c4a29a6df79d75bd7 (patch)
tree91bf1ebb6f927fd628b298df2ac5a89580282591 /plugins/check_swap.c
parent71656b2aafffb69716620bf08cce76c925dc8fa3 (diff)
downloadmonitoring-plugins-e9ccc6b21a1152bbf150302c4a29a6df79d75bd7.tar.gz
various fixes for localization
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1061 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_swap.c')
-rw-r--r--plugins/check_swap.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/plugins/check_swap.c b/plugins/check_swap.c
index 6e2ab723..093845b4 100644
--- a/plugins/check_swap.c
+++ b/plugins/check_swap.c
@@ -239,7 +239,7 @@ main (int argc, char **argv)
239 /* and now, tally 'em up */ 239 /* and now, tally 'em up */
240 swapctl_res=swapctl(SC_LIST, tbl); 240 swapctl_res=swapctl(SC_LIST, tbl);
241 if(swapctl_res < 0){ 241 if(swapctl_res < 0){
242 perror("swapctl failed: "); 242 perror(_("swapctl failed: "));
243 result = STATE_WARNING; 243 result = STATE_WARNING;
244 } 244 }
245 245
@@ -278,7 +278,7 @@ main (int argc, char **argv)
278 /* and now, tally 'em up */ 278 /* and now, tally 'em up */
279 swapctl_res=swapctl(SWAP_STATS, ent, nswaps); 279 swapctl_res=swapctl(SWAP_STATS, ent, nswaps);
280 if(swapctl_res < 0){ 280 if(swapctl_res < 0){
281 perror("swapctl failed: "); 281 perror(_("swapctl failed: "));
282 result = STATE_WARNING; 282 result = STATE_WARNING;
283 } 283 }
284 284
@@ -388,7 +388,7 @@ process_arguments (int argc, char **argv)
388 break; 388 break;
389 } 389 }
390 else { 390 else {
391 usage (_("Warning threshold must be integer or percentage!\n")); 391 usage4 (_("Warning threshold must be integer or percentage!"));
392 } 392 }
393 case 'c': /* critical size threshold */ 393 case 'c': /* critical size threshold */
394 if (is_intnonneg (optarg)) { 394 if (is_intnonneg (optarg)) {
@@ -420,9 +420,7 @@ process_arguments (int argc, char **argv)
420 print_help (); 420 print_help ();
421 exit (STATE_OK); 421 exit (STATE_OK);
422 case '?': /* error */ 422 case '?': /* error */
423 printf (_("%s: Unknown argument: %s\n\n"), progname, optarg); 423 usage2 (_("Unknown argument"), optarg);
424 print_usage ();
425 exit (STATE_UNKNOWN);
426 } 424 }
427 } 425 }
428 426