Hi Nathan,
pardon me for not reviewing the zbxpcp build bits earlier but I think we
should make a few changes there. I also wrote a zbxpcp(3) man page which
we can add while at it.
The patch below changes to the zbxpcp installation target. The below
find stanza shows that typically such modules are installed under
/usr/lib(64)/<package>/modules. Since we're dealing with a Zabbix agent
module and the example in the Zabbix loadable modules page use
/usr/local/lib/zabbix/agent/ I'm proposing the directory below.
This also fixes "make install" failure occurring currently.
This might require spec changes but see the following patches as well.
$ sudo find /usr /var -type d -name modules -print
---
src/pcp2zabbix/src/GNUmakefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pcp2zabbix/src/GNUmakefile b/src/pcp2zabbix/src/GNUmakefile
index 6d5f2b3..cc15204 100644
--- a/src/pcp2zabbix/src/GNUmakefile
+++ b/src/pcp2zabbix/src/GNUmakefile
@@ -23,8 +23,8 @@ VERSION_SCRIPT = exports
LIBTARGET = zbxpcp.$(DSOSUFFIX)
LLDLIBS = $(PCPLIB)
-ZABBIX_DIR = /var/lib/zabbix
-MODULE_DIR = $(ZABBIX_DIR)/modules
+ZABBIX_DIR = $(PCP_LIB_DIR)/zabbix
+MODULE_DIR = $(ZABBIX_DIR)/agent
default: $(LIBTARGET)
Thanks,
--
Marko Myllynen
|