mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-17 00:18:16 -05:00
gnu: Add zabbix-cli.
* gnu/packages/monitoring.scm (zabbix-cli): New public variable.
This commit is contained in:
parent
2c46caad27
commit
d9a7727d37
1 changed files with 39 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
;;; Copyright © 2018, 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
|
;;; Copyright © 2018, 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
|
||||||
;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
|
;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
|
||||||
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
||||||
|
;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -46,6 +47,7 @@ (define-module (gnu packages monitoring)
|
||||||
#:use-module (gnu packages gettext)
|
#:use-module (gnu packages gettext)
|
||||||
#: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 networking)
|
#:use-module (gnu packages networking)
|
||||||
#:use-module (gnu packages libevent)
|
#:use-module (gnu packages libevent)
|
||||||
#:use-module (gnu packages pcre)
|
#:use-module (gnu packages pcre)
|
||||||
|
@ -243,6 +245,43 @@ (define-public zabbix-server
|
||||||
(description "This package provides a distributed monitoring
|
(description "This package provides a distributed monitoring
|
||||||
solution (server-side)")))
|
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
|
(define-public darkstat
|
||||||
(package
|
(package
|
||||||
(name "darkstat")
|
(name "darkstat")
|
||||||
|
|
Loading…
Reference in a new issue