diff options
author | Marius Bakke <marius@gnu.org> | 2022-12-05 15:06:03 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2022-12-07 20:08:35 +0100 |
commit | 3e0070360fd9c02c10d188f0c62af4c5c652d6b4 (patch) | |
tree | 2680ce2fea178709c0e8679376ab1b59d35a23ca /gnu | |
parent | 9e0f2247331bf2a6b138217abac2e52de1f70d7c (diff) | |
download | guix-3e0070360fd9c02c10d188f0c62af4c5c652d6b4.tar.gz |
gnu: Add zabbix-agent2.
* gnu/packages/monitoring.scm (zabbix-agent2): New variable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/monitoring.scm | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index e89155cc82..37b9335ac8 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -54,6 +54,7 @@ #:use-module (gnu packages gd) #:use-module (gnu packages gettext) #:use-module (gnu packages gnome) ;libnotify + #:use-module (gnu packages golang) #:use-module (gnu packages image) #:use-module (gnu packages mail) #:use-module (gnu packages ncurses) @@ -209,6 +210,32 @@ solution (client-side agent)") '((release-monitoring-url . "https://www.zabbix.com/download_sources") (upstream-name . "zabbix"))))) +(define-public zabbix-agent2 + (package/inherit zabbix-agentd + (name "zabbix-agent2") + (arguments + (list #:configure-flags + #~(list "--disable-agent" + "--enable-agent2" + "--enable-ipv6" + "--with-libpcre2" + ;; agent2 only supports OpenSSL. + (string-append "--with-openssl=" + (dirname (dirname + (search-input-file + %build-inputs "lib/libssl.so"))))) + #:make-flags + #~'("BUILD_TIME=00:00:01" "BUILD_DATE=Jan 1 1970") + #:phases + #~(modify-phases %standard-phases + (add-before 'build 'set-HOME + (lambda _ + (setenv "HOME" "/tmp")))))) + (native-inputs + (list go pkg-config)) + (inputs + (list openssl pcre2 zlib)))) + (define-public zabbix-server (package (inherit zabbix-agentd) |