https://github.com/netways/check_checksum
Icinga check plugin for testing files against a checksum
https://github.com/netways/check_checksum
icinga monitoring plugin
Last synced: 2 months ago
JSON representation
Icinga check plugin for testing files against a checksum
- Host: GitHub
- URL: https://github.com/netways/check_checksum
- Owner: NETWAYS
- License: gpl-2.0
- Created: 2017-10-05T09:53:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-04-09T11:02:52.000Z (about 1 year ago)
- Last Synced: 2025-03-27T22:12:19.719Z (3 months ago)
- Topics: icinga, monitoring, plugin
- Language: Shell
- Size: 28.3 KB
- Stars: 3
- Watchers: 11
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
- Authors: AUTHORS
Awesome Lists containing this project
README
# check_checksum
Testing files against a checksum reference with an Icinga Plugin
## Requirements
You only need `bash` and the common GNU tools for checksums like:
* `sha1sum`
* `sha256sum`
* `sha512sum`## Example
Create some files to checksum:
mkdir /var/cache/app/importantfiles
cp verifyimportant.data /var/cache/app/importantfiles/sha512sum /var/cache/app/importantfiles/* \
>/etc/icinga2/plugins/checksum-app.sha512sum./check_checksum -m sha512 -c /etc/icinga2/plugins/checksum-app.sha512sum
./check_checksum -m sha512 -c /etc/icinga2/plugins/checksum-app.sha512sum \
-f /var/cache/app/importantfiles/verifyimportant.data./check_checksum -m sha512 \
-C 3d16674888b7788569056486c0340f2855ed787b656216a542757e2a34255cfa7f6d790f76561599ad843803c61e0051120eb6454a0cfc712b2a2c356e245ac1 \
-f /var/cache/app/importantfiles/verifyimportant.data./check_checksum -m sha512 \
-C f7e0ec38f23911a02aaefd46df416289bfcb647b037334d722f0d9c611b232a2ede47fa75aa1a2a8f332aee95210bed8f738a1e9a949a9a9449faf17c800cd60 \
-f https://github.com/NETWAYS/check_checksum/raw/master/test/fixture.txtFor full help see:
./check_checksum -h
## License
Copyright (c) 2017 NETWAYS GmbH
2017 Markus FroschThis program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.