# 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