Process monitoring - Python/Ubuntu/Linux [closed]
Asked Answered
M

3

2

I have a few processes I need to run in deamon mode, I just discovered upstart so I am starting to use it.


Are there any python libraries or applications that I could use to monitor and control these processes from an html interface?

I'm asking as I would like to prevent myself from reinventing the wheel. :)


Any ideas?

Mikamikado answered 28/12, 2010 at 13:42 Comment(2)
Please explain the programming portion of this question, as I must be missing it. If it doesn't have one, perhaps ask it on either ubuntu.stackexchange.com or linux.stackexchange.comAramenta
There are some, but be aware that controlling processes, in a secure way, from a web interface is tricky. The web server typically runs as non-root, and won't be able to to control most other processes.Narcissus
A
9

Supervisor is pretty awesome. I haven't used the web interface though, it might suck.

Aarhus answered 28/12, 2010 at 14:51 Comment(1)
+1 Supervisor is great. The webinterface was pretty from what I can remember. One could easily write another one and use XML-RPC to control supervisor, if it didn't suffice.Hooknose
S
10

I think psutil is what you are looking for.

Splay answered 28/12, 2010 at 13:58 Comment(3)
happy you like it ;) please accept the answer if you wantSplay
indeed I will! Was just waiting a few minutes just in case something else turned up. :PMikamikado
ah, ok perfect ;) i had bad experiences ;)Splay
A
9

Supervisor is pretty awesome. I haven't used the web interface though, it might suck.

Aarhus answered 28/12, 2010 at 14:51 Comment(1)
+1 Supervisor is great. The webinterface was pretty from what I can remember. One could easily write another one and use XML-RPC to control supervisor, if it didn't suffice.Hooknose
D
0

you can also try circus.

Cheers Laidback

Dufy answered 2/7, 2012 at 21:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.