1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
# Test that the ps plugin can show zeek processes on all nodes, or just a
# specified node.
#
# This test needs to be serialized because we are starting Zeek and it listens
# on a port (which could interfere with other tests that need to do that).
# @TEST-SERIALIZE: listen
#
# @TEST-EXEC: bash %INPUT
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-ps-output btest-diff all.out
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-ps-output btest-diff onenode.out
# @TEST-EXEC: TEST_DIFF_CANONIFIER=$SCRIPTS/diff-ps-output btest-diff stopped.out
. zeekctl-test-setup
while read line; do installfile $line; done << EOF
etc/zeekctl.cfg__no_email
etc/node.cfg__no_netifs
EOF
zeekctl install
zeekctl start
# get status of all nodes
zeekctl ps.zeek > all.out
# get status of one node
zeekctl ps.zeek worker-2 > onenode.out
zeekctl stop
# no zeek processes running
zeekctl ps.zeek > stopped.out
|