SNMP frontend. New snmp_lib.[ch] and rearranged code into lib
Test: renamed WITH_SNMP -> ENABLE_SNMP
This commit is contained in:
parent
1f8b82e8e1
commit
62a32faf9c
9 changed files with 349 additions and 214 deletions
|
|
@ -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:"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue