Documentation
Agent is a golang program. Collect netflow, hostmeta, processname info from operating system.
./vaper_agent -a start
-LogLevel string
Log level: debug info warn error fatal panic (default "info")
-LogPath string
Log path (default "./vaper_agent.log")
-ServerUrl string
ServerUrl (default "http://127.0.0.1:3000")
-a string
action: init/start (default "nothing")
-f string
configuration file (default "./config.yml")
In most of the cases vaper_agent neet root authority to work properly except container.
You should run vaper_agent with the same user as application in docker container, or the agent can not get process name in correct.
curl -o vaper_agent https://github.com/vapering/vaper/releases/download/v0.0.1/vaper_agent
chmod +x ./vaper_agent
nohup ./vaper_agent -a start >>./vaper_agent.log 2>&1 &sh buildRun.sh
The buid result is vaper_agent
Be sure you have install the glibc-static.x86_64
yum install glibc-static -y
go build -o vaper_agent -ldflags '-linkmode "external" -extldflags "-static"'