360 Secure SkillHub
360 安全技能中心

Monitoring Skill

核心功能:支持三类操作,/collect-metrics收集TOP10高CPU/内存进程指标并存入SQLite数据库;/predict-usage用随机森林模型分析历史数据,预测24小时CPU走势并生成告警;/generate-report生成最新指标Excel报告。典型场景为运维监控系统性能、预判CPU峰值,输入为触发对应指令,输出含数据库记录、告警及报告。

ningtoba
ningtoba
热度 70.28
最近更新 2026-05-11 17:29:05
分类:数据依赖:代码执行 / 读写文件应用场景:数据处理 / 报告撰写 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add event-monitor
Metadata
name
predictive-monitoring
description
Predicts CPU spikes using Random Forest regressor, monitors system resources, saves metrics, and generates Excel reports.
metadata
{"user-invocable":true}

Predictive Monitoring Skill

This skill monitors system resources and predicts future CPU spikes based on past data.

Commands

/collect-metrics

Triggers a collection of the top 10 CPU and Memory consuming processes. The results are saved to a local SQLite database monitoring.db.

/predict-usage

Analyzes collected CPU metrics, trains a Random Forest model, and predicts CPU behavior for the next 24 hours. High CPU usage alerts (Amber, Red) are saved to the Alert table.

/generate-report

Generates an Excel report of the latest captured metrics.

Instructions for Agent

To collect metrics (without prediction), run python {baseDir}/monitoring.py. To collect metrics and run predictive analysis, run python {baseDir}/monitoring.py --predict. To verify the database, look for monitoring.db in the skill directory.