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_nagios.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_nagios.c')
| -rw-r--r-- | plugins/check_nagios.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 4439251f..bb2ae6dd 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
| @@ -65,7 +65,7 @@ main (int argc, char **argv) | |||
| 65 | bindtextdomain (PACKAGE, LOCALEDIR); | 65 | bindtextdomain (PACKAGE, LOCALEDIR); |
| 66 | textdomain (PACKAGE); | 66 | textdomain (PACKAGE); |
| 67 | 67 | ||
| 68 | if (process_arguments (argc, argv) == ERROR) | 68 | if (process_arguments (argc, argv) != OK) |
| 69 | usage (_("check_nagios: could not parse arguments\n")); | 69 | usage (_("check_nagios: could not parse arguments\n")); |
| 70 | 70 | ||
| 71 | /* Set signal handling and alarm */ | 71 | /* Set signal handling and alarm */ |
| @@ -80,7 +80,7 @@ main (int argc, char **argv) | |||
| 80 | /* open the status log */ | 80 | /* open the status log */ |
| 81 | fp = fopen (status_log, "r"); | 81 | fp = fopen (status_log, "r"); |
| 82 | if (fp == NULL) { | 82 | if (fp == NULL) { |
| 83 | printf (_("ERROR - Cannot open status log for reading!\n")); | 83 | printf (_("CRITICAL - Cannot open status log for reading!\n")); |
| 84 | return STATE_CRITICAL; | 84 | return STATE_CRITICAL; |
| 85 | } | 85 | } |
| 86 | 86 | ||
| @@ -227,7 +227,7 @@ process_arguments (int argc, char **argv) | |||
| 227 | print_help (); | 227 | print_help (); |
| 228 | exit (STATE_OK); | 228 | exit (STATE_OK); |
| 229 | case 'V': /* version */ | 229 | case 'V': /* version */ |
| 230 | print_revision (progname, "$Revision$"); | 230 | print_revision (progname, revision); |
| 231 | exit (STATE_OK); | 231 | exit (STATE_OK); |
| 232 | case 'F': /* status log */ | 232 | case 'F': /* status log */ |
| 233 | status_log = optarg; | 233 | status_log = optarg; |
