mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
gnu: Add zabbix-agent2.
* gnu/packages/monitoring.scm (zabbix-agent2): New variable.
This commit is contained in:
parent
9e0f224733
commit
3e0070360f
1 changed files with 27 additions and 0 deletions
|
@ -54,6 +54,7 @@ (define-module (gnu packages monitoring)
|
||||||
#:use-module (gnu packages gd)
|
#:use-module (gnu packages gd)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#:use-module (gnu packages gnome) ;libnotify
|
#:use-module (gnu packages gnome) ;libnotify
|
||||||
|
#:use-module (gnu packages golang)
|
||||||
#:use-module (gnu packages image)
|
#:use-module (gnu packages image)
|
||||||
#:use-module (gnu packages mail)
|
#:use-module (gnu packages mail)
|
||||||
#:use-module (gnu packages ncurses)
|
#:use-module (gnu packages ncurses)
|
||||||
|
@ -209,6 +210,32 @@ (define-public zabbix-agentd
|
||||||
'((release-monitoring-url . "https://www.zabbix.com/download_sources")
|
'((release-monitoring-url . "https://www.zabbix.com/download_sources")
|
||||||
(upstream-name . "zabbix")))))
|
(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
|
(define-public zabbix-server
|
||||||
(package
|
(package
|
||||||
(inherit zabbix-agentd)
|
(inherit zabbix-agentd)
|
||||||
|
|
Loading…
Reference in a new issue