2024-09-01 11:34:49 +00:00
|
|
|
# jilo-agent
|
|
|
|
|
2024-09-02 20:09:42 +00:00
|
|
|
## overview
|
|
|
|
|
2024-09-02 18:43:49 +00:00
|
|
|
Jilo Agent - a remote agent for Jilo Web
|
|
|
|
|
|
|
|
Initial version is in PHP.
|
|
|
|
|
|
|
|
The current version is in "go" folder and is in Go.
|
2024-09-02 20:09:42 +00:00
|
|
|
|
|
|
|
## license
|
|
|
|
|
|
|
|
This project is licensed under the GNU General Public License version 2 (GPL-2.0). See LICENSE file.
|
|
|
|
|
|
|
|
## installation
|
|
|
|
|
2024-09-02 20:59:49 +00:00
|
|
|
Clone the git repo. Either run the agent with Go or build it and run the executable.
|
|
|
|
|
|
|
|
Run it (for tests mainly):
|
|
|
|
|
|
|
|
```bash
|
|
|
|
go run main.go
|
|
|
|
```
|
2024-09-02 20:09:42 +00:00
|
|
|
|
|
|
|
Build the agent:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
go build -o jilo-agent main.go
|
|
|
|
```
|
|
|
|
|
|
|
|
## configuration
|
|
|
|
|
|
|
|
The config file is "jilo-agent.json", in the same folder as the "jilo-agent" binary.
|
|
|
|
|
|
|
|
## usage
|
|
|
|
|
|
|
|
Run the agent
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./jilo-agent
|
|
|
|
```
|
|
|
|
|
2024-09-02 20:58:20 +00:00
|
|
|
Send queries to its port (by default 8081, in order to avoid 80, 8080, 8888; configurable in jilo-agent.json):
|
2024-09-02 20:09:42 +00:00
|
|
|
|
|
|
|
```bash
|
2024-09-02 20:58:20 +00:00
|
|
|
curl -s http://localhost:8081/nginx
|
|
|
|
curl -s http://localhost:8081/jicofo
|
2024-09-02 20:09:42 +00:00
|
|
|
etc...
|
|
|
|
```
|