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

[Feature Request] Remote Server Recorder #319

Closed
tobiasvielmetter opened this issue Feb 17, 2024 · 4 comments
Closed

[Feature Request] Remote Server Recorder #319

tobiasvielmetter opened this issue Feb 17, 2024 · 4 comments

Comments

@tobiasvielmetter
Copy link

Might be interesting to add a remote server recorder to the core functionality.
I have a working prototype in this gist. Might need some work to run under different architectures (currently can run the commands under linux and mac and requires the remote server to be linux). SSH key authentication needs to be in place in order for the commands to be executed.

https://gist.github.com/tobiasvielmetter/44556c542a6b1cbf783ff9e3834c1200

@tobiasvielmetter tobiasvielmetter changed the title Remote Server Recorder [Feature Request] Remote Server Recorder Feb 17, 2024
@jessarcher
Copy link
Member

Interesting idea. We'd wanted to do something similar, but our thought was to create a shell script (or something similar that would be easy to run on a server without PHP) that would run directly on the server being monitored. Your approach is probably easier to set up, but I'm not sure how I feel about continually shelling into a remote server every 15 seconds.

Have you considered creating a package?

@tobiasvielmetter
Copy link
Author

Ah yes, the shell script approach is a good idea to reduce the amount of ssh requests and to deal with different architectures better. This was just the easiest way to get this working based on the existing server recorder and it does work fine for my current setup. Piping a shell script into the ssh command might also do the trick, so no script installation on the remote server is required (cat server-stats.sh | ssh 1.2.3.4).

Yes, unless you are working on a much better approach, I'd create a package for this. I guess my idea was to drop it here first to see what the response is.

@tobiasvielmetter
Copy link
Author

I have created a package with the current code https://github.com/wrklst/pulse-remote-server.git
I will work on the package as time permits to improve the performance / reduce the ssh commands etc.
Feel free to close this if you don't see the need to further discuss here. Thanks so much for your input and this Laravel Pulse!

@driesvints
Copy link
Member

Thanks @tobiasvielmetter!

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

No branches or pull requests

3 participants