OVS collectd interface/port state monitoring
Use collectd to monitor OVS interface and port. Some host interfaces will be added to OVS port. Only these ports and interfaces will be monitored. Change-Id: Icbf3d4c47afd177392f023720c114783332b143b Story: #2002948 Task: #22944 Closes-Bug: #1834512 Signed-off-by: Chenjie Xu <chenjie.xu@intel.com>
This commit is contained in:
parent
5df0fd26e6
commit
92233ff68e
|
@ -19,6 +19,8 @@ COPY_LIST="$PKG_BASE/src/LICENSE \
|
||||||
$PKG_BASE/src/remotels.conf \
|
$PKG_BASE/src/remotels.conf \
|
||||||
$PKG_BASE/src/ptp.py \
|
$PKG_BASE/src/ptp.py \
|
||||||
$PKG_BASE/src/ptp.conf \
|
$PKG_BASE/src/ptp.conf \
|
||||||
|
$PKG_BASE/src/ovs_interface.py \
|
||||||
|
$PKG_BASE/src/ovs_interface.conf \
|
||||||
$PKG_BASE/src/example.py \
|
$PKG_BASE/src/example.py \
|
||||||
$PKG_BASE/src/example.conf"
|
$PKG_BASE/src/example.conf"
|
||||||
TIS_PATCH_VER=15
|
TIS_PATCH_VER=16
|
||||||
|
|
|
@ -24,6 +24,7 @@ Source15: ntpq.py
|
||||||
Source16: interface.py
|
Source16: interface.py
|
||||||
Source17: remotels.py
|
Source17: remotels.py
|
||||||
Source18: ptp.py
|
Source18: ptp.py
|
||||||
|
Source19: ovs_interface.py
|
||||||
|
|
||||||
# collectd plugin conf files into /etc/collectd.d
|
# collectd plugin conf files into /etc/collectd.d
|
||||||
Source100: python_plugins.conf
|
Source100: python_plugins.conf
|
||||||
|
@ -35,6 +36,7 @@ Source105: ntpq.conf
|
||||||
Source106: interface.conf
|
Source106: interface.conf
|
||||||
Source107: remotels.conf
|
Source107: remotels.conf
|
||||||
Source108: ptp.conf
|
Source108: ptp.conf
|
||||||
|
Source109: ovs_interface.conf
|
||||||
|
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
|
|
||||||
|
@ -85,6 +87,7 @@ install -m 700 %{SOURCE15} %{buildroot}%{local_python_extensions_dir}
|
||||||
install -m 700 %{SOURCE16} %{buildroot}%{local_python_extensions_dir}
|
install -m 700 %{SOURCE16} %{buildroot}%{local_python_extensions_dir}
|
||||||
install -m 700 %{SOURCE17} %{buildroot}%{local_python_extensions_dir}
|
install -m 700 %{SOURCE17} %{buildroot}%{local_python_extensions_dir}
|
||||||
install -m 700 %{SOURCE18} %{buildroot}%{local_python_extensions_dir}
|
install -m 700 %{SOURCE18} %{buildroot}%{local_python_extensions_dir}
|
||||||
|
install -m 700 %{SOURCE19} %{buildroot}%{local_python_extensions_dir}
|
||||||
|
|
||||||
|
|
||||||
# collectd plugin conf files into /etc/collectd.d
|
# collectd plugin conf files into /etc/collectd.d
|
||||||
|
@ -97,6 +100,7 @@ install -m 600 %{SOURCE105} %{buildroot}%{local_plugin_dir}
|
||||||
install -m 600 %{SOURCE106} %{buildroot}%{local_plugin_dir}
|
install -m 600 %{SOURCE106} %{buildroot}%{local_plugin_dir}
|
||||||
install -m 600 %{SOURCE107} %{buildroot}%{local_plugin_dir}
|
install -m 600 %{SOURCE107} %{buildroot}%{local_plugin_dir}
|
||||||
install -m 600 %{SOURCE108} %{buildroot}%{local_plugin_dir}
|
install -m 600 %{SOURCE108} %{buildroot}%{local_plugin_dir}
|
||||||
|
install -m 600 %{SOURCE109} %{buildroot}%{local_plugin_dir}
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
<Plugin "threshold">
|
||||||
|
<Plugin "ovs interface">
|
||||||
|
<Type "percent">
|
||||||
|
Instance "used"
|
||||||
|
Persist true
|
||||||
|
PersistOK true
|
||||||
|
WarningMin 100
|
||||||
|
FailureMin 1
|
||||||
|
Invert false
|
||||||
|
</Type>
|
||||||
|
</Plugin>
|
||||||
|
</Plugin>
|
File diff suppressed because it is too large
Load Diff
|
@ -17,6 +17,7 @@ LoadPlugin python
|
||||||
<Module "interface">
|
<Module "interface">
|
||||||
Port 2122
|
Port 2122
|
||||||
</Module>
|
</Module>
|
||||||
|
Import "ovs_interface"
|
||||||
Import "remotels"
|
Import "remotels"
|
||||||
LogTraces = true
|
LogTraces = true
|
||||||
Encoding "utf-8"
|
Encoding "utf-8"
|
||||||
|
|
Loading…
Reference in New Issue