nrpe

package
v0.0.0-...-d79780e Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Responder

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

Responder is used to build the NRPE answer.

func NewResponse

func NewResponse(services []config.Service, checkRegistry checkRegistry, nrpeConfPath []string) Responder

NewResponse returns a Response.

func (Responder) Response

func (r Responder) Response(ctx context.Context, request string) (string, int16, error)

Response return the response of an NRPE request.

type Server

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

Server is an NRPE server than use Callback for reply to queries.

func New

func New(bindAddress string, enableTLS bool, callback callback) Server

New returns a NRPE server callback is the function responsible to generate the response for a given query.

func (Server) Run

func (s Server) Run(ctx context.Context) error

Run start a connection with a nrpe server.

Jump to

Keyboard shortcuts

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