Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsubaki/check-file-agedir
Mackerel plugin to check file age
https://github.com/itsubaki/check-file-agedir
mackerel-plugin
Last synced: 26 days ago
JSON representation
Mackerel plugin to check file age
- Host: GitHub
- URL: https://github.com/itsubaki/check-file-agedir
- Owner: itsubaki
- Created: 2018-03-15T02:50:43.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-06T09:02:09.000Z (about 1 year ago)
- Last Synced: 2024-01-06T10:22:36.192Z (about 1 year ago)
- Topics: mackerel-plugin
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# check-file-agedir
## Help
```
$ check-file-agedir -h
Usage:
check-file-agedir [OPTIONS]Application Options:
-b, --base= the base directory(required)
-w, --warning-age= warning if more old than(sec) (default: 21600)
-c, --critical-age= critical if more old than(sec) (default: 43200)
-d, --debug debug printHelp Options:
-h, --help Show this help message
```## Install
```
sudo mkr plugin install itsubaki/[email protected]
``````
# /etc/mackerel-agent/mackerel-agent.conf
[plugin.checks.fage_td-agent_buffer]
command = "/opt/mackerel-agent/plugins/bin/check-file-agedir -b /var/log/td-agent/buffer/"
```