跳到正文
cccskills
免费在 GitHub 公开

predictive-health

Use for health trend, anomaly, disk forecast

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md2.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

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

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

a2a-swarm

免费

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.

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

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

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

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

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

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

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

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

中文简介正在准备中。当前显示原文说明。

openamer/openamer82026年10月21日 更新

查看 openamer 的全部技能

报告此技能的问题