Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2019-08-28 16:36:59 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-08-28 16:36:59 +0300
commit61404c1bf335c5a1f3a82267346346446589868f (patch)
tree38881c6b52459c3c228bf71d5975e269a661db4b /include/tests_tooling
parent7469b4aa7229bfe96e0620bfd0268d5e9dc71843 (diff)
[TOOL-5160] added support for OSSEC agent daemon
Diffstat (limited to 'include/tests_tooling')
-rw-r--r--include/tests_tooling20
1 files changed, 16 insertions, 4 deletions
diff --git a/include/tests_tooling b/include/tests_tooling
index 2090e99e..15fa3540 100644
--- a/include/tests_tooling
+++ b/include/tests_tooling
@@ -375,17 +375,29 @@
#
# Test : TOOL-5160
# Description : Check for OSSEC
- Register --test-no TOOL-5126 --weight L --network NO --category security --description "Check for active OSSEC analysis daemon"
+ Register --test-no TOOL-5126 --weight L --network NO --category security --description "Check for active OSSEC daemon"
if [ ${SKIPTEST} -eq 0 ]; then
-
+ # Server side
if IsRunning "ossec-analysisd"; then
IDS_IPS_TOOL_FOUND=1
- LogText "Result: OSSEC analysis daemon is active"
Report "ids_ips_tooling[]=ossec"
- Display --indent 2 --text "- Checking presence of OSSEC" --result "${STATUS_FOUND}" --color GREEN
+ Report "ids_ips_tooling[]=ossec-analysisd"
+ LogText "Result: OSSEC analysis daemon is active"
+ Display --indent 2 --text "- Checking presence of OSSEC (analysis)" --result "${STATUS_FOUND}" --color GREEN
else
LogText "Result: OSSEC analysis daemon not active"
fi
+
+ # Client side
+ if IsRunning "ossec-agentd"; then
+ IDS_IPS_TOOL_FOUND=1
+ Report "ids_ips_tooling[]=ossec"
+ Report "ids_ips_tooling[]=ossec-agentd"
+ LogText "Result: OSSEC agent daemon is active"
+ Display --indent 2 --text "- Checking presence of OSSEC (agent)" --result "${STATUS_FOUND}" --color GREEN
+ else
+ LogText "Result: OSSEC agent daemon not active"
+ fi
fi
#
#################################################################################