Hi Guys,
After searching many thing , I finally have a fully fonctionnal snmp on my wetek-play 2
first updating config.sub in net-snmp source , then the most important part
1- Don't enable mini agent !!!
LibreELEC.tv/package.mk at master · LibreELEC/LibreELEC.tv · GitHub
line 46.
Because mini agent is just useless
Code
'The "mini-agent" is effectively the standard agent, but with almost
none of the MIB modules included. (Just those "essential" for the
operation of the agent).
system mibs was not present , for exemple , snmpwalk with mini agent : 135 lines , without : 3000+
2- compile statically because libsnmpagent don't link as a separate .so file
Diff
diff --git a/packages/addons/service/net-snmp/package.mk b/packages/addons/service/net-snmp/package.mk
index 7994d8a..3a3d6ec 100644
--- a/packages/addons/service/net-snmp/package.mk
+++ b/packages/addons/service/net-snmp/package.mk
@@ -40,9 +40,8 @@ PKG_CONFIGURE_OPTS_TARGET="--with-defaults \
--disable-deprecated \
--disable-snmptrapd-subagent \
--disable-scripts \
- --enable-static=no \
- --enable-shared=yes \
- --enable-mini-agent \
+ --enable-static=yes \
+ --enable-shared=no \
--with-nl \
--with-logfile=/storage/.kodi/userdata/addon_data/${PKG_ADDON_ID} \
--with-persistent-directory=/storage/.kodi/userdata/addon_data/${PKG_ADDON_ID} \
@@ -68,8 +67,8 @@ addon() {
mkdir -p $ADDON_BUILD/$PKG_ADDON_ID/lib
cp -r $PKG_BUILD/.$TARGET_NAME/storage/.kodi/addons/${PKG_ADDON_ID}/bin $PKG_BUILD/.$TARGET_NAME/storage/.kodi/userdata/addon_data/${PKG_ADDON_ID}/share $ADDON_BUILD/$PKG_ADDON_ID/
#Do not copy symlinks
- find $PKG_BUILD/.$TARGET_NAME/storage/.kodi/addons/${PKG_ADDON_ID}/lib/ -type f -name '*.so.*' -exec cp '{}' $ADDON_BUILD/$PKG_ADDON_ID/lib/ \;
+ #find $PKG_BUILD/.$TARGET_NAME/storage/.kodi/addons/${PKG_ADDON_ID}/lib/ -type f -name '*.so.*' -exec cp '{}' $ADDON_BUILD/$PKG_ADDON_ID/lib/ \;
#remove all but major version from so file
- for f in $ADDON_BUILD/$PKG_ADDON_ID/lib/*.so.* ; do mv "$f" "${f%.*.*}" ; done
+ #for f in $ADDON_BUILD/$PKG_ADDON_ID/lib/*.so.* ; do mv "$f" "${f%.*.*}" ; done
}
Display More
I can submit a pull request if needed !