SNMP frontend. New snmp_lib.[ch] and rearranged code into lib

Test: renamed WITH_SNMP -> ENABLE_SNMP
This commit is contained in:
Olof hagsand 2022-05-14 17:13:10 +02:00
parent 1f8b82e8e1
commit 62a32faf9c
9 changed files with 349 additions and 214 deletions

View file

@ -212,7 +212,7 @@ fi
: ${SNMPCHECK:=true}
if $SNMPCHECK; then
if [ "${WITH_NETSNMP}" == "yes" ]; then
if [ "${ENABLE_NETSNMP}" == "yes" ]; then
pgrep snmpd > /dev/null
if [ $? != 0 ]; then
echo -e "\e[31m\nenable-netsnmp set but snmpd not running, start with:"