Skip to content
cccskills
FreePublished on GitHub

predictive-health

Use for health trend, anomaly, disk forecast

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md2.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Predictive Health Monitor

ML-basierte System-Health-Überwachung mit Trend-Analyse, Anomalie-Detektion, Disk-Volllauf-Prognose und Daemon-Modus.

Script

scripts/predictive-health.py — keine externen Dependencies (nur Python-Standardbibliothek).

CLI-Modi

ArgumentBeschreibung
--collectSammelt Systemmetriken (RAM, Disk, CPU, Cron-Exit-Codes) und hängt an history.csv an
--predictFührt Trend-Analyse + Anomalie-Detektion + Disk-Prognose aus (menschenlesbar)
--reportJSON-Report auf stdout (maschinenlesbar)
--watch [min]Daemon-Modus, alle N Minuten sammeln + analysieren (Default: 5)
--daemonAlias für --watch

Exit-Codes

CodeBedeutung
0Alles gut
1Trend steigend
2Anomalie erkannt (>2σ)
3Disk-Volllauf < 30 Tage

Daten

  • Historie: ~/.openamer/.predictive-health/history.csv (max 10.000 Zeilen)
  • Report: ~/.openamer/.predictive-health/latest_report.json
  • PID: ~/.openamer/.predictive-health/predictive-health.pid

Cron-Jobs

JobRhythmusBeschreibung
predictive-health-collectalle 30minMetriken sammeln (--no-agent)
predictive-health-predictalle 6hTrend-Analyse + Report (--no-agent)

Verwendung

# Einmalig sammeln
python scripts/predictive-health.py --collect

# Trend-Report anzeigen
python scripts/predictive-health.py --predict

# JSON-Report
python scripts/predictive-health.py --report

# Als Daemon (alle 5 Minuten)
python scripts/predictive-health.py --watch

Architektur

  • collect_metrics(): RAM, Disk, CPU via WMIC (Win), /proc/stat (Linux), psutil (Fallback)
  • linear_regression(): y = slope*x + intercept mit R²
  • detect_anomalies(): Gleitender Mittelwert (Fenster=20) + Z-Score > 2σ
  • predict_disk_full(): Multi-Fenster-Analyse (24h/3d/7d), wählt bestes R²
  • daemon_loop(): Loop mit Signal-Handling und PID-Datei

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Build integrated IS/BS/CF financial workbooks in Excel.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Run and grow the OpenAmer Agent-to-Agent swarm: identity, trust, node-to-node ask, signed skill/insight sharing, and the autonomous self-learning loop.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Use for A/B experiments on OpenAmer configs and skills.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Roleplay a hostile user to find and triage UX pain points.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Agent mesh: master/worker nodes, HTTP delegation, heartbeat.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

Use for agentic commerce payments tasks. Candidate synthesized from trend radar; awaiting trial promotion.

The English summary is being prepared. Showing the original description.

openamer/openamer8Updated Oct 21, 2026

See all skills by openamer

Report a problem with this skill