Link to home
Create AccountLog in
Avatar of Richard Crist
Richard CristFlag for United States of America

asked on

Any good tools for Linux command output monitoring via web page dashboard?

My first question in a few years here (previous questions have dropped off) so please excuse me as I get back into the swing of Experts Exchange etiquette.


I am cranking up RunOps/SRE team. We have a need to monitor some application-related non-numeric output for troubleshooting as needed. An example might be a command like "ps -ef | grep somevalue" where "somevalue" shows running processes matching some desired criteria. We would like this monitoring output (on ad hoc basis) to be available via a dashboard without need for user Linux login if possible. This is just one example of such non-numeric text-based data.


My Linux resource has found "Cockpit" as a possible solution as it has extensible command ability to add things like this as "clickable" web dashboard button/link.


Is anyone aware of any other Linux tools that can be client-side for security purposes but able to serve limited commands and output to a web dashboard-like page for use without needed Linux login?


For our Linux machines we currently have Solarwinds for status monitoring which uses a client side component. We also have other client monitoring tools for security monitoring, etc., so our Linux admin team does not want to overburden machines with monitoring tools which have occasionally caused resource limits.  Is Solarwinds able to offer command output via web page dashboard-like output?

Avatar of madunix
madunix

Check out  Nagios Core (Open Source) and Nagios XI (Paid Version)  monitoring tools.  https://www.nagios.org/
Install Nagios Plug-ins NRPE add-on to each host to monitor processes and services.  https://youtu.be/cI4t2zqAiDQ

theree are many ways to pull data.
SNMP, nagios. As Madunix pointed out.

You can use rsyslog to snmptrap with nagios monitoring/reporting events, generating alerts if needed.
Or you can just output data as HTML into some Web Server directory.

https://stackoverflow.com/questions/16992779/live-output-of-stdout-to-a-webpage-with-php-ajax provides another starting point for this type of code.

The search - ajax real time update of stdout - provides many examples of AJAX + real time + STDOUT output, for simple projects.
Linux: NRPE  allows you to remotely execute Nagios plugins on Linux/Unix machines.
Windows: NSClient++ allows you to remotely execute Nagios plugins on Windows machines.

https://assets.nagios.com/downloads/nagiosxi/docs/Monitoring_Hosts_Using_NRPE.pdf
https://assets.nagios.com/downloads/nagiosxi/docs/Configuring-The-Windows-Agent-NSClient++-for-Nagios-XI.pdf

Avatar of Richard Crist

ASKER

madunix, arnold, David Favor thank you all for your advice! I am seeing Nagios as a tried and true standard mentioned by you. I have also been thinking along lines of programming solution like mentioned. For now I would like to mark all as helpful and then come back to mark final solution if it turns out that I do use one of the advice replies. In your opinion should I not mark any yet, or go ahead and mark helpful on all and return for final solution? Not sure how long a question like this can stay open while I investigate and work on my end. Thank you all again for your time.  :)
There are different choices. one deals with closing the question, and picking the solutions you choose while also choosing comments while they might not be high enough on your scale for a solution, they were helpful to you.

The other ioption, you could mark the comments that have been helpful to you thus far, while maintaining the question as open during your various attempts.
The consideration deals with you are trying and would like to return, the reason to close, the topic of the question is rather broad, comments here perhaps help narrow the field of option you will be trying, so this portion of the inquiry can be closed,
and should you need clarification, insight, suggestion, or other ..... you can always come back with the existing new thing that you have before you and seek a more specific set of comments on the issue at hand at that time.
@Richard, You're welcome + good luck!
ASKER CERTIFIED SOLUTION
Avatar of Richard Crist
Richard Crist
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account