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

feat(uptime): monitor agent #118

Open
ljcbaby opened this issue Oct 22, 2024 · 6 comments
Open

feat(uptime): monitor agent #118

ljcbaby opened this issue Oct 22, 2024 · 6 comments

Comments

@ljcbaby
Copy link

ljcbaby commented Oct 22, 2024

for multi LAN or other network limit environment.

exec monitor remotely and report to main to show and to storage.

@moonrailgun
Copy link
Contributor

I can not get your mind, can you give some example or more explain?

@ljcbaby
Copy link
Author

ljcbaby commented Oct 24, 2024

For my use case,I want start up one instance on my TrueNAS at home.

run an agent on openwrt to monitor tunnels which may have same dst ip so specify iface necessary.

also I want run an agent on unraid at university, because the unraid is J1900 and HDD, It is not up to the task of processing so much historical data.

@moonrailgun
Copy link
Contributor

ic, did you have interesting to submit a PR? i have no enough device environment to test it.

just need to modify this file
reporter/utils/utils.go

getTrafficVnstat

i think vnstat can do it

@ljcbaby
Copy link
Author

ljcbaby commented Oct 24, 2024

Perhaps I did not express clearly enough, let you have some misunderstanding, let me clarify my idea.

There are three objects, the server, the agent, and the monitor object.

For some reason, the server can not connect directly to the monitoring object, or the monitoring effect of direct connection does not meet the expectation. In this case, the server sends the monitoring configuration to the agent, which executes the monitoring task and reports the data to the server.

At the same time, we can enhance the agent, such as specifying the request iface, to satisfy more complex monitoring tasks.

I think this may be a more complex requirement that needs more discussion and research.

@moonrailgun
Copy link
Contributor

fine, its sound like a frp or ssh tunnel 's job.

how about use those solution to resolve your problem? i think its more commonly way.

@ljcbaby
Copy link
Author

ljcbaby commented Nov 4, 2024

FRP or SSH tunnel does not seem to support ICMP forwarding.

And some options, such as ping -i <iface> , must be executed on the local machine.

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

No branches or pull requests

2 participants