fixed server query
This commit is contained in:
parent
e6541370b9
commit
a1e5331f4a
7 changed files with 221 additions and 13 deletions
|
|
@ -49,7 +49,7 @@ Transport:
|
|||
- XML-RPC over HTTP
|
||||
- endpoint path `/RPC2`
|
||||
- wrapper `Panel/includes/lib_remote.php`
|
||||
- server implementations in `Agent_Linux/ogp_agent.pl` and `Agent-Windows/ogp_agent.pl`
|
||||
- server implementations in `Agent_Linux/ogp_agent.pl` and `Agent-Windows/OGP64/OGP/ogp_agent.pl`
|
||||
|
||||
Primary categories:
|
||||
|
||||
|
|
@ -264,6 +264,13 @@ Rules:
|
|||
- agent process/session or game-port evidence is sufficient for online
|
||||
- `UNKNOWN` is reserved for unreachable or inconclusive agent state
|
||||
|
||||
Panel fallback behavior:
|
||||
|
||||
- `Panel/modules/gamemanager/home_handling_functions.php` calls `remote_server_status()` first.
|
||||
- If that structured RPC is unavailable or ambiguous, the Panel calls `is_screen_running()`.
|
||||
- The Panel then calls generic agent `exec()` with an `ss`/`netstat` port probe for the configured game port.
|
||||
- The fallback port grep must match normal listener output such as `:2302` or `.2302`; do not shell-quote the port inside the regex.
|
||||
|
||||
## Scheduler-As-API Contract
|
||||
|
||||
Agent cron jobs often execute URLs like:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue