https://github.com/nissy/check-md5
Check the MD5 checksum
https://github.com/nissy/check-md5
mackerel md5 nagios plugin
Last synced: 9 months ago
JSON representation
Check the MD5 checksum
- Host: GitHub
- URL: https://github.com/nissy/check-md5
- Owner: nissy
- Created: 2017-05-25T04:24:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T06:43:19.000Z (almost 9 years ago)
- Last Synced: 2025-06-04T03:56:57.497Z (about 1 year ago)
- Topics: mackerel, md5, nagios, plugin
- Language: Go
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# check-md5
Check the MD5 checksum
### Example of mackerel-agent.conf
```
[plugin.checks.md5]
command = "check-md5 -c check-md5.conf"
```
### Example of check-md5.conf
```
[[Files]]
PATH = "/usr/bin/python"
HASH = "faf96ffcd1955149edc54cd5e4195a0d"
[[Files]]
PATH = "/etc/redhat-release"
HASH = "af2cb935515b9d48999ecb2b1f4122e6"
```
### Save hash config
```
$ cat check-md5.conf
[[Files]]
PATH = "/usr/bin/python"
$ check-md5 -s -c check-md5.conf
$ cat check-md5.conf
[[Files]]
PATH = "/usr/bin/python"
HASH = "faf96ffcd1955149edc54cd5e4195a0d"
```
### Help
```
Usage: check-md5 [options]
-c string
set cfgiguration file (default "check-md5.conf")
-h this help
-s save cfgiguration file md5 hash
-v show this build version
```