summaryrefslogtreecommitdiffstats
path: root/plugins/check_nwstat.c
diff options
context:
space:
mode:
authorBenoit Mortier <opensides@users.sourceforge.net>2004-12-02 01:11:01 +0000
committerBenoit Mortier <opensides@users.sourceforge.net>2004-12-02 01:11:01 +0000
commit230d67e18ad368773f2302485d0b55f50f654e3f (patch)
tree555c1d1dd92d7897e037303bf03f86b2de0f78b9 /plugins/check_nwstat.c
parent2d1ba3e36b950f05832ea2bd595616fa6cd28c28 (diff)
downloadmonitoring-plugins-230d67e18ad368773f2302485d0b55f50f654e3f.tar.gz
changed Error: by CRITICAL -
more localization fixes git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@971 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_nwstat.c')
-rw-r--r--plugins/check_nwstat.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/check_nwstat.c b/plugins/check_nwstat.c
index ec5d5d6c..6a21f901 100644
--- a/plugins/check_nwstat.c
+++ b/plugins/check_nwstat.c
@@ -121,8 +121,8 @@ main(int argc, char **argv) {
121 bindtextdomain (PACKAGE, LOCALEDIR); 121 bindtextdomain (PACKAGE, LOCALEDIR);
122 textdomain (PACKAGE); 122 textdomain (PACKAGE);
123 123
124 if (process_arguments(argc,argv)==ERROR) 124 if (process_arguments(argc,argv) != OK)
125 usage(_("check_nwstat: could not parse arguments\n")); 125 usage (_("check_nwstat: could not parse arguments\n"));
126 126
127 /* initialize alarm signal handling */ 127 /* initialize alarm signal handling */
128 signal(SIGALRM,socket_timeout_alarm_handler); 128 signal(SIGALRM,socket_timeout_alarm_handler);
@@ -293,7 +293,7 @@ main(int argc, char **argv) {
293 return result; 293 return result;
294 294
295 if (!strcmp(recv_buffer,"-1\n")) { 295 if (!strcmp(recv_buffer,"-1\n")) {
296 asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); 296 asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name);
297 result=STATE_CRITICAL; 297 result=STATE_CRITICAL;
298 } else { 298 } else {
299 free_disk_space=strtoul(recv_buffer,NULL,10); 299 free_disk_space=strtoul(recv_buffer,NULL,10);
@@ -318,7 +318,7 @@ main(int argc, char **argv) {
318 318
319 if (!strcmp(recv_buffer,"-1\n")) { 319 if (!strcmp(recv_buffer,"-1\n")) {
320 320
321 asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); 321 asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name);
322 result=STATE_CRITICAL; 322 result=STATE_CRITICAL;
323 323
324 } else { 324 } else {
@@ -438,7 +438,7 @@ main(int argc, char **argv) {
438 return result; 438 return result;
439 439
440 if (!strcmp(recv_buffer,"-1\n")) { 440 if (!strcmp(recv_buffer,"-1\n")) {
441 asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); 441 asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name);
442 result=STATE_CRITICAL; 442 result=STATE_CRITICAL;
443 } else { 443 } else {
444 purgeable_disk_space=strtoul(recv_buffer,NULL,10); 444 purgeable_disk_space=strtoul(recv_buffer,NULL,10);
@@ -459,7 +459,7 @@ main(int argc, char **argv) {
459 459
460 if (!strcmp(recv_buffer,"-1\n")) { 460 if (!strcmp(recv_buffer,"-1\n")) {
461 461
462 asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); 462 asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name);
463 result=STATE_CRITICAL; 463 result=STATE_CRITICAL;
464 464
465 } else { 465 } else {
@@ -491,7 +491,7 @@ main(int argc, char **argv) {
491 return result; 491 return result;
492 492
493 if (!strcmp(recv_buffer,"-1\n")) { 493 if (!strcmp(recv_buffer,"-1\n")) {
494 asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); 494 asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name);
495 result=STATE_CRITICAL; 495 result=STATE_CRITICAL;
496 } else { 496 } else {
497 non_purgeable_disk_space=strtoul(recv_buffer,NULL,10); 497 non_purgeable_disk_space=strtoul(recv_buffer,NULL,10);
@@ -512,7 +512,7 @@ main(int argc, char **argv) {
512 512
513 if (!strcmp(recv_buffer,"-1\n")) { 513 if (!strcmp(recv_buffer,"-1\n")) {
514 514
515 asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); 515 asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name);
516 result=STATE_CRITICAL; 516 result=STATE_CRITICAL;
517 517
518 } else { 518 } else {