block-size=1K), which provides information about each filesystem on your system, presenting sizes in kilobytes ( kb). To display all mounted filesystem information and usage in 1024-byte blocks, use the option ‘ -k‘ (e.g. df -hT /homeĬheck /home Directory Disk Space 5. The -T option shows the filesystem type ( ext4) along with other information. The command "df -hT /home" is used to display disk space utilization of /home directory or partition in a human-readable format. Check Disk Space Usage of /home Directory Show Disk Usage in Human-Readable Format 4. The "-h" option stands for “ human-readable” and it shows information about all mounted filesystems on your system, presenting the sizes in a format that is easier for humans to understand, using units like kilobytes ( KB), megabytes ( MB), gigabytes ( GB), etc. The command "df -h" is used to display disk space usage in a human-readable format. as it makes it very easy to understand and remember. Have you noticed that the above commands display information in bytes, which is not readable at all because we are in a habit of reading the sizes in megabytes, gigabytes, etc. Show Disk Space Usage in Human Readable Format It also shows pseudo filesystems with 0 blocks (those not directly tied to a physical device) and are ignored by default. Use of this software.The command "df -a" is used to display information about all the mounted filesystems disk space usage, which includes total space, used space, available space, memory utilization, and the percentage of space used for each filesystem. Send email to if you have questions regarding The fs matching the -r regexĪre grouped which means the freespace thresholds are applied to all disks togetherĬheck_disk -w 100 -c 50 -C -w 1000 -c 500 -p /foo -C -w 5% -c 3% -p /barĬhecks /foo for 1000M/500M and /bar for 5/3%. Ignore all filesystems of indicated type (may be repeated)Ĭheck only filesystems of indicated type (may be repeated)Ĭheck_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /Ĭhecks /tmp and /var at 10% and 5%, and / at 100MB and 50MBĬheck_disk -w 100 -c 50 -C -w 1000 -c 500 -g sidDATA -r '^/oracle/SID/data.*$'Ĭhecks all filesystems not matching -r at 100M and 50M. Show details for command-line debugging (output may be truncated by Seconds before plugin times out (default: 10)Ĭhoose bytes, kB, MB, GB, TB (default: MB) Regular expression to ignore selected path or partition (may be repeated) i, -ignore-ereg-path=PATH, -ignore-ereg-partition=PARTITION Regular expression to ignore selected path/partition (case insensitive) (may be repeated) I, -ignore-eregi-path=PATH, -ignore-eregi-partition=PARTITION Regular expression for path or partition (may be repeated) r, -ereg-path=PATH, -ereg-partition=PARTITION R, -eregi-path=PATH, -eregi-partition=PARTITIONĬase insensitive regular expression for path/partition (may be repeated) to detect Stale NFS Handles)ĭisplay the (block) device instead of the mount pointĮxplicitly select all paths. Only check local filesystems against thresholds. Thresholds apply to (free-)space of all partitions together Ignore device (only works if -p unspecified)įor paths or partitions specified with -p, only check for exact pathsĭisplay only devices/mountpoints with errorsĭon't account root-reserved blocks into freespace in perfdata Mount point or block device as emitted by the mount(8) command (may be repeated) SeeĮxit with WARNING status if less than INTEGER units of disk are freeĮxit with WARNING status if less than PERCENT of disk space is freeĮxit with CRITICAL status if less than INTEGER units of disk are freeĮxit with CRITICAL status if less than PERCENT of disk space is freeĮxit with WARNING status if less than PERCENT of inode space is freeĮxit with CRITICAL status if less than PERCENT of inode space is free This plugin checks the amount of used disk space on a mounted file systemĪnd generates an alert if free space is less than one of the threshold valuesĬheck_disk The check_disk Plugin check_disk v2.3git (monitoring-plugins 2.3git)Ĭopyright (c) 1999-2008 Monitoring Plugins Development Team
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |