diff options
Diffstat (limited to 'plugins/check_nagios.c')
-rw-r--r-- | plugins/check_nagios.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/plugins/check_nagios.c b/plugins/check_nagios.c index 45514f1..c7be780 100644 --- a/plugins/check_nagios.c +++ b/plugins/check_nagios.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | const char *progname = "check_nagios"; | 21 | const char *progname = "check_nagios"; |
22 | const char *revision = "$Revision$"; | 22 | const char *revision = "$Revision$"; |
23 | const char *copyright = "1999-2004"; | 23 | const char *copyright = "1999-2006"; |
24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 24 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
25 | 25 | ||
26 | #include "common.h" | 26 | #include "common.h" |
@@ -262,27 +262,28 @@ print_help (void) | |||
262 | 262 | ||
263 | printf (_(COPYRIGHT), copyright, email); | 263 | printf (_(COPYRIGHT), copyright, email); |
264 | 264 | ||
265 | printf (_("\ | 265 | printf ("%s\n", _("This plugin checks the status of the Nagios process on the local machine")); |
266 | This plugin checks the status of the Nagios process on the local\n\ | 266 | printf ("%s\n", _("The plugin will check to make sure the Nagios status log is no older than")); |
267 | machine. The plugin will check to make sure the Nagios status log is no older\n\ | 267 | printf ("%s\n", _("the number of minutes specified by the expires option.")); |
268 | than the number of minutes specified by the expires option. It also\n\ | 268 | printf ("%s\n", _("It also checks the process table for a process matching the command argument.")); |
269 | checks the process table for a process matching the command argument.\n\n")); | ||
270 | 269 | ||
270 | printf ("\n\n"); | ||
271 | |||
271 | print_usage (); | 272 | print_usage (); |
272 | 273 | ||
273 | printf (_(UT_HELP_VRSN)); | 274 | printf (_(UT_HELP_VRSN)); |
274 | 275 | ||
275 | printf (_("\ | 276 | printf (" %s\n", "-F, --filename=FILE"); |
276 | -F, --filename=FILE\n\ | 277 | printf (" %s\n", _("Name of the log file to check")); |
277 | Name of the log file to check\n\ | 278 | printf (" %s\n", "-e, --expires=INTEGER"); |
278 | -e, --expires=INTEGER\n\ | 279 | printf (" %s\n", _("Minutes aging after which logfile is considered stale")); |
279 | Minutes aging after which logfile is considered stale\n\ | 280 | printf (" %s\n", "-C, --command=STRING"); |
280 | -C, --command=STRING\n\ | 281 | printf (" %s\n", _("Substring to search for in process arguments")); |
281 | Substring to search for in process arguments\n")); | 282 | printf (_(UT_VERBOSE)); |
282 | 283 | printf ("\n"); | |
283 | printf (_("\ | 284 | printf ("%s\n", _("Examples:")); |
284 | Example:\n\ | 285 | printf (" %s\n", "check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios"); |
285 | ./check_nagios -e 5 -F /usr/local/nagios/var/status.log -C /usr/local/nagios/bin/nagios\n")); | 286 | printf (_(UT_SUPPORT)); |
286 | } | 287 | } |
287 | 288 | ||
288 | 289 | ||
@@ -290,6 +291,6 @@ Example:\n\ | |||
290 | void | 291 | void |
291 | print_usage (void) | 292 | print_usage (void) |
292 | { | 293 | { |
293 | printf ("\ | 294 | printf (_("Usage:")); |
294 | Usage: %s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname); | 295 | printf ("%s -F <status log file> -e <expire_minutes> -C <process_string>\n", progname); |
295 | } | 296 | } |