mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1186] How to trigger events/notifications in frp server when it detected one of the client is offline? #928
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#928
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jerrychong25 on GitHub (Apr 8, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1186
Hi,
Currently I have implemented frp communication between 5 clients and 1 server.
So far everythings are working fine.
However, I can't trigger events/notifications in frp server when it detected one of client is offline.
This is because I can only know the client is down when error displayed inside the logs.
So, how could I do to trigger events/notifications to another website/application so that I could display this error details and subsequently proceed backup action or etc?
Thanks.
@fatedier commented on GitHub (Apr 9, 2019):
frps support API for getting proxies status such as
/api/proxy/tcp.You can try to call this API at intervals to check proxies status and do what you want.
@jerrychong25 commented on GitHub (Apr 9, 2019):
Any documentation on this API section?
For example:
My frps server domain name is http://example.com/
So I could check proxies status via http://example.com/api/proxy/tcp?
Thanks.
@fatedier commented on GitHub (Apr 9, 2019):
You should set dashboard params to enable this feature.
The api is
http://127.0.0.1:7500/api/proxy/tcp.It's designed to display data on dashboard, no documentation now, maybe future.
@jerrychong25 commented on GitHub (Apr 9, 2019):
Tested it is working, and it returns JSON data for all my clients.
But how could I do the authentication step entered with username admin and password admin when calling this API from my application side?
In my PC, it would pop up a screen to prompt input of dashboard username and password. So I could enter these details myself. But impossible for my application to do this step.
@fatedier commented on GitHub (Apr 9, 2019):
Try to search
http basic authfor more details.