Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.64 KB

README.md

File metadata and controls

47 lines (38 loc) · 1.64 KB

How to build from sources

go get -d -u github.com/cloudradar-monitoring/cagent
go build -o cagent -ldflags="-X github.com/cloudradar-monitoring/cagent.Version=$(git --git-dir=$GOPATH/src/github.com/cloudradar-monitoring/cagent/.git describe --always --long --dirty --tag)" github.com/cloudradar-monitoring/cagent/cmd/cagent

How to run

-r for one run only mode

./cagent -r -o result.out

Configuration

Check the example config

Default locations:

  • Mac OS: ~/.cagent/cagent.conf
  • Windows: ./cagent.conf
  • UNIX: /etc/cagent/cagent.conf

Logs location

  • Mac OS: ~/.cagent/cagent.log
  • Windows: ./cagent.log
  • UNIX: /var/log/cagent/cagent.log

Build binaries and deb/rpm packages

– Install goreleaser

make goreleaser-snapshot

Build MSI package

Should be done on Windows machine

  • Download go-msi and put it in the C:\Program Files\go-msi
  • Open command prompt(cmd.exe or powershell)
  • Go to cagent directory cd path_to_directory
  • Run make goreleaser-snapshot to build binaries
  • Run build-win.bat

Versioning model

Cagent uses <major>.<minor>.<buildnumber> version pattern for compatibility with a maximum number of package managers.

Starting from version 1.4.0 packages with even <minor> number are considered stable.

S.M.A.R.T monitoring documentation

S.M.A.R.T how to