uptime-checker

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

README

Uptime-checker

Docker PullsGo Report Card

Description

Small tool, that creates a file if uptime exceed a limit.

Usage

~$ uptime-checker -h
NAME:
   uptime-checker - Check uptime, if its above the limit, creates a file.

USAGE:
   CLI tool to check if uptime is above a specific threshold and touch a file if uptime is above the threshold. [global options] command [command options] [arguments...]

VERSION:
   alpha

COMMANDS:
     check    Check if uptime is above a limit.
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   -l value, --log-level value     Setting log level. (default: "INFO") [$UC_LOGLEVEL]
   --lf value, --log-format value  Setting log format. Value [text|json]. (default: "json") [$UC_LOGLEVEL]
   --help, -h                      show help
   --version, -v                   print the version
Check command
~$ uptime-checker check -h
NAME:
   CLI tool to check if uptime is above a specific threshold and touch a file if uptime is above the threshold. check - Check if uptime is above a limit.

USAGE:
   CLI tool to check if uptime is above a specific threshold and touch a file if uptime is above the threshold. check [command options] [arguments...]

OPTIONS:
   --uptime-limit value       Limit above a file will be created. In time.Duration format. (default: "24h") [$UC_UPTIME_LIMIT]
   --file value               Path of the file to create. (default: "/var/run/reboot-required") [$UC_FILE_PATH]
   --interval value           Interval between 2 checks. In time.Duration format. (default: "5m") [$UC_INTERVAL]
   --window-start-time value  Window start hour and minute. (default: "00:00") [$UC_WINDOW_START]
   --window-end-time value    Window end hour and minute. (default: "23:59") [$UC_WINDOW_END]

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL