Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

feat(monitor): explain why a query failed (port not listening vs. no reply)

未关闭
#4,995 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
半天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
linux, shell
领域
devops

调研方向

The monitor query path lives in the LinuxGSM shell modules under lgsm/modules, where the failed-query restart and the fn_script_log_* logging helpers are called. Read the monitor code first, then check how ss output could be parsed for the listening port. Done when a failed query logs one of the two hints, to both the screen and the script log, covering both the not-listening and in-use cases.

由索引模型根据 Issue 内容生成。

描述

command: monitor type: feature

Problem

When a monitor query fails, the log only says the query failed and the server is restarted. Admins can't tell why. Common causes include:

  • The server never opened the query port (it didn't finish booting, or another program already holds a port it needs).
  • Something is listening on the port but doesn't answer the query, for example because queryport is wrong or the query type/protocol doesn't match.

Proposal

After a failed query attempt, check the port with ss and log a hint:

  • Port not in use: the server isn't listening on queryport. Check the console, port settings and port conflicts.
  • Port in use: name the process listening on it. If the query got no reply, suggest checking queryport and the query mode/type.

Hints should go to the script log (fn_script_log_*) as well as the screen, so they appear in the monitor log.

Originally proposed by @jusito in #4155 (closed, written against the pre-lgsm/modules monitor).

主要语言
Shell
星标
4.9k
派生
870
平均合并
1 天 5 小时
30 天内合并 PR
68

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GameServerManagers/LinuxGSM 的其他 Issue

查看 GameServerManagers/LinuxGSM 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。