Linux inodes over SSH (ssh_inodes)
Runs df -i for one mount point and reports how many inodes it has used. A full inode table stops file creation even when there is free space, and it fills up quietly on hosts that keep millions of small files.
Channels
| Key | Name | Unit | Default limits |
|---|---|---|---|
used_pct | Inodes used | % | warning above 85, error above 95. Unknown for a filesystem with no fixed inode count. |
free_inodes | Free inodes | none | none |
total_inodes | Total inodes | none | none |
btrfs and some other filesystems create inodes on demand and report none; df prints - for them. The sensor then reports an unknown percentage and says so in the message, instead of a misleading zero.
Parameters
| Parameter | Default | Meaning |
|---|---|---|
mount | / | The mount point, an absolute path exactly as df prints it. |
port | 22 | TCP port of the SSH server. |
Suggested interval: 300 seconds. Credential: SSH. Discovery adds one sensor for each real disk, like ssh_disk.
On the target
The command run is env LC_ALL=C df -Pi '<mount>', with the mount point inside single quotes and any single quote in it escaped. Control characters and relative paths are refused before anything is sent. See Linux over SSH.
Failures
As for ssh_disk: the mount point must be listed by df, otherwise the poll fails and the message lists the mount points that are.