processes plugin: Add the `ProcessMatch' option.
authorOleg King <king2@kaluga.ru>
Tue, 27 May 2008 14:48:51 +0000 (16:48 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Tue, 27 May 2008 14:48:51 +0000 (16:48 +0200)
commit49908d768d58345cd27bd2cf05f7c0c5f8b95a1e
tree478eab7290a39617451317aa223203ac0b92f8c0
parent28a77bdf8955889d3a57cbb8e904ba138aef41aa
processes plugin: Add the `ProcessMatch' option.

Hello!

There is a patch for processes plugin:

1. Added support for libkvm, so processes plugin will be run under
FreeBSD.

2. Added ProcessMatch "NAME" "REGEXP" directive, that adds process
into list of processes that we watch on, but with identification by
Regexp. Rexexp matched against command line, if command line is
empty, than against task name.

3. Changed way we finding processes. Now we match not only first
process, but all processes that match selected criteria. This allows
to make some type of "grouping":

Process "httpd"
Process "dhclient"
ProcessMatch "only-my-perl-program" "perl(.*)my-program\.pl"
ProcessMatch "perl-programs" "^/usr/bin/perl"
ProcessMatch "all-tasks" "(.*)"

Patch is attached to this message.

To octo: it is neede to make some thiungs I have not done:

1. make changes in manpages
2. make changes in config file
3. write rules that users should use when giving names with ProcessMatch
configure.in
src/processes.c