From: Florian Forster Date: Wed, 6 Dec 2006 12:33:35 +0000 (+0100) Subject: email plugin: Added some information about this plugin and it's config options to... X-Git-Tag: collectd-3.11.0~25 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70a5b80271643b3c0384e03a77fcfb35c11f726a;p=collectd.git email plugin: Added some information about this plugin and it's config options to the manpages. Also updated the README file, fixed a little indentation in `src/collectd.h' and force the base of the `SocketPerms' to be eight (i. e. assume octal numbers when setting the permission). --- diff --git a/README b/README index 3665099b..0fd37263 100644 --- a/README +++ b/README @@ -42,6 +42,9 @@ Features - DNS traffic (query types, response codes, opcodes and traffic) + - Email statistics + (count, traffic, spam scores and checks) + - Harddisk temperatures (Uhm, yeah, temperature of harddisks that is ;) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 3e544e11..e7ebaf98 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -160,6 +160,31 @@ TCP-Port to connect to. Defaults to B<3551>. =back +=head2 Plugin C + +=over 4 + +=item B I + +Select partitions based on the devicename. + +=item B I + +Select partitions based on the mountpoint. + +=item B I + +Select partitions based on the filesystem type. + +=item B I|I + +Invert the selection: If set to true, all partitions B the ones that +match any one of the criteria are collected. By default only selected +partitions are collected if a selection is made. If no selection is conifured +at all, B partitions are selected. + +=back + =head2 Plugin C =over 4 @@ -177,28 +202,26 @@ Ignore packets that originate from this address. =back -=head2 Plugin C +=head2 Plugin C =over 4 -=item B I +=item B I -Select partitions based on the devicename. +Change the group of the UNIX-socket after it has been created. -=item B I +=item B I -Select partitions based on the mountpoint. +Change the file permissions of the UNIX-socket after it has been created. The +permissions must be given as a numeric, octal value as you would pass to +L. Defaults to B<0770>. -=item B I - -Select partitions based on the filesystem type. - -=item B I|I +=item B I -Invert the selection: If set to true, all partitions B the ones that -match any one of the criteria are collected. By default only selected -partitions are collected if a selection is made. If no selection is conifured -at all, B partitions are selected. +Sets the maximum number of connections that can be handeled in parallel. Since +this many threads will be started immediately setting this to a very high +value will waste valuable resources. Defaults to B<5> and will be forced to be +at most B<16384> to prevent typos and dumb mistakes. =back diff --git a/src/collectd.h b/src/collectd.h index d8f74f95..2ce0a155 100644 --- a/src/collectd.h +++ b/src/collectd.h @@ -201,7 +201,7 @@ #define MODE_LOG 0x08 #ifndef COLLECTD_GRP_NAME -# define COLLECTD_GRP_NAME "collectd" +# define COLLECTD_GRP_NAME "collectd" #endif #ifndef COLLECTD_STEP diff --git a/src/collectd.pod b/src/collectd.pod index b0af26d2..4919f550 100644 --- a/src/collectd.pod +++ b/src/collectd.pod @@ -44,6 +44,10 @@ DNS traffic (I) =item +Email usage (I) + +=item + Harddisk temperatures (I) =item diff --git a/src/email.c b/src/email.c index 9fd05ba0..58d94d1d 100644 --- a/src/email.c +++ b/src/email.c @@ -211,7 +211,7 @@ static int email_config (char *key, char *value) } else if (0 == strcasecmp (key, "SocketPerms")) { /* the user is responsible for providing reasonable values */ - sock_perms = (int)strtol (value, NULL, 0); + sock_perms = (int)strtol (value, NULL, 8); } else if (0 == strcasecmp (key, "MaxConns")) { long int tmp = strtol (value, NULL, 0);