From 17137408d29d004e7ec1512ab7e6b7d30ff28ebe Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Fri, 26 Jul 2019 11:32:48 +0200 Subject: Use IsRunning exit code instead of variable --- include/tests_snmp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'include/tests_snmp') diff --git a/include/tests_snmp b/include/tests_snmp index 8b82d9e8..20c61f3b 100644 --- a/include/tests_snmp +++ b/include/tests_snmp @@ -35,9 +35,7 @@ Register --test-no SNMP-3302 --weight L --network NO --category security --description "Check for running SNMP daemon" if [ ${SKIPTEST} -eq 0 ]; then LogText "Test: Searching for a SNMP daemon" - # Check running processes - IsRunning snmpd - if [ ${RUNNING} -eq 1 ]; then + if IsRunning "snmpd"; then SNMP_DAEMON_RUNNING=1 LogText "Result: SNMP daemon is running" Display --indent 2 --text "- Checking running SNMP daemon" --result "${STATUS_FOUND}" --color GREEN -- cgit v1.2.3