From 0a08068f736efe56b4799e1f1f90539d257deb71 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Mon, 22 Aug 2011 16:37:22 +1000 Subject: [PATCH] Tests - eventscripts - new Samba TCP port checking test - no nmap This one should fall back to netstat. Signed-off-by: Martin Schwenke --- .../simple/50.samba.monitor.110.sh | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 tests/eventscripts/simple/50.samba.monitor.110.sh diff --git a/tests/eventscripts/simple/50.samba.monitor.110.sh b/tests/eventscripts/simple/50.samba.monitor.110.sh new file mode 100755 index 00000000..ca30d16f --- /dev/null +++ b/tests/eventscripts/simple/50.samba.monitor.110.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +. "${EVENTSCRIPTS_TESTS_DIR}/common.sh" + +define_test "port 139 down, ctdb checktcpport/nmap not implemented, debug" + +ctdb_not_implemented "checktcpport" +export FAKE_NMAP_NOT_FOUND="yes" + +# This has to go before the setup, otherwise it will write a dud file. +export CTDB_DEBUGLEVEL=4 + +setup_nmap_output_filter + +setup_samba +tcp_port_down 139 + +required_result 1 <