procnum

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	config.InternalConfig

	SearchExecName string `toml:"search_exec_name"`
	SearchCmdline  string `toml:"search_cmdline"`
	SearchUser     string `toml:"search_user"`

	SearchPidFile    string `toml:"search_pid_file"`
	SearchWinService string `toml:"search_win_service"`

	ProcessCount ProcessCountCheck `toml:"process_count"`
	// contains filtered or unexported fields
}

func (*Instance) Gather

func (ins *Instance) Gather(q *safe.Queue[*types.Event])

func (*Instance) Init

func (ins *Instance) Init() error

type ProcessCountCheck

type ProcessCountCheck struct {
	WarnLt     *int `toml:"warn_lt"`
	CriticalLt *int `toml:"critical_lt"`
	WarnGt     *int `toml:"warn_gt"`
	CriticalGt *int `toml:"critical_gt"`
}

type ProcnumPlugin

type ProcnumPlugin struct {
	config.InternalConfig
	Instances []*Instance `toml:"instances"`
}

func (*ProcnumPlugin) GetInstances

func (p *ProcnumPlugin) GetInstances() []plugins.Instance

func (*ProcnumPlugin) RegisterDiagnoseTools added in v0.10.0

func (p *ProcnumPlugin) RegisterDiagnoseTools(registry *diagnose.ToolRegistry)

Jump to

Keyboard shortcuts

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