floating

package
v1.15.6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

README

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

View Source
const Name = "floating"

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{Default: "Netprobe", Nexus: "geneos-netprobe"},

	GlobalSettings: map[string]string{
		config.Join(Name, "ports"): "7036,7100-",
		config.Join(Name, "clean"): strings.Join([]string{
			"*.old",
		}, ":"),
		config.Join(Name, "purge"): strings.Join([]string{
			"*.log",
			"*.txt",
			"*.snooze",
			"*.user_assignment",
		}, ":"),
	},
	PortRange: config.Join(Name, "ports"),
	CleanList: config.Join(Name, "clean"),
	PurgeList: config.Join(Name, "purge"),
	ConfigAliases: map[string]string{
		config.Join(Name, "ports"): Name + "portrange",
		config.Join(Name, "clean"): Name + "cleanlist",
		config.Join(Name, "purge"): Name + "purgelist",
	},

	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`,
	},

	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