Skip to content

Server Stats Service Documentation

The metrics collection scripts are designed exclusively for Linux-based operating systems.

The service relies on commands and virtual filesystems (/proc) that are standard on most modern Linux distributions (like Debian, Ubuntu, CentOS, Fedora, Arch, etc.). It is not compatible with other operating systems such as Windows, macOS, or other UNIX variants like FreeBSD without significant modification, as they use different commands and system interfaces for metric collection.

Commands

For the service to collect all available metrics, the authenticated user on the remote server must have permission to execute the following commands. These are standard, non-privileged utilities found on most Linux systems.

Metric CategoryCommand(s)Purpose
CPUcat /proc/statReads CPU time statistics (user, system, idle, etc.) to calculate usage percentage.
cat /proc/loadavgReads the 1, 5, and 15-minute system load averages.
nproc or grep -c ^processor /proc/cpuinfoDetermines the number of available CPU cores.
Memorycat /proc/meminfoReads detailed memory statistics (total, free, available, buffers, cached) to calculate usage.
Diskdf -h -P /Gets human-readable disk usage for the root filesystem (/).
df -B1 -P /Gets disk usage in bytes for the root filesystem to calculate the percentage.
Networkip -o addr showLists network interfaces and their associated IP addresses.
ip -o link showLists network interfaces and their operational state (e.g., UP/DOWN).
Uptimecat /proc/uptimeReads the system uptime in seconds.
Processesps aux --sort=-%cpu | head -n 11Lists the top 10 processes sorted by CPU usage.
ps aux | wc -lCounts the total number of running processes.
ps aux | grep -c ' R 'Counts the number of processes in the "Running" state.
System InfohostnameGets the system's hostname.
uname -rGets the kernel release version.
cat /etc/os-releaseReads the OS distribution's "pretty name" (e.g., "Ubuntu 22.04.1 LTS").
Login Statslast -n 20 -F -wShows the 20 most recent successful user logins.
grep 'Failed password' /var/log/auth.log or grep 'authentication failure' /var/log/secureReads common system log files to find the 10 most recent failed login attempts. Access may be restricted.

Support

If you need help or want to request a feature with Termix, visit the Issues page, log in, and press New Issue. Please be as detailed as possible in your issue, preferably written in English. You can also join the Discord server and visit the support channel, however, response times may be longer.

Distributed under the Apache License Version 2.0