floating

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 14 Imported by: 0

README

geneos Floating Netprobe Component

A Floating Netprobe used the same installation package as the normal Netprobe but uses a confirmation file to identify remote Gateway(s) to connect to. The primary differences between a Floating Netprobe and a SAN (Self-Announcing Netprobe) is that all the configuration for a Floating Netprobe is kept in the Gateway and that a Floating Netprobe has a one-to-one correspondence with it's set-up.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Floating = geneos.Component{
	Initialise:   Init,
	Name:         "floating",
	Aliases:      []string{"float"},
	LegacyPrefix: "flt",
	ParentType:   &netprobe.Netprobe,
	PackageTypes: []*geneos.Component{&netprobe.Netprobe, &fa2.FA2},
	UsesKeyfiles: true,
	Templates: []geneos.Templates{
		{Filename: templateName, Content: template},
	},
	DownloadBase: geneos.DownloadBases{Resources: "Netprobe", Nexus: "geneos-netprobe"},
	PortRange:    "FloatingPortRange",
	CleanList:    "FloatingCleanList",
	PurgeList:    "FloatingPurgeList",
	LegacyParameters: map[string]string{
		"floatingtype": "pkgtype",
	},
	Defaults: []string{
		`binary={{if eq .pkgtype "fa2"}}fix-analyser2-{{end}}netprobe.linux_64`,
		`home={{join .root "netprobe" "floatings" .name}}`,
		`install={{join .root "packages" .pkgtype}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=floating.log`,
		`port=7036`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}:{{join "${config:install}" "${config:version}"}}`,
		`floatingname={{.name}}`,
		`setup={{join "${config:home}" "netprobe.setup.xml"}}`,
		`autostart=true`,
	},
	GlobalSettings: map[string]string{
		"FloatingPortRange": "7036,7100-",
		"FloatingCleanList": "*.old",
		"FloatingPurgeList": "floating.log:floating.txt:*.snooze:*.user_assignment",
	},
	Directories: []string{
		"packages/netprobe",
		"netprobe/netprobes_shared",
		"netprobe/floatings",
		"netprobe/templates",
	},
}

Functions

func Init

func Init(r *geneos.Host, ct *geneos.Component)

Types

type Floatings

type Floatings instance.Instance

func (*Floatings) Add

func (s *Floatings) Add(template string, port uint16) (err error)

func (*Floatings) Command

func (s *Floatings) Command() (args, env []string, home string)

func (*Floatings) Config

func (s *Floatings) Config() *config.Config

func (*Floatings) Home

func (s *Floatings) Home() string

func (*Floatings) Host

func (s *Floatings) Host() *geneos.Host

func (*Floatings) Load

func (s *Floatings) Load() (err error)

func (*Floatings) Loaded

func (s *Floatings) Loaded() time.Time

func (*Floatings) Name

func (s *Floatings) Name() string

func (*Floatings) Rebuild

func (s *Floatings) Rebuild(initial bool) (err error)

rebuild the netprobe.setup.xml file

we do a dance if there is a change in TLS setup and we use default ports

func (*Floatings) Reload

func (s *Floatings) Reload() (err error)

func (*Floatings) SetLoaded added in v1.8.0

func (s *Floatings) SetLoaded(t time.Time)

func (*Floatings) String

func (s *Floatings) String() string

func (*Floatings) Type

func (s *Floatings) Type() *geneos.Component

Return the Component for an Instance

func (*Floatings) Unload

func (s *Floatings) Unload() (err error)

Jump to

Keyboard shortcuts

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