Skip to content

lucee/extension-sysmon

Repository files navigation

Lucee System Monitoring Extension

Comprehensive system monitoring extension providing CPU, memory, disk, network, and OS metrics using the OSHI library.

Features

  • CPU Metrics - Usage, core count, frequency, temperature
  • Memory Metrics - RAM, swap, virtual memory statistics
  • Disk Metrics - Partition space, I/O statistics
  • Network Metrics - Interface information and traffic statistics
  • OS Information - Version, uptime, boot time
  • Process Information - List running processes with CPU/memory usage
  • Backward Compatibility - Includes GetCPUUsage() for compatibility when removed from core

Functions

System Information

GetSystemInfo()          // Complete system snapshot
GetOSVersion()           // Operating system details
GetSystemUptime()        // System uptime in milliseconds

CPU Metrics

GetCPUUsage()            // CPU usage percentage (backward compatible)
GetProcessorInfo()       // Processor details (cores, speed, vendor)

Memory Metrics

GetMemoryUsage()         // RAM usage (total, used, available, percent)
GetMemoryMetrics()       // Detailed memory info (including swap)

Disk & Storage

GetDiskUsage(path)       // Disk space for mount point
GetDiskMetrics()         // All partitions with I/O statistics

Network

GetNetworkInfo()         // Network interfaces and traffic statistics

Processes

GetProcessList()         // All running processes
GetProcessInfo(pid)      // Details for specific process

Building

mvn package

This generates the extension file (.lex) in the target directory.

Installation

  1. Build the extension using Maven
  2. In the Lucee Admin Console, go to Extensions > Install
  3. Upload the generated .lex file

About

Development

The extension uses:

  • OSHI (6.6.1) - Operating System and Hardware Information library
  • Java 17+
  • Maven for building

See the Lucee Maven-based Extensions Guide for more details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors