https://github.com/itsubaki/check-file-num
Mackerel plugin to check number of files
https://github.com/itsubaki/check-file-num
mackerel-plugin
Last synced: about 1 year ago
JSON representation
Mackerel plugin to check number of files
- Host: GitHub
- URL: https://github.com/itsubaki/check-file-num
- Owner: itsubaki
- Created: 2018-04-27T04:53:07.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T09:02:35.000Z (over 2 years ago)
- Last Synced: 2025-02-07T06:15:02.859Z (over 1 year ago)
- Topics: mackerel-plugin
- Language: Go
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# check-fileagedir
## Help
```
$ check-file-num -h
Usage:
check-file-num [OPTIONS]
Application Options:
-b, --base= the base directory(required)
-w, --warning-num= warning if more number of files(count) (default: 10)
-c, --critical-num= critical if more number of files(count) (default: 100)
-d, --debug debug print
Help Options:
-h, --help Show this help message
```
## Install
```
sudo mkr plugin install itsubaki/check-file-num@v0.1
```
```
# /etc/mackerel-agent/mackerel-agent.conf
[plugin.checks.fnum_td-agent_buffer]
command = "/opt/mackerel-agent/plugins/bin/check-file-num -b /var/log/td-agent/buffer/ -w 10 -c 100"
```