diff options
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r-- | plugins/check_nagios.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index d9d18d9..4439251 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
@@ -14,6 +14,8 @@ | |||
14 | along with this program; if not, write to the Free Software | 14 | along with this program; if not, write to the Free Software |
15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 15 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
16 | 16 | ||
17 | $Id$ | ||
18 | |||
17 | ******************************************************************************/ | 19 | ******************************************************************************/ |
18 | 20 | ||
19 | const char *progname = "check_nagios"; | 21 | const char *progname = "check_nagios"; |
@@ -64,7 +66,7 @@ main (int argc, char **argv) | |||
64 | textdomain (PACKAGE); | 66 | textdomain (PACKAGE); |
65 | 67 | ||
66 | if (process_arguments (argc, argv) == ERROR) | 68 | if (process_arguments (argc, argv) == ERROR) |
67 | usage (_("Could not parse arguments\n")); | 69 | usage (_("check_nagios: could not parse arguments\n")); |
68 | 70 | ||
69 | /* Set signal handling and alarm */ | 71 | /* Set signal handling and alarm */ |
70 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { | 72 | if (signal (SIGALRM, timeout_alarm_handler) == SIG_ERR) { |
@@ -78,7 +80,7 @@ main (int argc, char **argv) | |||
78 | /* open the status log */ | 80 | /* open the status log */ |
79 | fp = fopen (status_log, "r"); | 81 | fp = fopen (status_log, "r"); |
80 | if (fp == NULL) { | 82 | if (fp == NULL) { |
81 | printf (_("Error: Cannot open status log for reading!\n")); | 83 | printf (_("ERROR - Cannot open status log for reading!\n")); |
82 | return STATE_CRITICAL; | 84 | return STATE_CRITICAL; |
83 | } | 85 | } |
84 | 86 | ||
@@ -178,8 +180,6 @@ main (int argc, char **argv) | |||
178 | 180 | ||
179 | 181 | ||
180 | 182 | ||
181 | |||
182 | |||
183 | /* process command-line arguments */ | 183 | /* process command-line arguments */ |
184 | int | 184 | int |
185 | process_arguments (int argc, char **argv) | 185 | process_arguments (int argc, char **argv) |
@@ -264,9 +264,6 @@ process_arguments (int argc, char **argv) | |||
264 | 264 | ||
265 | 265 | ||
266 | 266 | ||
267 | |||
268 | |||
269 | |||
270 | void | 267 | void |
271 | print_help (void) | 268 | print_help (void) |
272 | { | 269 | { |
@@ -302,7 +299,6 @@ Example:\n\ | |||
302 | 299 | ||
303 | 300 | ||
304 | 301 | ||
305 | |||
306 | void | 302 | void |
307 | print_usage (void) | 303 | print_usage (void) |
308 | { | 304 | { |