Clixon SNMP frontend update

Integrated netsnmp agent and clixon event handling, made a workaround of fdset:s
used in the netsnmp API with sockets used in Clixon
Added a hardcoded MIB OID handler as subagent
Added libnetsnmpagent to autotools dependency check
New OE_SNMP error code
This commit is contained in:
Olof hagsand 2022-04-25 10:59:18 +02:00
parent 16d21bbe3b
commit e32cb81b49
5 changed files with 244 additions and 46 deletions

View file

@ -289,8 +289,9 @@ AC_MSG_RESULT(checking netsnmp is enabled: $enable_netsnmp)
if test "$enable_netsnmp" = "yes"; then
# All libs are:
# libnetsnmp, libnetsnmpmibs, libnetsnmpagent, libnetsnmptrapd, libnetsnmphelpers
AC_CHECK_LIB(netsnmp, snmp_open)
# libnetsnmp, libnetsnmpagent, libnetsnmpmibs, libnetsnmptrapd, libnetsnmphelpers
AC_CHECK_LIB(netsnmp, init_snmp)
AC_CHECK_LIB(netsnmpagent, init_agent)
AC_CHECK_HEADERS(net-snmp/net-snmp-config.h,[], AC_MSG_ERROR([snmp is missing]))
fi