summaryrefslogtreecommitdiffstats
path: root/plugins/check_nwstat.c
diff options
context:
space:
mode:
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 {