Skip to content

Why-tw/sys_alert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

81befadΒ Β·Β Β· Apr 26, 2026

History

11 Commits
Apr 18, 2026
Apr 26, 2026
Apr 26, 2026
Apr 26, 2026
Apr 26, 2026
Apr 26, 2026
Apr 26, 2026
Apr 26, 2026
Apr 26, 2026

Repository files navigation

System Error Alert

🚧 Work in progress

A lightweight Linux system monitoring tool written in C. It provides real-time insights into CPU usage, memory status, and running processes using data from /proc.


✨ Features

  • πŸ“Š Real-time CPU usage (per core)
  • 🧠 Memory usage tracking
  • 🧾 Basic process information
  • ⚑ Non-blocking input (interactive UI)
  • πŸ”„ Continuous screen refresh

πŸ›  Tech Stack

  • Language: C
  • Platform: Linux
  • Data source: /proc filesystem

πŸš€ Build & Run Run

gcc test.c system.c ui.c -o sys_alert
./sys_alertt

⌨️ Controls

Key Action
1 CPU view
2 Memory view
3 Process view
q Quit

🧠 How it works

  • Reads system data from /proc
  • Calculates CPU usage using time delta
  • Uses non-blocking input with termios and fcntl
  • Updates UI in a loop without blocking

πŸ“Œ Status

This project is under active development. Future improvements may include::

  • Sorting and filtering processes
  • Better UI (ncurses)
  • Alerts for high resource usage

About

A low-level, Server error alert in linux. While it detected the errors of server, it sends message to me with linux socket

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages