Merge "mibs: add Intel PMU mib file"
authorMaryam Tahhan <maryam.tahhan@intel.com>
Wed, 26 Jul 2017 13:01:13 +0000 (13:01 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Wed, 26 Jul 2017 13:01:13 +0000 (13:01 +0000)
docs/release/userguide/feature.userguide.rst
systems/centos/7/build_base_machine.sh
systems/fedora/22/build_base_machine.sh
systems/rhel/7/build_base_machine.sh
systems/ubuntu/14.04/build_base_machine.sh
systems/ubuntu/16.04/build_base_machine.sh

index 45b5d8c..4d2469c 100644 (file)
@@ -74,6 +74,11 @@ Other plugins existing as a pull request into collectd master:
   statistics about virtualized guests on a system directly from the hypervisor,
   without a need to install collectd instance on the guest.
 
+Third party application in Barometer repository:
+
+* *Open vSwitch PMD stats*: An aplication that retrieves PMD stats from OVS. It is run
+  through exec plugin.
+
 **Plugins included in the Danube release:**
 
 * Hugepages
@@ -121,11 +126,14 @@ will be /opt/collectd.
 Sample configuration files can be found in '/opt/collectd/etc/collectd.conf.d'
 
 .. note::
-  - If you plan on using the Exec plugin, the plugin requires non-root
-    user to execute scripts. By default, `collectd_exec` user is used. Barometer
-    scripts do *not* create this user. It needs to be manually added or exec plugin
-    configuration has to be changed to use other, existing user before starting
-    collectd service.
+  - If you plan on using the Exec plugin (for OVS_PMD_STATS or for executing scripts
+    on notification generation), the plugin requires a non-root
+    user to execute scripts. By default, `collectd_exec` user is used in the exec.conf
+    provided in the sample configurations directory under src/collectd in the Barometer
+    repo. The scripts *DO NOT* create this user. You need to create this user before you
+    run build_base_machine.sh. Or modify configuration in the sample configurations
+    directory under src/collectd to use another existing non root user before running
+    run build_base_machine.sh.
 
   - If you don't want to use one of the Barometer plugins, simply remove the
     sample config file from '/opt/collectd/etc/collectd.conf.d'
@@ -760,6 +768,40 @@ to include:
 For more information on the plugin parameters, please see:
 https://github.com/collectd/collectd/blob/master/src/collectd.conf.pod
 
+OVS PMD stats
+^^^^^^^^^^^^^^
+Repo: https://gerrit.opnfv.org/gerrit/barometer
+
+Prequistes:
+1. Open vSwitch dependencies are installed.
+2. Open vSwitch service is running.
+3. Ovsdb-server manager is configured.
+You can refer `Open vSwitch Plugins`_ section above for each one of them.
+
+OVS PMD stats application is run through the exec plugin.
+
+To configure the OVS PMD stats application you need to modify the exec plugin configuration
+to include:
+
+.. code:: bash
+
+    <LoadPlugin exec>
+       Interval 1
+    </LoadPlugin
+    <Plugin exec>
+        Exec "user:group" "<path to ovs_pmd_stat.sh>"
+        #NotificationExec "nobody" "/usr/lib/collectd/notify.sh"
+    </Plugin>
+
+.. note:: Exec plugin configuration has to be changed to use appropriate user before starting collectd service.
+
+ovs_pmd_stat.sh calls the script for OVS PMD stats application with its argument:
+
+.. code:: bash
+
+     sudo python /usr/local/src/ovs_pmd_stats.py" "--socket-pid-file"
+     "/var/run/openvswitch/ovs-vswitchd.pid"
+
 SNMP Agent Plugin
 ^^^^^^^^^^^^^^^^^
 Repo: https://github.com/maryamtahhan/collectd/
index 438c143..0e56c77 100755 (executable)
@@ -52,6 +52,7 @@ gtk2-devel
 libvirt-devel
 mcelog
 wget
+net-snmp-devel
 
 # install epel release required for git-review
 epel-release
index 942c799..be22511 100755 (executable)
@@ -34,6 +34,7 @@ kernel-devel
 kernel-modules-extra
 pixman-devel
 openssl-devel
+net-snmp-devel
 
 # tools
 curl
index 583089a..c5191f7 100755 (executable)
@@ -52,6 +52,7 @@ gtk2-devel
 libvirt-devel
 mcelog
 wget
+net-snmp-devel
 
 # install epel release required for git-review
 epel-release
index e1b1c9f..0dc21d9 100755 (executable)
@@ -56,6 +56,9 @@ apt-get -y install \
     libsensors4-dev \
     libsigrok-dev \
     libsnmp-dev \
+    snmp \
+    snmp-mibs-downloader \
+    snmpd \
     perl \
     libtokyocabinet-dev \
     libtokyotyrant-dev \
index 119bca2..ba64ad4 100755 (executable)
@@ -56,6 +56,9 @@ apt-get -y install \
     libsigrok-dev \
     libsnmp-dev \
     libsnmp9-dev \
+    snmp \
+    snmp-mibs-downloader \
+    snmpd \
     perl \
     libtokyocabinet-dev \
     libtokyotyrant-dev \