1ea5db8de1
This patch introduces the following changes. 1. The ovn_monitoring.sh script has been changed to accurately depict the row count in each table. 2. Adding stack user to wheel group has been moved to after the container has been built and is running. Change-Id: I2e7fed2fd3245832689521cd5d7f544f5a476254
10 lines
337 B
Bash
Executable File
10 lines
337 B
Bash
Executable File
#!/bin/sh
|
|
HOSTNAME="${COLLECTD_HOSTNAME:-`hostname -f`}"
|
|
INTERVAL="${COLLECTD_INTERVAL:-15}"
|
|
|
|
while sleep "$INTERVAL"; do
|
|
VALUE=$(sudo ovsdb-client dump --no-headings unix:/var/lib/openvswitch/ovn/ovn$1_db.sock $2 | wc -l)
|
|
VALUE=$[VALUE-1]
|
|
echo "PUTVAL \"$HOSTNAME/ovn-$1db-$2/gauge-ovn_$1db_$2\" interval=$INTERVAL N:$VALUE"
|
|
done
|