SysMonitoring
  • Introduction
  • Installation
  • Configuration
  • Troubleshooting
  • Functions
    • startServer()
    • stopServer()
    • getCpuLoad()
    • getMemoryUsage()
    • getPing()
  • API
    • /cpu
    • /memory
    • /ping
  • Terminal Commands
    • echo
    • time
    • help
    • stats
Powered by GitBook
On this page
  • startServer()
  • Overview
  • Usage
  • Description
  1. Functions

startServer()

startServer()

Overview

The startServer() function starts the monitoring dashboard server, making it accessible via a web browser. Once called, it begins serving real-time system statistics (CPU, memory, ping) to clients.

Usage

monitoring.startServer();

Description

  • startServer() initializes the server on the specified port and starts sending system stats.

  • Once the server is running, you can access the dashboard at http://127.0.0.1:<port>/monitoring.

By default, the server runs on port 3000, but you can change it in the configuration options.

PreviousTroubleshootingNextstopServer()

Last updated 5 months ago