diff options
Diffstat (limited to 'plugins/check_apt.c')
-rw-r--r-- | plugins/check_apt.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/plugins/check_apt.c b/plugins/check_apt.c index 02653933..bd59c706 100644 --- a/plugins/check_apt.c +++ b/plugins/check_apt.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Nagios check_apt plugin | 3 | * Nagios check_apt plugin |
4 | * | 4 | * |
5 | * License: GPL | 5 | * License: GPL |
6 | * Copyright (c) 2006-2007 Nagios Plugins Development Team | 6 | * Copyright (c) 2006-2008 Nagios Plugins Development Team |
7 | * | 7 | * |
8 | * Original author: Sean Finney | 8 | * Original author: Sean Finney |
9 | * | 9 | * |
@@ -35,7 +35,7 @@ | |||
35 | 35 | ||
36 | const char *progname = "check_apt"; | 36 | const char *progname = "check_apt"; |
37 | const char *revision = "$Revision$"; | 37 | const char *revision = "$Revision$"; |
38 | const char *copyright = "2006-2007"; | 38 | const char *copyright = "2006-2008"; |
39 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; | 39 | const char *email = "nagiosplug-devel@lists.sourceforge.net"; |
40 | 40 | ||
41 | #include "common.h" | 41 | #include "common.h" |
@@ -402,9 +402,9 @@ void | |||
402 | print_help (void) | 402 | print_help (void) |
403 | { | 403 | { |
404 | print_revision(progname, revision); | 404 | print_revision(progname, revision); |
405 | 405 | ||
406 | printf(_(COPYRIGHT), copyright, email); | 406 | printf(_(COPYRIGHT), copyright, email); |
407 | 407 | ||
408 | printf("%s\n", _("This plugin checks for software updates on systems that use")); | 408 | printf("%s\n", _("This plugin checks for software updates on systems that use")); |
409 | printf("%s\n", _("package management systems based on the apt-get(8) command")); | 409 | printf("%s\n", _("package management systems based on the apt-get(8) command")); |
410 | printf("%s\n", _("found in Debian GNU/Linux")); | 410 | printf("%s\n", _("found in Debian GNU/Linux")); |
@@ -412,11 +412,11 @@ print_help (void) | |||
412 | printf ("\n\n"); | 412 | printf ("\n\n"); |
413 | 413 | ||
414 | print_usage(); | 414 | print_usage(); |
415 | 415 | ||
416 | printf(_(UT_HELP_VRSN)); | 416 | printf(_(UT_HELP_VRSN)); |
417 | 417 | ||
418 | printf(_(UT_TIMEOUT), timeout_interval); | 418 | printf(_(UT_TIMEOUT), timeout_interval); |
419 | 419 | ||
420 | printf (" %s\n", "-U, --upgrade=OPTS"); | 420 | printf (" %s\n", "-U, --upgrade=OPTS"); |
421 | printf (" %s\n", _("[Default] Perform an upgrade. If an optional OPTS argument is provided,")); | 421 | printf (" %s\n", _("[Default] Perform an upgrade. If an optional OPTS argument is provided,")); |
422 | printf (" %s\n", _("apt-get will be run with these command line options instead of the")); | 422 | printf (" %s\n", _("apt-get will be run with these command line options instead of the")); |
@@ -445,17 +445,19 @@ print_help (void) | |||
445 | printf (" %s\n", _("upgrades for Debian and Ubuntu:")); | 445 | printf (" %s\n", _("upgrades for Debian and Ubuntu:")); |
446 | printf (" \t\%s\n", SECURITY_RE); | 446 | printf (" \t\%s\n", SECURITY_RE); |
447 | printf (" %s\n", _("Note that the package must first match the include list before its")); | 447 | printf (" %s\n", _("Note that the package must first match the include list before its")); |
448 | printf (" %s\n\n\n", _("information is compared against the critical list.")); | 448 | printf (" %s\n\n", _("information is compared against the critical list.")); |
449 | 449 | ||
450 | printf ("%s\n\n", _("The following options require root privileges and should be used with care:")); | 450 | printf ("%s\n\n", _("The following options require root privileges and should be used with care:")); |
451 | printf (" %s\n", "-u, --update=OPTS"); | 451 | printf (" %s\n", "-u, --update=OPTS"); |
452 | printf (" %s\n", _("First perform an 'apt-get update'. An optional OPTS parameter overrides")); | 452 | printf (" %s\n", _("First perform an 'apt-get update'. An optional OPTS parameter overrides")); |
453 | printf (" %s\n", _("the default options. Note: you may also need to adjust the global")); | 453 | printf (" %s\n", _("the default options. Note: you may also need to adjust the global")); |
454 | printf (" %s\n", _("timeout (with -t) to prevent the plugin from timing out if apt-get")); | 454 | printf (" %s\n", _("timeout (with -t) to prevent the plugin from timing out if apt-get")); |
455 | printf (" %s\n", _("upgrade is expected to take longer than the default timeout.")); | 455 | printf (" %s\n", _("upgrade is expected to take longer than the default timeout.")); |
456 | |||
457 | printf(_(UT_SUPPORT)); | ||
456 | } | 458 | } |
457 | 459 | ||
458 | 460 | ||
459 | /* simple usage heading */ | 461 | /* simple usage heading */ |
460 | void | 462 | void |
461 | print_usage(void) | 463 | print_usage(void) |