sensu-plugins-filesize
Sensu plugin to search files based on size.
Files
- bin/check-filesize.rb
Usage
-- check for files greater than 100M in home folder including subfolders
check-filesize.rb -f ~ -s +100M
-- check for files smaller than 100M in home folder including subfolders
check-filesize.rb -f ~ -s -100M
-- check for files exactly of size 50 kb in /apps folder including subfolders
check-filesize.rb -f /apps -s 50k
About the -s or --size option
The size option is transparently passed to the find command. More details can be found in the man pages of the find command (> man find).
Installation
Supported Ruby Versions
Currently supported and tested ruby versions are:
- 3.4 (EOL March 31 2028)
- 3.3 (EOL March 31 2027)
- 3.2 (EOL March 31 2026)
Not tested anymore
- 3.1 (EOL March 31 2025)
- 3.0 (EOL March 31 2024)
- 2.7 (EOL March 31 2023)
- 2.6 (EOL March 31 2022)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/thomis/sensu-plugins-filesize. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
- Fork it ( https://github.com/thomis/sensu-plugins-filesize/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
License
The gem is available as open source under the terms of the MIT License.