Deamon application for monitoring Filecoin nodes.
This repository contains daemon application for monitoring Filecoin nodes using Hactar.
You can download already built binaries for your platform from builds
folder or get hactar-daemon
golang package and build it locally. Find detailed instructions below.
Inside the builds
folder, you can find binaries for all supported platforms. After downloading an appropriate binary file (in this example it is binary for Linux operating system on intel processor) you can run daemon app with hactar-lin-386 [command]
.
More about different commands can be found in Usage.
- Install Golang 1.13 or greater
- Run the command below
go get github.com/NodeFactoryIo/hactar-daemon
- Run hactar-daemon from your Go bin directory. For linux systems it will likely be:
~/go/bin/hactar-daemon
Note that if you need to do this, you probably want to add your Go bin directory to your $PATH to make things easier!
Lotus username and password can be passed as flags when calling start, see examples.
$ hactar -h
hactar-deamon is a command line interface for ....
Usage:
hactar [command]
Available Commands:
start Starts hactar deamon app
token Display lotus token
help Help about any command
version Show the current version of Hactar deamon app
Use "hactar [command] --help" for more information about a command.
Starting hactar without using flags.
$ hactar start
Enter lotus username: >> cli input <<
Enter lotus password: >> cli input <<
Starting hactar.....
Starting hactar with flags.
You can use --debug
flag for more detailed information.
Login without prompt:
$ hactar start --email=user --password=pass
Run daemon app with go run main.go [command]
.
More about different commands can be found in Usage.
Expected name of the configuration file depends on ENV
variable. For example, if you run a daemon app with ENV=test go run main.go start
, expected config file name is config-test.yaml
config.yaml
allows the use of remote API lotus node and miner worker. In that case paste their tokens in the config, default value is using $HOMEDIR/.lotus/token
and $HOMEDIR/.lotusstorage/token
.
This project is dual-licensed under Apache 2.0 and MIT terms:
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)