Skip to content

oleksiikhr/eset-nod32-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PC Monitoring

The service is installed on client PCs that periodically send Hostname and Net.Interfaces to the server.

Default url: http://localhost:17518/

Home page

Server

Commands

# Initialization

$ go mod vendor

# Development

$ go run .

# Production

## Linux
$ go build .
$ ./pc_server

# Windows
$ GOOS=windows GOARCH=386 CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc CGO_ENABLED=1 go build .
$ .\pc_server.exe

Service

  • Directory: service
  • Module: pc_service
  • Libraries:

Commands

# Initialization
## Create a prod.go file with similar config as dev.go
## // +build prod

$ go mod vendor

# Development

$ go run . -run

# Production

## Linux
$ go build -tags prod
$ ./pc_service # run
$ ./pc_service -install # install service
$ ./pc_service -uninstall # uninstall service

## Windows
$ GOOS=windows GOARCH=386 CXX=i686-w64-mingw32-g++ CC=i686-w64-mingw32-gcc CGO_ENABLED=1 go build -tags prod
$ .\pc_service.exe # run
$ .\pc_service.exe -install # install service
$ .\pc_service.exe -uninstall # uninstall service

Web

Commands

# Development

$ npm run dev
$ npm run watch

# Production

$ npm run build