fileagent

package
v1.15.0-beta Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

geneos Fileagents

The Fileagent is a small agent used to relay files from one system to a Geneos Netprobe. Normally deployed with Fix Analyser 2, this allows high volume logs to be sent off-host for further processing with minimal impact on the main system which tend to be sensitive to load.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileAgent = geneos.Component{
	Name:          "fileagent",
	Aliases:       []string{"fileagents", "file-agent"},
	LegacyPrefix:  "fa",
	DownloadBase:  geneos.DownloadBases{Resources: "Fix+Analyser+File+Agent", Nexus: "geneos-file-agent"},
	DownloadInfix: "file-agent",
	PortRange:     "FAPortRange",
	CleanList:     "FACleanList",
	PurgeList:     "FAPurgeList",
	LegacyParameters: map[string]string{
		"binsuffix":  "binary",
		"fahome":     "home",
		"fabins":     "install",
		"fagentbins": "install",
		"fabase":     "version",
		"fagentbase": "version",
		"faexec":     "program",
		"falogd":     "logdir",
		"fagentlogd": "logdir",
		"falogf":     "logfile",
		"fagentlogf": "logfile",
		"faport":     "port",
		"fagentport": "port",
		"falibs":     "libpaths",
		"fagentlibs": "libpaths",
		"facert":     "certificate",
		"fakey":      "privatekey",
		"fauser":     "user",
		"faopts":     "options",
		"fagentopts": "options",
	},
	Defaults: []string{
		`binary=agent.linux_64`,
		`home={{join .root "fileagent" "fileagents" .name}}`,
		`install={{join .root "packages" "fileagent"}}`,
		`version=active_prod`,
		`program={{join "${config:install}" "${config:version}" "${config:binary}"}}`,
		`logfile=fileagent.log`,
		`port=7030`,
		`libpaths={{join "${config:install}" "${config:version}" "lib64"}}:{{join "${config:install}" "${config:version}"}}`,
		`autostart=true`,
	},
	GlobalSettings: map[string]string{
		"FAPortRange": "7030,7100-",
		"FACleanList": "*.old",
		"FAPurgeList": "fileagent.log:fileagent.txt",
	},
	Directories: []string{
		"packages/fileagent",
		"fileagent/fileagents",
	},
}

Functions

This section is empty.

Types

type FileAgents

type FileAgents instance.Instance

func (*FileAgents) Add

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

func (*FileAgents) Command

func (c *FileAgents) Command() (args, env []string, home string)

func (*FileAgents) Config

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

func (*FileAgents) Home

func (n *FileAgents) Home() string

func (*FileAgents) Host

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

func (*FileAgents) Load

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

func (*FileAgents) Loaded

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

func (*FileAgents) Name

func (n *FileAgents) Name() string

func (*FileAgents) Rebuild

func (c *FileAgents) Rebuild(initial bool) error

func (*FileAgents) Reload

func (c *FileAgents) Reload() (err error)

func (*FileAgents) SetLoaded added in v1.8.0

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

func (*FileAgents) String

func (n *FileAgents) String() string

func (*FileAgents) Type

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

Return the Component for an Instance

func (*FileAgents) Unload

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

Jump to

Keyboard shortcuts

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