diff options
author | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-02 01:11:01 +0000 |
---|---|---|
committer | Benoit Mortier <opensides@users.sourceforge.net> | 2004-12-02 01:11:01 +0000 |
commit | 230d67e18ad368773f2302485d0b55f50f654e3f (patch) | |
tree | 555c1d1dd92d7897e037303bf03f86b2de0f78b9 /plugins/check_nwstat.c | |
parent | 2d1ba3e36b950f05832ea2bd595616fa6cd28c28 (diff) | |
download | monitoring-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.c | 16 |
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) { bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); - if (process_arguments(argc,argv)==ERROR) - usage(_("check_nwstat: could not parse arguments\n")); + if (process_arguments(argc,argv) != OK) + usage (_("check_nwstat: could not parse arguments\n")); /* initialize alarm signal handling */ signal(SIGALRM,socket_timeout_alarm_handler); @@ -293,7 +293,7 @@ main(int argc, char **argv) { return result; if (!strcmp(recv_buffer,"-1\n")) { - asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); result=STATE_CRITICAL; } else { free_disk_space=strtoul(recv_buffer,NULL,10); @@ -318,7 +318,7 @@ main(int argc, char **argv) { if (!strcmp(recv_buffer,"-1\n")) { - asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); result=STATE_CRITICAL; } else { @@ -438,7 +438,7 @@ main(int argc, char **argv) { return result; if (!strcmp(recv_buffer,"-1\n")) { - asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); result=STATE_CRITICAL; } else { purgeable_disk_space=strtoul(recv_buffer,NULL,10); @@ -459,7 +459,7 @@ main(int argc, char **argv) { if (!strcmp(recv_buffer,"-1\n")) { - asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); result=STATE_CRITICAL; } else { @@ -491,7 +491,7 @@ main(int argc, char **argv) { return result; if (!strcmp(recv_buffer,"-1\n")) { - asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); result=STATE_CRITICAL; } else { non_purgeable_disk_space=strtoul(recv_buffer,NULL,10); @@ -512,7 +512,7 @@ main(int argc, char **argv) { if (!strcmp(recv_buffer,"-1\n")) { - asprintf (&output_message,_("Error: Volume '%s' does not exist!"),volume_name); + asprintf (&output_message,_("CRITICAL - Volume '%s' does not exist!"),volume_name); result=STATE_CRITICAL; } else { |