minimal

package
v1.19.2 Latest Latest
Warning

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

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

README

A minimal Netprobe is one without a Collection agent and associated plugins.

If you will not be using the Collection Agent then this can save about 300MB per download of the release file as well as substantial disk space for the unarchives binaries.

Documentation

Index

Constants

View Source
const Name = "minimal"

Variables

View Source
var Minimal = geneos.Component{
	Name:         "minimal",
	Aliases:      []string{"netprobe-mini", "netprobe-minimal", "mini-netprobe"},
	LegacyPrefix: "mini",
	ParentType:   &netprobe.Netprobe,

	DownloadBase:  geneos.DownloadBases{Default: "Netprobe+-+Minimal", Nexus: "geneos-netprobe-minimal"},
	DownloadInfix: "netprobe-minimal",

	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{
		"binsuffix": "binary",
		"minihome":  "home",
		"minibins":  "install",
		"minibase":  "version",
		"miniexec":  "program",
		"minilogd":  "logdir",
		"minilogf":  "logfile",
		"miniport":  "port",
		"minilibs":  "libpaths",
		"minicert":  "certificate",
		"minikey":   "privatekey",
		"miniuser":  "user",
		"miniopts":  "options",
	},
	Defaults: []string{
		`binary=netprobe.linux_64`,
		`home={{join .root "netprobe" "netprobes" .name}}`,
		`install={{join .root "packages" "minimal"}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=minimal.log`,
		`port=7030`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}:{{join "${config:install}" "${config:version}"}}`,
		`autostart=true`,
	},

	Directories: []string{
		"packages/minimal",
		"netprobe/netprobes",
	},
}

Functions

This section is empty.

Types

type Minimals

type Minimals instance.Instance

func (*Minimals) Add

func (n *Minimals) Add(tmpl string, port uint16) (err error)

func (*Minimals) Command

func (n *Minimals) Command() (args, env []string, home string)

func (*Minimals) Config

func (n *Minimals) Config() *config.Config

func (*Minimals) Home

func (n *Minimals) Home() string

func (*Minimals) Host

func (n *Minimals) Host() *geneos.Host

func (*Minimals) Load

func (n *Minimals) Load() (err error)

func (*Minimals) Loaded

func (n *Minimals) Loaded() time.Time

func (*Minimals) Name

func (n *Minimals) Name() string

func (*Minimals) Rebuild

func (n *Minimals) Rebuild(initial bool) error

func (*Minimals) Reload

func (n *Minimals) Reload() (err error)

func (*Minimals) SetLoaded

func (n *Minimals) SetLoaded(t time.Time)

func (*Minimals) String

func (n *Minimals) String() string

func (*Minimals) Type

func (n *Minimals) Type() *geneos.Component

Return the Component for an Instance

func (*Minimals) Unload

func (n *Minimals) Unload() (err error)

Jump to

Keyboard shortcuts

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