mikaku / Monitorix

Monitorix is a free, open source, lightweight system monitoring tool.
https://www.monitorix.org
GNU General Public License v2.0
1.12k stars 167 forks source link

Process statistics, how to monitory python applications #187

Closed frollic closed 7 years ago

frollic commented 7 years ago

Hi,

not really a bug, just need to know if it's doable, or how ...

I have an python application running on my Fedora system. If you execute "ps -eo pid,comm,command", it lists as /usr/bin/python -OO ./somthing.py -c something.ini

Obviously, if I enter "python", as the process in the conf of monitorix, I can't be sure which python process that will get monitored (assuming I've got more than one).

How should it be set up ? does the conf support "str ing s", or wildcards for string matching in the process list ?

thank you for a great application

mikaku commented 7 years ago

@frollic, some time ago I merged the #136 pull request that should solve that situation.

So you can put now even the whole string (or the first part of it) in the list option, and Monitorix should be able to find it and monitor it. Just let me know.

frollic commented 7 years ago

Cool!

OK, so that works, with the first part of the string, what about the desc - seems the matching doesn't work there, nor the full string .... ?

I searched the issue list, but didn't find the other one, sorry for double posting :(

mikaku commented 7 years ago

Yeah, in the <desc> section the problem is not so easy to solve.

I'm affraid this is not supported by the Config::General Perl module, and Monitorix hasn't solved it in no other way either, sorry.

frollic commented 7 years ago

OK,

thnx for explaining, much appreciated.