Bug 234831 - net-mgmt/zabbix34-agent libcurl support
Summary: net-mgmt/zabbix34-agent libcurl support
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-10 20:34 UTC by Marcin Gryszkalis
Modified: 2019-01-11 15:04 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (pg)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Gryszkalis 2019-01-10 20:34:41 UTC
the zabbix agentd doesn't enable curl option (this causes removal of https checks).

The message one can see is:
Support for HTTPS check was not compiled in.

The problem probably affects other zabbix agent versions too.

I successfully patched Makefiles for zabbix34-agent and zabbix34-server (master port) but I'm not sure if it's the right thing to do with master/slave ports.


agent:

--- Makefile.orig       2019-01-10 15:15:54.828171000 +0100
+++ Makefile    2019-01-10 15:16:10.502148000 +0100
@@ -8,7 +8,7 @@
 MASTERDIR=     ${.CURDIR}/../zabbix34-server
 PLIST=         ${PKGDIR}/pkg-plist.agent
 
-OPTIONS_DEFINE=                IPV6
+OPTIONS_DEFINE=                IPV6 CURL
 OPTIONS_DEFAULT=       OPENSSL
 
 .include "${MASTERDIR}/Makefile"


server:

--- Makefile.orig       2019-01-10 21:25:44.617241000 +0100
+++ Makefile    2019-01-10 15:22:39.515339000 +0100
@@ -124,6 +124,9 @@
 .elif ${ZABBIX_BUILD} == "agent"
 OPTIONS_SINGLE=        SSL
 OPTIONS_SINGLE_SSL=    OPENSSL GNUTLS
+CURL_DESC=      Support for web monitoring
+CURL_CONFIGURE_WITH=    libcurl
+CURL_LIB_DEPENDS=   libcurl.so:ftp/curl
 .endif # if ${ZABBIX_BUILD} != "agent" && ${ZABBIX_BUILD} != "java"
 
 IPV6_CONFIGURE_ENABLE= ipv6
Comment 1 pg 2019-01-11 13:23:42 UTC
The curl options is huge so off by default. If you are strictly using packages, I would suggest using poudriere [1] to create a custom package repository, allowing you to customise port OPTIONS while continuing to use packages.
Comment 2 Marcin Gryszkalis 2019-01-11 15:04:28 UTC
(In reply to pg from comment #1)

I do not care if it's on or off by default. It just doesn't exist in -agent port (it's available only in -server port). 

I also don't use packages.