Skip to content
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

Request: Ping From Router #125

Open
Lekskog opened this issue Apr 1, 2024 · 1 comment
Open

Request: Ping From Router #125

Lekskog opened this issue Apr 1, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Lekskog
Copy link

Lekskog commented Apr 1, 2024

Is it possible to make so you can Ping a server via the router.
For example i want to ping 8.8.8.8 every 30 seconds via my edgerouter to check my delay to the internet.

@Lekskog Lekskog changed the title Request: Request: Ping From Router Apr 1, 2024
@elad-bar elad-bar added the enhancement New feature or request label May 3, 2024
@elad-bar
Copy link
Owner

elad-bar commented May 3, 2024

looks like it is possible and pretty easy to implement,
need to subscribe to new topic over websocket:

{"SUBSCRIBE":[{"name":"ping-feed","sub_id":"ping1","target":"8.8.8.8","count":"","size":""}],"UNSUBSCRIBE":[],"SESSION_ID":"1234"}

and then the websocket will report the status:

{
    "ping1": "PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.\n64 bytes from 8.8.8.8: icmp_seq=1 ttl=64 time=0.174 ms\n"
}

using that practice I can add also bandwidth test, trace route and packet sniffer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants