From 70ed224ef14e48a164e20653f73725e57210b141 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 21 Jul 2009 08:09:29 +0200 Subject: [PATCH] collectd.conf(5), collectd.conf.in: Add the FreeSWITCH plugin. --- src/collectd.conf.in | 16 ++++++++++++ src/collectd.conf.pod | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 83 insertions(+) diff --git a/src/collectd.conf.in b/src/collectd.conf.in index 0f01f4e5..20459244 100644 --- a/src/collectd.conf.in +++ b/src/collectd.conf.in @@ -70,6 +70,7 @@ FQDNLookup true #@BUILD_PLUGIN_ENTROPY_TRUE@LoadPlugin entropy #@BUILD_PLUGIN_EXEC_TRUE@LoadPlugin exec #@BUILD_PLUGIN_FILECOUNT_TRUE@LoadPlugin filecount +#@BUILD_PLUGIN_FREESWITCH_TRUE@LoadPlugin freeswitch #@BUILD_PLUGIN_FSCACHE_TRUE@LoadPlugin fscache #@BUILD_PLUGIN_GMOND_TRUE@LoadPlugin gmond #@BUILD_PLUGIN_HDDTEMP_TRUE@LoadPlugin hddtemp @@ -284,6 +285,21 @@ FQDNLookup true # # +# +# Host "127.0.0.1" +# Port "8021" +# Password "ClueCon" +# +# Instance "profile-sofia-res-public" +# +# Instance "calls-in" +# Regex "CALLS-IN\\s+([0-9]+)" +# DSType "GaugeLast" +# Type "gauge" +# +# +# + # # MCReceiveFrom "239.2.11.71" "8649" # diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index e401d42a..6081f4a8 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1066,6 +1066,73 @@ Controls whether or not to recurse into subdirectories. Enabled by default. =back +=head2 Plugin C + +The I plugin connects to the management port of the FreeSWITCH +daemon and issues commands periodically. The returned output can be parsed +using the "matches" framework, used for example in the I and I +plugins. + +Synopsis: + + + Host "127.0.0.1" + Port "8021" + Password "ClueCon" + + Instance "profile-sofia-res-public" + + Instance "calls-in" + Regex "CALLS-IN\\s+([0-9]+)" + DSType "GaugeLast" + Type "gauge" + + + + +Available configuration options: + +=over 4 + +=item B I + +Specifies the hostname or IP-address to connect to. Defaults to "127.0.0.1". + +=item B I + +Specifies the service name or port to connect to. Must be given as a string, +even when the port is configured in its numeric form! Defaults to "8021". + +=item B I + +Specifies the password to use when connecting. + +=item B I + +B blocks configure the command to issue every I seconds and +how to parse the returned information. The block opening contains the +I while the block body holds the match configuration. + +Inside the BCommandE/E> block the following configuration +options are recognized: + +=over 4 + +=item B I + +Sets the plugin instance to use for values returned by the following matches. + +=item B + +Each B block contains one or more B blocks which specify how to +parse the output returned by the daemon. The infrastructure and configuration +used here is exactly identical to the I plugin. Please see +L> for a detailed description of these blocks. + +=back + +=back + =head2 Plugin C The I plugin received the multicast traffic sent by B, the -- 2.11.0