curl localhost:55000/agents/purgeable/1m -u foo:bar

219 views
Skip to first unread message

s...@encriptia.com

unread,
Sep 10, 2018, 4:05:49 PM9/10/18
to Wazuh mailing list

Hi,
i am trying to monitorize the moment (as precisely as possible ) of disconnection.
 reading in the mail group, i see this thread https://groups.google.com/forum/#!topic/wazuh/4OsrMXf7eHc and I am trying to use the call mentioned in the thread, it doesn't work
Does anyone know why?


[root@localhost ~]#  curl localhost:55000/agents/purgeable/1m -u user:password
{"error":603,"message":"The requested URL was not found on this server"}[root@localhost ~]#


thank you in advance

Marta Gómez

unread,
Sep 10, 2018, 4:40:14 PM9/10/18
to Wazuh mailing list
Hi Soc,

We removed that API entrypoint. To retrieve what you want you can now use the GET/agents API entrypoint combined with older_than and status query parameters.

Some examples:
Here you can find documentation reference about this API entrypoint: https://documentation.wazuh.com/current/user-manual/api/reference.html#get-all-agents

Also, those parameters can be used in DELETE/agents entrypoint to remove agents under certain conditions.

Hope this helps,
Marta
Message has been deleted

s...@encriptia.com

unread,
Sep 12, 2018, 2:36:41 PM9/12/18
to Wazuh mailing list
Thanks

nOBEL jUNG

unread,
Dec 5, 2019, 4:02:41 AM12/5/19
to Wazuh mailing list
Hello,

I am using Wazuh3.8.
I would like to know if one of agent processes is down or not.
Now the connection is still alive on the manager side and no messages on the agent side.
But I need to know all agent processes are alive or not.

Many thanks,

N.J

2018년 9월 11일 화요일 오전 5시 40분 14초 UTC+9, Marta Gómez 님의 말:
Reply all
Reply to author
Forward
0 new messages