sawtooth.cli.monitor_lib.monitor_modules module

class sawtooth.cli.monitor_lib.monitor_modules.ConnectionStatus(epm, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

Obtains and displays connection status of monitor to validator network

get_connection_status()[source]
initialize(module_list)[source]
report()[source]
class sawtooth.cli.monitor_lib.monitor_modules.EventScriptManager(epm, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

Executes scripts based on events added to the event queue by monitor modules. Always loaded by monitor.

examine_queue()[source]
initialize(module_list)[source]
pass_mon(mon)[source]
report()[source]
run_script(sev)[source]
class sawtooth.cli.monitor_lib.monitor_modules.LogManager(epm, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

Handles logging for monitor. Loads config file, sets up logger config

initialize(module_list)[source]
log_configuration(cfg)[source]
report()[source]
class sawtooth.cli.monitor_lib.monitor_modules.PlatformCpu(epm, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

Monitors the platform running the monitor command. Triggers if CPU usage is above 2 percent. Useful for testing.

cpu_usage_trigger()[source]
initialize(module_list)[source]
report()[source]
class sawtooth.cli.monitor_lib.monitor_modules.SigUsr1(epm, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

Receives SIGUSR1 signal and adds event with severity SIGUSR1 to the event queue.

initialize(module_list)[source]
report()[source]
sigusr1_trigger(signum, stack)[source]
class sawtooth.cli.monitor_lib.monitor_modules.ValidatorFailure(epm, config)[source]

Bases: sawtooth.cli.stats_lib.stats_utils.StatsModule

Monitors the validator network for a node failure. FAIL event added to event queue if a node does not respond.

initialize(module_list)[source]
no_response_trigger()[source]
report()[source]