Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
Old TyT edited this page Dec 8, 2022 · 3 revisions

Welcome to the Hera wiki!

Hera it's cross-platform server management system.

How it works

  1. Select webhook on hera
  2. Add a template
  3. Execute the template
  4. Get the execution result
  5. Profit

How to use Hera

  1. Install Hera or use Hera (User: admin, password: password)
  2. Install the webhook on your server and configure config.json
  3. Add template in Hera
  4. If email(username) != admin, you needed confirm this template from other profile
  5. On this page select your webhook and click RUN
  6. Enter Time execute command in seconds and Template ID
  7. You can get the result of the template execution on this page
  8. Profit

Alerta Integrations

This system supported the authorization of users from Alerta - from ENV ALERTA_URL.

What is a template

A template is a set of the following parameters:

  • Command
  • Interpreter
  • and etc for executing code Hera

How the code is executed

  1. Webhook gets a task to execute a command with certain parameters
  2. Webhook creates a temporary file (FileExecute) with the text Command
  3. Then runs this file as follows: Interpreter FileExecute
  4. After execution returns the result to Hera

Example template for linux

  • Interpreter - /bin/sh
  • Command - ls -la /*