Fix SNMP configmap libsnmpAuditPlugin
When applying the SNMP app, the ConfigMap "snmpd-etc-config" was found to refer to a non-existing directory. This commit replaces references to /usr/lib64 with /usr/lib. Additionally, it removes unused definitions. Test plan: PASS: Build stx-snmp docker image. PASS: Install and configure snmp in a local environment. Run kubectl get cm -n kube-system snmpd-etc-config -o yaml and verify that this is using /usr/lib instead of /usr/lib64 closes-bug: 2078734 Change-Id: I83e2aca0b8185f5853ca33d7e33b73d2b10668d5 Signed-off-by: fperez <fabrizio.perez@windriver.com>
This commit is contained in:
parent
6f5d8ee659
commit
00b9c69cd5
@ -13,7 +13,7 @@ master agentx
|
||||
agentXSocket tcp:705
|
||||
|
||||
|
||||
dlmod snmpAuditPlugin /usr/lib64/libsnmpAuditPlugin.so
|
||||
dlmod snmpAuditPlugin /usr/lib/libsnmpAuditPlugin.so
|
||||
|
||||
# Insert the snmpAudit hander into specific sections of the mib tree
|
||||
injectHandler snmpAudit null
|
||||
|
@ -8,7 +8,7 @@ LIBCGTSAGENT_SO := libsnmpAuditPlugin.so
|
||||
MAJOR ?= 1
|
||||
MINOR ?= 0
|
||||
PATCH ?= 0
|
||||
DESTDIR ?= /usr/lib64
|
||||
DESTDIR ?= /usr/lib
|
||||
|
||||
build: lib
|
||||
|
||||
@ -24,7 +24,7 @@ clean:
|
||||
@rm -f $(OBJ) *.o *.so.*
|
||||
|
||||
install:
|
||||
install -m 755 -d $(DESTDIR)$(LIB_DIR)
|
||||
install -m 755 $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DESTDIR)$(LIB_DIR)
|
||||
ln -s $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DESTDIR)$(LIB_DIR)/$(LIBCGTSAGENT_SO).$(MAJOR)
|
||||
ln -s $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DESTDIR)$(LIB_DIR)/$(LIBCGTSAGENT_SO)
|
||||
install -m 755 -d $(DESTDIR)
|
||||
install -m 755 $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DESTDIR)
|
||||
ln -s $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DESTDIR)/$(LIBCGTSAGENT_SO).$(MAJOR)
|
||||
ln -s $(LIBCGTSAGENT_SO).$(MAJOR).$(MINOR).$(PATCH) $(DESTDIR)/$(LIBCGTSAGENT_SO)
|
||||
|
Loading…
Reference in New Issue
Block a user