guix-glicid/glicid/packages/monitoring.scm

58 lines
2.9 KiB
Scheme
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(define-module (glicid packages monitoring)
#:use-module (guix packages)
#:use-module (guix utils)
#:use-module (gnu packages)
#:use-module ((gnu packages monitoring) #:prefix gnu:)
#:use-module (guix download))
(define %zabbix-version "6.0.38")
(define %zabbix-hash "07xd3jsqgbmkb5c4p7w2rbk6zzgcpnbs5dgvca0m5f16kpjrhizp")
(define-public zabbix-agentd
(package
(inherit gnu:zabbix-agentd)
(version %zabbix-version)
(source
(origin
(method url-fetch)
(uri (string-append "https://cdn.zabbix.com/zabbix/sources/stable/" (version-major+minor version) "/zabbix-" version ".tar.gz"))
(sha256 (base32 %zabbix-hash))
;; YD upstream now able to cope with 2.17 timescaledb
;; (patches (search-patches "glicid/packages/patches/glicid-zabbix-timescaledb-2.17.patch"))
;;
(modules '((guix build utils)))
(snippet
'(substitute* '("src/zabbix_proxy/proxy.c" "src/zabbix_server/server.c")
(("/usr/sbin/fping6?") "/run/setuid-programs/fping")))))))
(define-public zabbix-agent2
(package
(inherit gnu:zabbix-agent2)
(version %zabbix-version)
(source
(origin
(method url-fetch)
(uri (string-append "https://cdn.zabbix.com/zabbix/sources/stable/" (version-major+minor version) "/zabbix-" version ".tar.gz"))
(sha256 (base32 %zabbix-hash))
(patches (search-patches "glicid/packages/patches/glicid-zabbix-timescaledb-2.17.patch"))
(modules '((guix build utils)))
(snippet
'(substitute* '("src/zabbix_proxy/proxy.c" "src/zabbix_server/server.c")
(("/usr/sbin/fping6?") "/run/setuid-programs/fping")))))))
(define-public zabbix-server
(package
(inherit gnu:zabbix-server)
(version %zabbix-version)
(source
(origin
(method url-fetch)
(uri (string-append "https://cdn.zabbix.com/zabbix/sources/stable/" (version-major+minor version) "/zabbix-" version ".tar.gz"))
(sha256 (base32 %zabbix-hash))
(patches (search-patches "glicid/packages/patches/glicid-zabbix-timescaledb-2.17.patch"))
(modules '((guix build utils)))
(snippet
'(substitute* '("src/zabbix_proxy/proxy.c" "src/zabbix_server/server.c")
(("/usr/sbin/fping6?") "/run/setuid-programs/fping")))))))