cmd

package
v0.0.0-...-9a8549d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AgeCrit string

Global variable for cobra, Maximum data age for a critical alert

View Source
var AgeWarn string

Global variable for cobra, Maximum data age for a warning

View Source
var ConfigFile string

Global variable for cobra, storing the viper configuration file name

View Source
var Crit string

Global variable for cobra, Critical range

View Source
var Host string

Global variable for cobra, hostname or IP (check subcommand)

View Source
var IgnoreDisabled bool

Global variable for cobra, Ignore disabled pool members

View Source
var Index string

Global variable for cobra, name of the index containinf the data

View Source
var LogFile string

Global variable for cobra, name of the log file, "-" logs to stdout

View Source
var LogLevel string

Global variable for cobra, one of the zerolog log levels (TRACE, DEBUG, INFO, WARN, ERROR, FATAL,PANIC). Trace produces an extreme amount of log data, use with care on a small dataset

View Source
var Password string

Global variable for cobra, Password for connecting to Elasticsearch (check subcommand)

View Source
var Pool string

Global variable for cobra, name of the pool to check

View Source
var Port int

Global variable for cobra, port of Elasticsearch (check subcommand)

View Source
var Proxy string

Global variable for cobra, URL of a proxy (check subcommand)

View Source
var ProxyIsSocks bool

Global variable for cobra, is the proxy a Socks proxy (check subcommand)

View Source
var Timeout string

Global variable for cobra, timeout for the checks

View Source
var UseSSL bool

Global variable for cobra, used in the check subcommand

View Source
var User string

Global variable for cobra, User for connecting to Elasticsearch (check subcommand)

View Source
var ValidateSSL bool

Global variable for cobra, validate the SSL certificate (check subcommand)

View Source
var Warn string

Global variable for cobra, Warning range

Functions

func Execute

func Execute()

Run the checkcommand

func HandleConfigFile

func HandleConfigFile() error

Load the configuration file if the parameter is set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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