ca3

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: 18 Imported by: 0

README

A ca3 instance is an unmanaged Collection Agent. The instances uses the standard Netprobe installation package and needs Java 17 installed.

A new ca3 instance is created using local package configuration files, therefore the same package version must be installed locally as on any remote host.

Documentation

Index

Constants

View Source
const Name = "ca3"

Variables

View Source
var CA3 = geneos.Component{
	Name:         Name,
	Aliases:      []string{"collection-agent", "ca3s", "collector"},
	LegacyPrefix: "",
	ParentType:   &netprobe.Netprobe,
	PackageTypes: []*geneos.Component{&netprobe.Netprobe},
	DownloadBase: geneos.DownloadBases{Default: "Netprobe", Nexus: "geneos-netprobe"},

	GlobalSettings: map[string]string{
		config.Join(Name, "ports"): "7137-",
		config.Join(Name, "clean"): strings.Join([]string{
			"*.old",
		}, ":"),
		config.Join(Name, "purge"): strings.Join([]string{
			"*.log",
		}, ":"),
	},
	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{},
	Defaults: []string{
		`binary=java`,
		`home={{join .root "netprobe" "ca3s" .name}}`,
		`install={{join .root "packages" "netprobe"}}`,
		`version=active_prod`,
		`plugins={{join .install .version "collection_agent"}}`,
		`program={{"/usr/bin/java"}}`,
		`logdir={{join .home "collection_agent"}}`,
		`logfile=collection-agent.log`,
		`config={{join .home "collection-agent.yml"}}`,
		`minheap=512M`,
		`maxheap=512M`,
		`autostart=true`,
	},

	Directories: []string{
		"packages/ca3",
		"netprobe/netprobes_shared",
		"netprobe/ca3s",
	},
	GetPID: pidCheckFn,
}

Functions

This section is empty.

Types

type CA3s

type CA3s instance.Instance

func (*CA3s) Add

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

func (*CA3s) Command

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

func (*CA3s) Config

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

func (*CA3s) Home

func (n *CA3s) Home() string

func (*CA3s) Host

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

func (*CA3s) Load

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

func (*CA3s) Loaded

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

func (*CA3s) Name

func (n *CA3s) Name() string

func (*CA3s) Rebuild

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

func (*CA3s) Reload

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

func (*CA3s) SetLoaded added in v1.8.0

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

func (*CA3s) String

func (n *CA3s) String() string

func (*CA3s) Type

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

Return the Component for an Instance

func (*CA3s) Unload

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

Jump to

Keyboard shortcuts

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