gnu: Add zabbix-agent2.

* gnu/packages/monitoring.scm (zabbix-agent2): New variable.
This commit is contained in:
Marius Bakke 2022-12-05 15:06:03 +01:00
parent 9e0f224733
commit 3e0070360f
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -54,6 +54,7 @@ (define-module (gnu packages monitoring)
#: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 @@ (define-public zabbix-agentd
'((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)