Skip to content

Commit 5268648

Browse files
authored
Merge pull request #91 from flashcatcloud/fix/monit-skill-cards
fix(skills): monit 卡片里四个工具名不存在
2 parents d1e052f + 7053d7b commit 5268648

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

skills/flashduty/reference/monit-agent.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Prereq: `SKILL.md` read. On-box diagnostics: run diagnostic tools on a host or d
2020
fduty monit-agent catalog --target-locator <host-or-instance> --output-format toon
2121
# 2. invoke up to 8 tools concurrently; tool names taken verbatim from the catalog
2222
fduty monit-agent invoke --target-locator <host-or-instance> \
23-
--data '{"tools":[{"tool":"host.top","params":{}},{"tool":"host.disk","params":{}}]}'
23+
--data '{"tools":[{"tool":"os.overview"},{"tool":"os.top_processes","params":{"top_n":10}}]}'
2424
```
2525

2626
<!-- GENERATED:monit-agent START · 由 fduty __dump-commands 同步 · 勿手改 fence 内 -->
@@ -60,6 +60,6 @@ Run up to 8 monit-agent tools concurrently on a target
6060
6161
```bash
6262
fduty monit-agent invoke --target-locator web-prod-3 \
63-
--data '{"tools":[{"tool":"host.top","params":{"limit":10}},{"tool":"host.disk","params":{}}]}' \
63+
--data '{"tools":[{"tool":"os.overview"},{"tool":"os.top_processes","params":{"top_n":10}}]}' \
6464
--output-format toon
6565
```

skills/flashduty/reference/monit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fduty monit tools-catalog --target-locator <hostname-or-ip> --output-format toon
6565

6666
# 3. invoke tools (up to 8 concurrently); use heredoc to avoid shell quoting hell
6767
fduty monit tools-invoke --target-locator <hostname-or-ip> --output-format toon --data - <<'EOF'
68-
{"tools":[{"tool":"host.cpu","params":{}},{"tool":"host.mem","params":{}}]}
68+
{"tools":[{"tool":"os.overview"},{"tool":"os.top_processes","params":{"top_n":10}}]}
6969
EOF
7070
```
7171

0 commit comments

Comments
 (0)