mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
package/skeleton-init-finit: add support for monitoring net-snmp
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user