Documentationv2.4.2

NodeSentinel documentation

Quick start

Connect the dashboard and your first agent in a few steps using the recommended Docker Compose installation.

  1. Download the repository

    The repository files include both Compose definitions and all sample configurations.

    bash
    git clone https://github.com/TheArchitect998/NodeSentinel.git
    cd NodeSentinel
  2. Register the agent in the dashboard

    Copy the sample configuration and replace its name and key. Use a unique strong key of at least 16 characters.

    nodesentinel.config.json
    {
      "agents": {
        "HomeLab1": {
          "mode": "push",
          "key": "ENTER_A_RANDOM_KEY_HERE"
        }
      }
    }
    bash
    cp nodesentinel.config.example.json nodesentinel.config.json
    chmod 600 nodesentinel.config.json
    openssl rand -base64 32
  3. Initialise the password and start the dashboard

    bash
    docker compose pull
    docker compose run --rm dashboard /usr/local/bin/nodesentinel dashboard setup
    docker compose up -d
    docker compose ps

    Then open http://localhost:8888. Use an HTTPS reverse proxy for access from the network.

  4. Start the agent on a monitored host

    Create a protected .env in the agent directory. The name and key must exactly match the dashboard entry.

    .env
    NODESENTINEL_AGENT_NAME=HomeLab1
    NODESENTINEL_AGENT_KEY=THE_SAME_RANDOM_KEY
    NODESENTINEL_HUB_URL=wss://dashboard.example.com
    bash
    chmod 600 .env
    docker compose -f compose.agent.yaml pull
    docker compose -f compose.agent.yaml up -d
Secure it before enabling network access

The Compose default binds the dashboard only to localhost. For remote access, use HTTPS and WebSocket support at the reverse proxy. Never transmit agent keys unencrypted across a network.

Verify the installation

  • The agent appears as online in the dashboard.
  • CPU and memory metrics update.
  • A test alert reaches the desired channel.
  • Dashboard and agent configuration files cannot be read by other users.