# README
tos
Mackerel-Agentのaction指定時に、条件分岐の記述を簡潔に記述出来ます。
Usage
$ tos -h
Usage of tos:
-c string
CRITICAL(Short)
-critical string
CRITICAL
-no string
NotOK(Short)
-not_ok string
Not OK
-o string
OK(Short)
-ok string
OK
-u string
Unknown(Short)
-unknown string
Unknown
-version
Print version information and quit.
-w string
WARNING(Short)
-warning string
WARNING
[plugin.checks.log]
command = "check-log -f /path/to/file -p PATTERN"
# action = { command = "bash -c '[ \"$MACKEREL_STATUS\" != \"OK\" ]' && ruby /path/to/something.rb", user = "someone" }
action = { command = "/bin/tos -no 'ruby /path/to/something.rb'", user = "someone" }
Install
To install, use go get
:
$ go get -d github.com/pyama86/tos
Contribution
- Fork (https://github.com/pyama86/tos/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request
Author
# Constants
Exit codes are int values that represent an exit code for a particular error.
Exit codes are int values that represent an exit code for a particular error.
No description provided by the author
No description provided by the author