Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupLog ¶
func SetupLog(c CommonParams) error
func ShowConfig ¶
func ShowConfigAgent ¶
ShowConfigAgent is the show-config subcommand for binaries that embed ParamsAgent (factum/worker sections only) rather than the full Params - keeps show-config's required flags matching what the binary's other subcommands actually need.
fetchRemote is optional: services that pull their database-backed settings from the primary over REST (dns, icinga, librenms, oxidized) pass their FetchRemoteConfig, and its result is printed after the local config. A fetch failure is logged and the command still exits 0 - show-config should always report what it can, even with the primary unreachable, rather than have the whole command fail from a single missing section.
Types ¶
type CommonParams ¶
type Params ¶
type Params struct {
ConfigFile string `short:"f" configfile:"true" optional:"false" default:"/etc/factum2/factum2.yaml"`
Config util.ConfigRoot `yaml:",inline"`
CommonParams
}
type ParamsAgent ¶
type ParamsAgent struct {
ConfigFile string `short:"f" configfile:"true" optional:"false" default:"/etc/factum2/factum2-worker.yaml"`
Config util.ConfigAgentRoot `yaml:",inline"`
CommonParams
}
Directories
¶
| Path | Synopsis |
|---|---|
|
factum-icinga-notifications is the Icinga2 NotificationCommand invoked directly by icinga2 whenever a host/service alarm fires.
|
factum-icinga-notifications is the Icinga2 NotificationCommand invoked directly by icinga2 whenever a host/service alarm fires. |
|
Web backend for factumn2
|
Web backend for factumn2 |