linuxmonitor

package
v1.0.66 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2017 License: GPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeMd5

func ComputeMd5(filePath string) ([]byte, error)

ComputeMd5 computes the Md5 of a file

func DefaultHostMetadataExtractor added in v1.0.65

func DefaultHostMetadataExtractor(event *rpcmonitor.EventInfo) (*policy.PURuntime, error)

DefaultHostMetadataExtractor is a host specific metadata extractor

func SystemdRPCMetadataExtractor

func SystemdRPCMetadataExtractor(event *rpcmonitor.EventInfo) (*policy.PURuntime, error)

SystemdRPCMetadataExtractor is a systemd based metadata extractor

Types

type LinuxProcessor

type LinuxProcessor struct {
	// contains filtered or unexported fields
}

LinuxProcessor captures all the monitor processor information It implements the MonitorProcessor interface of the rpc monitor

func NewCustomLinuxProcessor added in v1.0.62

func NewCustomLinuxProcessor(storePath string, collector collector.EventCollector, puHandler monitor.ProcessingUnitsHandler, metadataExtractor rpcmonitor.RPCMetadataExtractor, releasePath string) *LinuxProcessor

NewCustomLinuxProcessor initializes a processor with a custom path

func NewLinuxProcessor

func NewLinuxProcessor(collector collector.EventCollector, puHandler monitor.ProcessingUnitsHandler, metadataExtractor rpcmonitor.RPCMetadataExtractor, releasePath string) *LinuxProcessor

NewLinuxProcessor creates a default Linux processor with the standard trireme path

func (*LinuxProcessor) Create

func (s *LinuxProcessor) Create(eventInfo *rpcmonitor.EventInfo) error

Create handles create events

func (*LinuxProcessor) Destroy

func (s *LinuxProcessor) Destroy(eventInfo *rpcmonitor.EventInfo) error

Destroy handles a destroy event

func (*LinuxProcessor) Pause

func (s *LinuxProcessor) Pause(eventInfo *rpcmonitor.EventInfo) error

Pause handles a pause event

func (*LinuxProcessor) ReSync added in v1.0.62

func (s *LinuxProcessor) ReSync(e *rpcmonitor.EventInfo) error

ReSync resyncs with all the existing services that were there before we start

func (*LinuxProcessor) Start

func (s *LinuxProcessor) Start(eventInfo *rpcmonitor.EventInfo) error

Start handles start events

func (*LinuxProcessor) Stop

func (s *LinuxProcessor) Stop(eventInfo *rpcmonitor.EventInfo) error

Stop handles a stop event

Directories

Path Synopsis
Package cgnetcls implements functionality to manage classid for processes belonging to different cgroups
Package cgnetcls implements functionality to manage classid for processes belonging to different cgroups
mock
nolint
nolint

Jump to

Keyboard shortcuts

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