Esempio n. 1
0
func (nxc *NxConfig) ExecPath() string {
	execPath := nxc.UserConfig.BinaryPath
	if common.FileExists(execPath) != nil {
		log.Fatalf("[%s] Configured path to collector binary does not exist: %s", nxc.Name(), execPath)
	}

	return execPath
}
Esempio n. 2
0
func (fbc *FileBeatConfig) ExecPath() string {
	execPath := fbc.Beats.UserConfig.BinaryPath
	if common.FileExists(execPath) != nil {
		log.Fatal("Configured path to collector binary does not exist: " + execPath)
	}

	return execPath
}