Skip to content
Back to skills

Resource Monitor

ASecurity

Live-CPU/RAM/DISK/NET-Dashboard + Top-Prozesse + Alarm.

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentspythongobashapi

Works with

  • terminal
  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 4, 2026

npx -y skills add openamer/openamer --skill resource-monitor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Resource Monitor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Resource Monitor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/openamer-resource-monitor/badge)](https://www.skillsdirectory.com/skills/openamer-resource-monitor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: resource-monitor
category: system
description: Live-CPU/RAM/DISK/NET-Dashboard + Top-Prozesse + Alarm.
---

# Resource Monitor

Live-Terminal-Dashboard für CPU, RAM, Festplatte, Netzwerk und Top-Prozesse mit Alarm bei Schwellwertüberschreitung.

## Standort

- **Skript**: `scripts/resource-monitor.py` im OpenAmer Home (`~/AppData/Local/openamer-laptop/`)
- **Skill**: `resource-monitor`

## Verwendung

```bash
# Einmalige JSON-Ausgabe
python3 scripts/resource-monitor.py --once

# Live-Modus (aktualisiert alle 2s)
python3 scripts/resource-monitor.py --watch

# Alarm-Modus: Exit-Code 1 bei Überschreitung
python3 scripts/resource-monitor.py --alert
```

## Datenquellen

- **psutil** (Python): CPU, RAM, DISK, NET, Prozessliste
- **Keine externen Dependencies** (psutil ist bei OpenAmer vorinstalliert)

## CLI-Optionen

| Flag | Beschreibung |
|------|-------------|
| `--once` | Einmalige JSON-Ausgabe aller Metriken |
| `--watch` | Live-Dashboard (alle 2 Sekunden aktualisiert) |
| `--alert` | Prüft Schwellwerte, Exit-Code 1 bei Überschreitung |

## Schwellwerte (Alarme)

| Metrik | Schwelle | Beschreibung |
|--------|----------|-------------|
| CPU | 90% | Zu hohe CPU-Auslastung |
| RAM | 85% | Zu hohe Speicherauslastung |
| DISK | 90% | Zu hohe Festplattenauslastung |

## Anzeige-Modi

- **Rich** (bevorzugt): Farbiges Layout mit Tabellen und Panels
- **Echo+Clear** (Fallback): Einfacher Terminal-Output, wenn Rich nicht verfügbar

## Anzeige-Inhalte (Live-Modus)

1. **Zeile 1**: CPU% | RAM% | DISK% | NET↓↑
2. **Top 5 Prozesse** nach CPU
3. **Top 5 Prozesse** nach RAM
4. **Letzte Alarme** (RAM>85%, DISK>90%, CPU>90%)

## Cron-Job

Der Cron-Job `resource-monitor-alert` läuft alle 5 Minuten im `--alert`-Modus.
Bei Schwellwertüberschreitung wird eine Benachrichtigung ausgelöst.

## Troubleshooting

- **`psutil` nicht gefunden**: `pip install psutil`
- **`Rich` nicht gefunden**: `pip install rich` (Fallback-Modus wird automatisch genutzt)
- **Keine Daten**: Skript benötigt Leseberechtigung für `/proc` (Linux) oder entsprechende Windows-APIs

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…