mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-30 01:04:39 +02:00
Checks if DB2 LUW is running on a server
The check if performing by doing a grep on db2sysc, the DB2 instance process.
This commit is contained in:
parent
1426ff16f9
commit
1b9920fde9
@ -144,10 +144,28 @@
|
|||||||
#fi
|
#fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
#
|
||||||
|
# Test : DB2-001
|
||||||
|
# Description : Checks if a DB2 instance is currently runnigng
|
||||||
|
Register --test-no DBS-1804 --weight L --network NO --description "Checking active DB2 instances"
|
||||||
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
|
FIND=`${PSBINARY} ax | egrep "db2sysc" | grep -v "grep"`
|
||||||
|
if [ "${FIND}" = "" ]; then
|
||||||
|
Display --indent 2 --text "- DB2 instance running" --result "NOT FOUND" --color WHITE
|
||||||
|
LogText "Result: No DB2 instances are running"
|
||||||
|
else
|
||||||
|
Display --indent 2 --text "- DB2 instance running" --result "FOUND" --color GREEN
|
||||||
|
LogText "Result: At least one DB2 instance is running"
|
||||||
|
DB2_RUNNING=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
#
|
||||||
|
#################################################################################
|
||||||
#
|
#
|
||||||
Report "mysql_running=${MYSQL_RUNNING}"
|
Report "mysql_running=${MYSQL_RUNNING}"
|
||||||
Report "oracle_running=${ORACLE_RUNNING}"
|
Report "oracle_running=${ORACLE_RUNNING}"
|
||||||
Report "postgresql_running=${POSTGRESQL_RUNNING}"
|
Report "postgresql_running=${POSTGRESQL_RUNNING}"
|
||||||
|
Report "db2_running=${DB2_RUNNING}"
|
||||||
|
|
||||||
wait_for_keypress
|
wait_for_keypress
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user