package/skeleton-init-finit: add support for monitoring net-snmp

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg
2023-03-06 10:50:58 +01:00
parent 5a003c40c3
commit d572bc78f3
2 changed files with 13 additions and 0 deletions
@@ -107,6 +107,14 @@ endef
SKELETON_INIT_FINIT_TARGET_FINALIZE_HOOKS += SKELETON_INIT_FINIT_SET_MSTPD
endif
ifeq ($(BR2_PACKAGE_NETSNMP),y)
define SKELETON_INIT_FINIT_SET_NETSNMP
cp $(SKELETON_INIT_FINIT_AVAILABLE)/snmpd.conf $(FINIT_D)/available/
ln -sf ../available/snmpd.conf $(FINIT_D)/enabled/snmpd.conf
endef
SKELETON_INIT_FINIT_TARGET_FINALIZE_HOOKS += SKELETON_INIT_FINIT_SET_NETSNMP
endif
ifeq ($(BR2_PACKAGE_NGINX),y)
define SKELETON_INIT_FINIT_SET_NGINX
cp $(SKELETON_INIT_FINIT_AVAILABLE)/nginx.conf $(FINIT_D)/available/
@@ -0,0 +1,5 @@
# Also needs the /var/run/agentx directory before starting
service [2345789] env:-/etc/default/snmpd /usr/sbin/snmpd -f -LOw \
-I -system_mib,smux,mteTrigger,mteTriggerConf \
-p /run/snmpd.pid $SNMPD_ARGS \
-- Net-SNMP daemon