diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_disk.c | 174 |
1 files changed, 35 insertions, 139 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index 3a5f4761..0ee6dc87 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -697,148 +697,44 @@ print_help (void) | |||
697 | 697 | ||
698 | printf (_(UT_HELP_VRSN)); | 698 | printf (_(UT_HELP_VRSN)); |
699 | 699 | ||
700 | printf (" -w, --warning=INTEGER"); | 700 | printf (" %s\n", "-w, --warning=INTEGER"); |
701 | 701 | printf (" %s\n", _("Exit with WARNING status if less than INTEGER units of disk are free")); | |
702 | printf ("\n"); | 702 | printf (" %s\n", "-w, --warning=PERCENT%"); |
703 | 703 | printf (" %s\n", _("Exit with WARNING status if less than PERCENT of disk space is free")); | |
704 | printf (_("exit with WARNING status if less than INTEGER units of disk are free")); | 704 | printf (" %s\n", "-W, --iwarning=PERCENT%"); |
705 | 705 | printf (" %s\n", _("Exit with WARNING status if less than PERCENT of inode space is free")); | |
706 | printf (" -w, --warning=PERCENT%%"); | 706 | printf (" %s\n", "-K, --icritical=PERCENT%"); |
707 | 707 | printf (" %s\n", _("Exit with CRITICAL status if less than PERCENT of inode space is free")); | |
708 | printf ("\n"); | 708 | printf (" %s\n", "-c, --critical=INTEGER"); |
709 | 709 | printf (" %s\n", _("Exit with CRITICAL status if less than INTEGER units of disk are free")); | |
710 | printf (_("exit with WARNING status if less than PERCENT of disk space is free")); | 710 | printf (" %s\n", "-c, --critical=PERCENT%"); |
711 | 711 | printf (" %s\n", _("Exit with CRITCAL status if less than PERCENT of disk space is free")); | |
712 | printf ("\n"); | 712 | printf (" %s\n", "-C, --clear"); |
713 | 713 | printf (" %s\n", _("Clear thresholds")); | |
714 | printf (" -W, --iwarning=PERCENT%%"); | 714 | printf (" %s\n", "-u, --units=STRING"); |
715 | 715 | printf (" %s\n", _("Choose bytes, kB, MB, GB, TB (default: MB)")); | |
716 | printf ("\n"); | 716 | printf (" %s\n", "-k, --kilobytes"); |
717 | 717 | printf (" %s\n", _("Same as '--units kB'")); | |
718 | printf (_("exit with WARNING status if less than PERCENT of inode space is free")); | 718 | printf (" %s\n", "-m, --megabytes"); |
719 | 719 | printf (" %s\n", _("Same as '--units MB'")); | |
720 | printf ("\n"); | 720 | printf (" %s\n", "-l, --local"); |
721 | 721 | printf (" %s\n", _("Only check local filesystems")); | |
722 | printf (" -K, --icritical=PERCENT%%"); | 722 | printf (" %s\n", "-p, --path=PATH, --partition=PARTITION"); |
723 | 723 | printf (" %s\n", _("Path or partition (may be repeated)")); | |
724 | printf ("\n"); | 724 | printf (" %s\n", "-x, --exclude_device=PATH <STRING>"); |
725 | 725 | printf (" %s\n", _("Ignore device (only works if -p unspecified)")); | |
726 | printf (_("exit with CRITICAL status if less than PERCENT of inode space is free")); | 726 | printf (" %s\n", _("-X, --exclude-type=TYPE <STRING>")); |
727 | 727 | printf (" %s\n", _("Ignore all filesystems of indicated type (may be repeated)")); | |
728 | printf ("\n"); | 728 | printf (" %s\n", "-m, --mountpoint"); |
729 | 729 | printf (" %s\n", _("Display the mountpoint instead of the partition")); | |
730 | printf (" -c, --critical=INTEGER"); | 730 | printf (" %s\n", "-e, --errors-only"); |
731 | 731 | printf (" %s\n", _("Display only devices/mountpoints with errors")); | |
732 | printf ("\n"); | ||
733 | |||
734 | printf (_("exit with CRITICAL status if less than INTEGER --units of disk are free")); | ||
735 | |||
736 | printf ("\n"); | ||
737 | |||
738 | printf (" -c, --critical=PERCENT%%"); | ||
739 | |||
740 | printf ("\n"); | ||
741 | |||
742 | printf (_("exit with CRITCAL status if less than PERCENT of disk space is free")); | ||
743 | |||
744 | printf ("\n"); | ||
745 | |||
746 | printf (" -C, --clear"); | ||
747 | |||
748 | printf ("\n"); | ||
749 | |||
750 | printf (_("clear thresholds")); | ||
751 | |||
752 | printf ("\n"); | ||
753 | |||
754 | printf (" -u, --units=STRING"); | ||
755 | |||
756 | printf ("\n"); | ||
757 | |||
758 | printf (_("choose bytes, kB, MB, GB, TB (default: MB)")); | ||
759 | |||
760 | printf ("\n"); | ||
761 | |||
762 | printf (" -k, --kilobytes"); | ||
763 | |||
764 | printf ("\n"); | ||
765 | |||
766 | printf (_("same as '--units kB'")); | ||
767 | |||
768 | printf ("\n"); | ||
769 | |||
770 | printf (" -m, --megabytes"); | ||
771 | |||
772 | printf ("\n"); | ||
773 | |||
774 | printf (_("same as '--units MB'\n")); | ||
775 | |||
776 | printf (" -l, --local"); | ||
777 | |||
778 | printf ("\n"); | ||
779 | |||
780 | printf (_("only check local filesystems")); | ||
781 | |||
782 | printf ("\n"); | ||
783 | |||
784 | printf (" -p, --path=PATH, --partition=PARTITION"); | ||
785 | |||
786 | printf ("\n"); | ||
787 | |||
788 | printf (_("path or partition (may be repeated)")); | ||
789 | |||
790 | printf ("\n"); | ||
791 | |||
792 | printf (" -x, --exclude_device=PATH <STRING>"); | ||
793 | |||
794 | printf ("\n"); | ||
795 | |||
796 | printf (_("ignore device (only works if -p unspecified)")); | ||
797 | |||
798 | printf ("\n"); | ||
799 | |||
800 | printf (" -X, --exclude-type=TYPE <STRING>"); | ||
801 | |||
802 | printf ("\n"); | ||
803 | |||
804 | printf (_("ignore all filesystems of indicated type (may be repeated)")); | ||
805 | |||
806 | printf ("\n"); | ||
807 | |||
808 | printf ("-m, --mountpoint"); | ||
809 | |||
810 | printf ("\n"); | ||
811 | |||
812 | printf (_("display the mountpoint instead of the partition")); | ||
813 | |||
814 | printf ("\n"); | ||
815 | |||
816 | printf ("-e, --errors-only"); | ||
817 | |||
818 | printf ("\n"); | ||
819 | |||
820 | printf (_("display only devices/mountpoints with errors")); | ||
821 | |||
822 | printf ("\n"); | ||
823 | |||
824 | printf (_(UT_WARN_CRIT)); | ||
825 | |||
826 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); | 732 | printf (_(UT_TIMEOUT), DEFAULT_SOCKET_TIMEOUT); |
827 | |||
828 | printf (_(UT_VERBOSE)); | 733 | printf (_(UT_VERBOSE)); |
829 | |||
830 | printf (_("examples:")); | ||
831 | |||
832 | printf ("\n"); | ||
833 | |||
834 | printf ("check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); | ||
835 | |||
836 | printf ("\n"); | ||
837 | |||
838 | printf (_("checks /tmp and /var at 10% and 5% and / at 100MB, 50MB")); | ||
839 | |||
840 | printf ("\n"); | 734 | printf ("\n"); |
841 | 735 | printf ("%s\n", _("Examples:")); | |
736 | printf (" %s\n", "check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /"); | ||
737 | printf (" %s\n", _("Checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB")); | ||
842 | printf (_(UT_SUPPORT)); | 738 | printf (_(UT_SUPPORT)); |
843 | } | 739 | } |
844 | 740 | ||