diff options
author | Marius Bakke <marius.bakke@usit.uio.no> | 2021-02-06 10:33:55 +0100 |
---|---|---|
committer | Marius Bakke <marius@gnu.org> | 2021-02-06 13:13:57 +0100 |
commit | d9a7727d37648d150200032f320ac1e7c1a00a1e (patch) | |
tree | 86fbf68bcae1c1aff243ea1d7c7e8a35c852ebf6 /gnu/packages | |
parent | 2c46caad27484685b95a83290753420daf9ee331 (diff) | |
download | guix-d9a7727d37648d150200032f320ac1e7c1a00a1e.tar guix-d9a7727d37648d150200032f320ac1e7c1a00a1e.tar.gz |
gnu: Add zabbix-cli.
* gnu/packages/monitoring.scm (zabbix-cli): New public variable.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/monitoring.scm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/monitoring.scm b/gnu/packages/monitoring.scm index adbd0447d0..f670eaa0e1 100644 --- a/gnu/packages/monitoring.scm +++ b/gnu/packages/monitoring.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2018, 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com> ;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com> ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org> +;;; Copyright © 2021 Marius Bakke <marius@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -46,6 +47,7 @@ #:use-module (gnu packages gettext) #:use-module (gnu packages image) #:use-module (gnu packages mail) + #:use-module (gnu packages ncurses) #:use-module (gnu packages networking) #:use-module (gnu packages libevent) #:use-module (gnu packages pcre) @@ -243,6 +245,43 @@ solution (client-side agent)") (description "This package provides a distributed monitoring solution (server-side)"))) +(define-public zabbix-cli + (package + (name "zabbix-cli") + (version "2.2.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/unioslo/zabbix-cli") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0wzmrn8p09ksqhhgawr179c4az7p2liqr0l4q2dra62bxliawyqz")))) + (build-system python-build-system) + (arguments + '(#:phases (modify-phases %standard-phases + (add-after 'unpack 'use-absolute-ncurses + (lambda _ + (substitute* "bin/zabbix-cli" + (("'clear'") + (string-append "'" (which "clear") "'"))))) + (add-after 'unpack 'patch-setup.py + (lambda _ + ;; Install data_files to $out/share instead of /usr/share. + (substitute* "setup.py" + (("/usr/") ""))))))) + (inputs + `(("clear" ,ncurses) + ("python-requests" ,python-requests))) + (home-page "https://github.com/unioslo/zabbix-cli") + (synopsis "Command-line interface to Zabbix") + (description + "@command{zabbix-cli} is a command-line client for the Zabbix +monitoring system. It can configure and display various aspects of Zabbix +through a text-based interface.") + (license license:gpl3+))) + (define-public darkstat (package (name "darkstat") |