diff --git a/include/tests_file_integrity b/include/tests_file_integrity index b6ae7950..da578971 100644 --- a/include/tests_file_integrity +++ b/include/tests_file_integrity @@ -161,15 +161,14 @@ Register --test-no FINT-4328 --weight L --network NO --category security --description "OSSEC syscheck daemon running" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Checking if OSSEC syscheck daemon is running" - IsRunning ossec-syscheckd - if [ ${RUNNING} -eq 1 ]; then - LogText "Result: syscheck (OSSEC) installed" + if IsRunning "ossec-syscheckd"; then + LogText "Result: syscheck (OSSEC) active" Report "file_integrity_tool[]=ossec" FILE_INT_TOOL="ossec-syscheck" FILE_INT_TOOL_FOUND=1 Display --indent 4 --text "- OSSEC (syscheck)" --result "${STATUS_FOUND}" --color GREEN else - LogText "Result: syscheck (OSSEC) not installed" + LogText "Result: syscheck (OSSEC) is not active" if IsVerbose; then Display --indent 4 --text "- OSSEC" --result "${STATUS_NOT_FOUND}" --color WHITE; fi fi fi