It seems there are libraries out there for anything these days! I need to develop a program that will spawn a couple of Windows programs and need to monitor:
- That they are still alive
- Any log files that they create
- StdIn, StdOut, StdErr (if any)
- Performance metrics (Disk, IO, Network, CPU)
Is there a "ready made" library out there that will do the legwork for me?
I'm aware that I can use WMI Performance Counters, Tracing, System.Diagnostics etc. to do the above, but I'm hoping that someone clever has already developed a kickass library for dealing with the low level stuff.
I'm not against paying for the software, so paid/open/closed are all acceptable, however free is better than paid, and open is better than closed.
Update: I originally posted this on Stack Overflow and got advised to re-post here.
Update 2: After a long time searching online I came up with these candidate process libraries, but none seem what im looking for:
- PS Interop - https://psinterop.codeplex.com/ (Not quite right)
- ChildProcesses - https://www.nuget.org/packages/ChildProcesses/ (For managing your own sub processes, I need to manage external ones)
Update 3: Neither of the above seem to really do the trick. I guess I'm gonna have to roll my own.