https://github.com/amandasaurus/nagios-file-size-checker
Simple programme for nagios to check the size of a file
https://github.com/amandasaurus/nagios-file-size-checker
Last synced: 4 months ago
JSON representation
Simple programme for nagios to check the size of a file
- Host: GitHub
- URL: https://github.com/amandasaurus/nagios-file-size-checker
- Owner: amandasaurus
- License: agpl-3.0
- Created: 2017-07-05T08:53:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-05T08:56:16.000Z (almost 8 years ago)
- Last Synced: 2024-12-27T00:24:34.152Z (6 months ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Command to check that if a specified file exists that it is within a certain
size, exiting with the appropriate nagios status codesThe motivation was a data update process which would create intermediate files
during processing. If the file size gets too large, you have a problem. I
wanted to make a nagios check to detect this.Usage:
nagios-file-size-checker FILENAME MIN_SIZE_BYTES MAX_SIZE_BYTES
e.g.
nagios-file-size-checker /srv/update-data/stagedfile 0 10000
Copyright © 2017 Rory McCann , Licenced GNU Affero GPL v3 (or later)