Check fs-inodes
Overview
Checks the percentage of inode space used. To do this, this plugin fetches a list of local devices that are in use and have a filesystem on them. Filesystems that do not report inode usage (e.g. btrfs) are skipped.
If you get an alert, use find $MOUNT -xdev -printf ‚%hn‘ | sort | uniq –count | sort –key=1 –numeric-sort –reverse | head -n 10 to find where inodes are being used. This finds the 10 directories under $MOUNT that have the most files inside them.
Fact Sheet
| Fact | Value | 
|---|---|
| Check Plugin Download | https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/fs-inodes | 
| Check Interval Recommendation | Once a minute | 
| Can be called without parameters | Yes | 
| Compiled for Windows | No | 
Help
usage: fs-inodes [-h] [-V] [--always-ok] [-c CRIT] [-w WARN]
Checks the percentage of inode space used. To do this, this plugin fetches a
list of local devices that are in use and have a filesystem on them.
Filesystems that do not report inode usage are skipped.
options:
  -h, --help           show this help message and exit
  -V, --version        show program's version number and exit
  --always-ok          Always returns OK.
  -c, --critical CRIT  Set the critical threshold inode usage percentage.
                       Default: 95
  -w, --warning WARN   Set the warning threshold inode usage percentage.
                       Default: 90
Usage Examples
./fs-inodes --warning 90 --critical 95
Output:
/ 1.7%, /tmp 3.2%, /boot 0.2%
States
- WARN or CRIT if inode usage is above a given threshold. 
Perfdata / Metrics
For each mount:
- inode usage (%) 
Credits, License
- Authors: Linuxfabrik GmbH, Zurich 
- License: The Unlicense, see LICENSE file.