diff options
author | Andrew Moss <1043609+amoss@users.noreply.github.com> | 2020-03-25 16:21:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-25 16:21:15 +0100 |
commit | 9ee4478f9a9eedbaff5887a415a897d984e74828 (patch) | |
tree | 3b0432c8893433ff206b8a1b616be811f1aaad1c /aclk/tests | |
parent | a43bd7cc5b7135e24fa36892e4fcc736fa8b0f30 (diff) |
Fake collector to provoke ACLK messages (#8427)
For internal testing use only.
Diffstat (limited to 'aclk/tests')
-rw-r--r-- | aclk/tests/fake-charts.d.plugin | 24 | ||||
-rw-r--r-- | aclk/tests/install-fake-charts.d.sh.in | 6 |
2 files changed, 30 insertions, 0 deletions
diff --git a/aclk/tests/fake-charts.d.plugin b/aclk/tests/fake-charts.d.plugin new file mode 100644 index 0000000000..a13c6bab87 --- /dev/null +++ b/aclk/tests/fake-charts.d.plugin @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +sleep 45 # Wait until popcorning finishes + +echo "CHART aclk_test.newcol '' 'Generate new collector/chart event' 'units' aclk_test aclk_test lines 900001 1" +sleep 5 +echo "DIMENSION aclk1 '' percentage-of-absolute 1 1" +sleep 5 +echo "BEGIN aclk_test.newcol 1000000" +echo "SET aclk1 = 3" +echo "END" +sleep 5 +echo "DIMENSION aclk2 '' percentage-of-absolute 1 1" +sleep 5 +echo "BEGIN aclk_test.newcol 1000000" +echo "SET aclk1 = 3" +echo "SET aclk2 = 3" +echo "END" +sleep 5 +echo "CHART aclk_test2.newcol '' 'Generate new collector/chart event' 'units' aclk_test aclk_test lines 900001 1" +echo "DIMENSION aclk1 '' percentage-of-absolute 1 1" + +sleep 5 +exit 0 # Signal that we are done diff --git a/aclk/tests/install-fake-charts.d.sh.in b/aclk/tests/install-fake-charts.d.sh.in new file mode 100644 index 0000000000..ac002a2bd7 --- /dev/null +++ b/aclk/tests/install-fake-charts.d.sh.in @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +TARGET="@pluginsdir_POST@" +BASE="$(cd "$(dirname "$0")" && pwd)" + +cp "$BASE/fake-charts.d.plugin" "$TARGET/charts.d.plugin" |