-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send shutdown event from the agent to the server #585
Labels
Comments
UpdateStarted issue by looking at requirements, created the requirement and looking into related code and involved parts. |
8 tasks
Update
|
Update
|
Update
POST /api/v1/events/stateless HTTP/1.1
Host: localhost
User-Agent: WazuhXDR/5.0.0 (Endpoint; x86_64; Linux)
Accept: application/json
Authorization: Bearer eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJXYXp1aCIsImF1ZCI6IldhenVoIENvbW11bmljYXRpb25zIEFQSSIsImlhdCI6MTc0MDA1NzcyMiwiZXhwIjoxNzQwMDU4NjIyLCJ1dWlkIjoiMDlmODcyZGMtMTExYi00Mzg2LWFjMTktYTVmOGE3NmVmNGQxIn0.MEQCIGc5pB7R1iJ9XWy2Y_8hLf2oTnv59AGW8BKysSEzlo4hAiAw9zH_kWhi3SVDdXJzPNf1Id-4D9vt-i3hbC3_MEByVQ
Content-Type: application/json
Content-Length: 456
{"agent":{"groups":["validYaml","invalidYaml"],"host":{"architecture":"x86_64","hostname":"dell","ip":["192.168.0.10","fe80::fd02:ec4b:a7dc:9f60"],"os":{"name":"Ubuntu","type":"Linux","version":"22.04.5 LTS (Jammy Jellyfish)"}},"id":"09f872dc-111b-4386-ac19-a5f8a76ef4d1","name":"dummy","type":"Endpoint","version":"5.0.0"}}
{"module":"agent","operation":"shutdown"}
{"event":{"created":"2025-02-19T20:25:46.807Z","original":"The agent is shutting down."}} |
UpdateIssue is now blocked, I cherry picked some small fixes and improvements from the branch, made from preliminary research of the involved components, into another one #617 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The Wazuh agent should send an event to the server when performing a graceful shutdown. This event will be a stateless message sent directly, bypassing the agent's queue.
This task presents a challenge: the agent must send the message while shutting down quickly. Therefore, an independent sending mechanism with a timeout will be implemented.
Requirements
Configuration
Proposed configuration option:
Stateless message format
Metadata
Data
Plan
shutdown_notify_timeout
configuration option.Definition of done
shutdown_notify_timeout
is configurable.Additional notes
The text was updated successfully, but these errors were encountered: