2016-11-30 22:26:57 +00:00
|
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
2021-05-28 20:57:46 +00:00
|
|
|
|
;;; Copyright © 2016, 2021, 2021 Ludovic Courtès <ludo@gnu.org>
|
2018-01-06 06:13:41 +00:00
|
|
|
|
;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
|
2020-03-15 14:07:14 +00:00
|
|
|
|
;;; Copyright © 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
|
2021-01-02 19:23:35 +00:00
|
|
|
|
;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2018-09-02 16:14:37 +00:00
|
|
|
|
;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
|
2020-07-11 09:09:44 +00:00
|
|
|
|
;;; Copyright © 2018, 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
|
2020-04-12 05:55:10 +00:00
|
|
|
|
;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
|
2020-04-28 08:50:10 +00:00
|
|
|
|
;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
|
2022-01-26 08:26:55 +00:00
|
|
|
|
;;; Copyright © 2021, 2022 Marius Bakke <marius@gnu.org>
|
2021-05-18 20:33:08 +00:00
|
|
|
|
;;; Copyright © 2021 Stefan Reichör <stefan@xsteve.at>
|
2021-09-01 20:43:35 +00:00
|
|
|
|
;;; Copyright © 2021 Raphaël Mélotte <raphael.melotte@mind.be>
|
2016-11-30 22:26:57 +00:00
|
|
|
|
;;;
|
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
|
;;; your option) any later version.
|
|
|
|
|
;;;
|
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
|
;;;
|
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
|
(define-module (gnu packages monitoring)
|
2021-12-18 03:31:08 +00:00
|
|
|
|
#:use-module (guix gexp)
|
2016-11-30 22:26:57 +00:00
|
|
|
|
#:use-module (guix packages)
|
|
|
|
|
#:use-module (guix download)
|
2018-06-18 06:19:33 +00:00
|
|
|
|
#:use-module (guix git-download)
|
2016-11-30 22:26:57 +00:00
|
|
|
|
#:use-module ((guix licenses) #:prefix license:)
|
|
|
|
|
#:use-module (guix build-system perl)
|
2017-12-18 18:27:59 +00:00
|
|
|
|
#:use-module (guix build-system python)
|
2016-11-30 22:26:57 +00:00
|
|
|
|
#:use-module (guix build-system gnu)
|
2018-06-18 06:19:33 +00:00
|
|
|
|
#:use-module (guix build-system go)
|
2018-08-31 02:50:33 +00:00
|
|
|
|
#:use-module (guix utils)
|
2020-04-28 08:50:10 +00:00
|
|
|
|
#:use-module (gnu packages)
|
2018-01-06 06:13:41 +00:00
|
|
|
|
#:use-module (gnu packages admin)
|
2018-11-05 01:46:56 +00:00
|
|
|
|
#:use-module (gnu packages autotools)
|
2016-11-30 22:26:57 +00:00
|
|
|
|
#:use-module (gnu packages base)
|
2018-08-31 02:50:33 +00:00
|
|
|
|
#:use-module (gnu packages curl)
|
2018-03-13 18:47:41 +00:00
|
|
|
|
#:use-module (gnu packages check)
|
2016-11-30 22:26:57 +00:00
|
|
|
|
#:use-module (gnu packages compression)
|
2018-08-31 02:50:33 +00:00
|
|
|
|
#:use-module (gnu packages databases)
|
2017-12-18 18:29:45 +00:00
|
|
|
|
#:use-module (gnu packages django)
|
2016-11-30 22:26:57 +00:00
|
|
|
|
#:use-module (gnu packages gd)
|
2018-11-05 01:46:56 +00:00
|
|
|
|
#:use-module (gnu packages gettext)
|
2016-12-31 19:02:59 +00:00
|
|
|
|
#:use-module (gnu packages image)
|
|
|
|
|
#:use-module (gnu packages mail)
|
2021-02-06 09:33:55 +00:00
|
|
|
|
#:use-module (gnu packages ncurses)
|
2018-08-31 02:50:33 +00:00
|
|
|
|
#:use-module (gnu packages networking)
|
|
|
|
|
#:use-module (gnu packages libevent)
|
|
|
|
|
#:use-module (gnu packages pcre)
|
2017-12-18 18:29:13 +00:00
|
|
|
|
#:use-module (gnu packages perl)
|
2020-04-28 08:50:10 +00:00
|
|
|
|
#:use-module (gnu packages pkg-config)
|
2017-12-18 18:29:45 +00:00
|
|
|
|
#:use-module (gnu packages python)
|
2021-10-01 19:49:13 +00:00
|
|
|
|
#:use-module (gnu packages python-build)
|
2017-12-18 18:29:45 +00:00
|
|
|
|
#:use-module (gnu packages python-web)
|
gnu: Separate Python core packages from the rest.
* gnu/packages/python.scm: Move hundreds of package definitions from here...
* gnu/packages/python-xyz.scm: ...to this new module.
* gnu/local.mk (GNU_SYSTEM_MODULES): Add it.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/android.scm,
gnu/packages/audio.scm,
gnu/packages/backup.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/calendar.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/cluster.scm,
gnu/packages/compression.scm,
gnu/packages/connman.scm,
gnu/packages/crypto.scm,
gnu/packages/cups.scm,
gnu/packages/databases.scm,
gnu/packages/dav.scm,
gnu/packages/direct-connect.scm,
gnu/packages/disk.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/docker.scm,
gnu/packages/ebook.scm,
gnu/packages/elf.scm,
gnu/packages/emacs.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm,
gnu/packages/finance.scm,
gnu/packages/fltk.scm,
gnu/packages/fontutils.scm,
gnu/packages/freedesktop.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/geo.scm,
gnu/packages/gl.scm,
gnu/packages/glib.scm,
gnu/packages/gnome.scm,
gnu/packages/gnupg.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/gtk.scm,
gnu/packages/ham-radio.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/irc.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/kde-frameworks.scm,
gnu/packages/key-mon.scm,
gnu/packages/libffi.scm,
gnu/packages/libreoffice.scm,
gnu/packages/libusb.scm,
gnu/packages/lirc.scm,
gnu/packages/logging.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/mate.scm,
gnu/packages/maths.scm,
gnu/packages/medical.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mp3.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/nutrition.scm,
gnu/packages/openldap.scm,
gnu/packages/openstack.scm,
gnu/packages/package-management.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/photo.scm,
gnu/packages/polkit.scm,
gnu/packages/protobuf.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/qt.scm,
gnu/packages/rdf.scm,
gnu/packages/ruby.scm,
gnu/packages/search.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/simulation.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/storage.scm,
gnu/packages/sync.scm,
gnu/packages/terminals.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tls.scm,
gnu/packages/tor.scm,
gnu/packages/tryton.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/virtualization.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wicd.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xorg.scm: Update module references.
2019-01-15 13:21:30 +00:00
|
|
|
|
#:use-module (gnu packages python-xyz)
|
2020-04-28 08:50:10 +00:00
|
|
|
|
#:use-module (gnu packages rrdtool)
|
2018-08-31 02:50:33 +00:00
|
|
|
|
#:use-module (gnu packages time)
|
2020-04-28 08:50:10 +00:00
|
|
|
|
#:use-module (gnu packages tls)
|
|
|
|
|
#:use-module (gnu packages web))
|
2016-11-30 22:26:57 +00:00
|
|
|
|
|
|
|
|
|
(define-public nagios
|
|
|
|
|
(package
|
|
|
|
|
(name "nagios")
|
2020-05-25 21:57:56 +00:00
|
|
|
|
(version "4.4.6")
|
2016-12-31 19:02:59 +00:00
|
|
|
|
;; XXX: Nagios 4.2.x and later bundle a copy of AngularJS.
|
2016-11-30 22:26:57 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"mirror://sourceforge/nagios/nagios-4.x/nagios-"
|
|
|
|
|
version "/nagios-" version ".tar.gz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-05-25 21:57:56 +00:00
|
|
|
|
"1x5hb97zbvkm73q53ydp1gwj8nnznm72q9c4rm6ny7phr995l3db"))
|
2016-11-30 22:26:57 +00:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
;; Ensure reproducibility.
|
gnu: All snippets report errors using exceptions, else return #t.
* gnu/packages/admin.scm, gnu/packages/algebra.scm, gnu/packages/audio.scm,
gnu/packages/backup.scm, gnu/packages/base.scm,
gnu/packages/bioinformatics.scm, gnu/packages/cdrom.scm,
gnu/packages/chez.scm, gnu/packages/code.scm, gnu/packages/compression.scm,
gnu/packages/cross-base.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm,
gnu/packages/databases.scm, gnu/packages/dns.scm, gnu/packages/emacs.scm,
gnu/packages/emulators.scm, gnu/packages/engineering.scm,
gnu/packages/enlightenment.scm, gnu/packages/fpga.scm,
gnu/packages/freedesktop.scm, gnu/packages/ftp.scm, gnu/packages/games.scm,
gnu/packages/gcc.scm, gnu/packages/geo.scm, gnu/packages/ghostscript.scm,
gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm, gnu/packages/graphics.scm, gnu/packages/gtk.scm,
gnu/packages/guile.scm, gnu/packages/irc.scm, gnu/packages/java.scm,
gnu/packages/kerberos.scm, gnu/packages/linux.scm, gnu/packages/lisp.scm,
gnu/packages/lxde.scm, gnu/packages/machine-learning.scm,
gnu/packages/mail.scm, gnu/packages/maths.scm, gnu/packages/messaging.scm,
gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/music.scm,
gnu/packages/netpbm.scm, gnu/packages/networking.scm, gnu/packages/node.scm,
gnu/packages/nvi.scm, gnu/packages/ocaml.scm, gnu/packages/pdf.scm,
gnu/packages/perl.scm, gnu/packages/php.scm, gnu/packages/plotutils.scm,
gnu/packages/pretty-print.scm, gnu/packages/profiling.scm,
gnu/packages/pulseaudio.scm, gnu/packages/python-crypto.scm,
gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/robotics.scm,
gnu/packages/sawfish.scm, gnu/packages/scanner.scm, gnu/packages/scheme.scm,
gnu/packages/scribus.scm, gnu/packages/sdl.scm,
gnu/packages/serialization.scm, gnu/packages/shells.scm,
gnu/packages/slang.scm, gnu/packages/smalltalk.scm, gnu/packages/ssh.scm,
gnu/packages/sync.scm, gnu/packages/syncthing.scm, gnu/packages/tbb.scm,
gnu/packages/terminals.scm, gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm, gnu/packages/textutils.scm,
gnu/packages/tls.scm, gnu/packages/unrtf.scm,
gnu/packages/version-control.scm, gnu/packages/video.scm,
gnu/packages/vpn.scm, gnu/packages/web.scm, gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm:
In all snippets, report errors using exceptions, or else return #t.
2018-03-16 11:47:34 +00:00
|
|
|
|
'(begin
|
|
|
|
|
(substitute* (find-files "cgi" "\\.c$")
|
|
|
|
|
(("__DATE__") "\"1970-01-01\"")
|
|
|
|
|
(("__TIME__") "\"00:00:00\""))
|
|
|
|
|
#t))))
|
2016-11-30 22:26:57 +00:00
|
|
|
|
(build-system gnu-build-system)
|
2016-12-31 19:02:59 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list unzip))
|
2016-11-30 22:26:57 +00:00
|
|
|
|
(inputs
|
|
|
|
|
`(("zlib" ,zlib)
|
|
|
|
|
("libpng-apng" ,libpng)
|
|
|
|
|
("gd" ,gd)
|
|
|
|
|
("perl" ,perl)
|
|
|
|
|
("mailutils" ,mailutils)))
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:configure-flags (list "--sysconfdir=/etc"
|
|
|
|
|
|
|
|
|
|
;; 'include/locations.h.in' defines file
|
|
|
|
|
;; locations, and many things go directly under
|
|
|
|
|
;; LOCALSTATEDIR, hence the extra '/nagios'.
|
|
|
|
|
"--localstatedir=/var/nagios"
|
|
|
|
|
|
|
|
|
|
(string-append
|
|
|
|
|
"--with-mail="
|
|
|
|
|
(assoc-ref %build-inputs "mailutils")
|
|
|
|
|
"/bin/mail"))
|
|
|
|
|
#:make-flags '("all")
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before 'build 'do-not-chown-to-nagios
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Makefiles do 'install -o nagios -g nagios', which
|
|
|
|
|
;; doesn't work for us.
|
|
|
|
|
(substitute* (find-files "." "^Makefile$")
|
|
|
|
|
(("-o nagios -g nagios")
|
|
|
|
|
""))
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'build 'do-not-create-sysconfdir
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Don't try to create /var upon 'make install'.
|
|
|
|
|
(substitute* "Makefile"
|
|
|
|
|
(("\\$\\(INSTALL\\).*\\$\\(LOGDIR\\).*$" all)
|
|
|
|
|
(string-append "# " all))
|
|
|
|
|
(("\\$\\(INSTALL\\).*\\$\\(CHECKRESULTDIR\\).*$" all)
|
|
|
|
|
(string-append "# " all))
|
|
|
|
|
(("chmod g\\+s.*" all)
|
|
|
|
|
(string-append "# " all)))
|
|
|
|
|
#t))
|
|
|
|
|
(add-before 'build 'set-html/php-directory
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Install HTML and PHP files under 'share/nagios/html'
|
|
|
|
|
;; instead of just 'share/'.
|
|
|
|
|
(substitute* '("html/Makefile" "Makefile")
|
|
|
|
|
(("HTMLDIR=.*$")
|
|
|
|
|
"HTMLDIR = $(datarootdir)/nagios/html\n"))
|
|
|
|
|
#t)))
|
|
|
|
|
#:tests? #f)) ;no 'check' target or similar
|
|
|
|
|
(home-page "https://www.nagios.org/")
|
|
|
|
|
(synopsis "Host, service, and network monitoring program")
|
|
|
|
|
(description
|
|
|
|
|
"Nagios is a host, service, and network monitoring program written in C.
|
|
|
|
|
CGI programs are included to allow you to view the current status, history,
|
|
|
|
|
etc. via a Web interface. Features include:
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item Monitoring of network services (via SMTP, POP3, HTTP, PING, etc).
|
|
|
|
|
@item Monitoring of host resources (processor load, disk usage, etc.).
|
|
|
|
|
@item A plugin interface to allow for user-developed service monitoring
|
|
|
|
|
methods.
|
|
|
|
|
@item Ability to define network host hierarchy using \"parent\" hosts,
|
|
|
|
|
allowing detection of and distinction between hosts that are down
|
|
|
|
|
and those that are unreachable.
|
|
|
|
|
@item Notifications when problems occur and get resolved (via email,
|
|
|
|
|
pager, or user-defined method).
|
|
|
|
|
@item Ability to define event handlers for proactive problem resolution.
|
|
|
|
|
@item Automatic log file rotation/archiving.
|
|
|
|
|
@item Optional web interface for viewing current network status,
|
|
|
|
|
notification and problem history, log file, etc.
|
|
|
|
|
@end itemize\n")
|
|
|
|
|
(license license:gpl2)))
|
2018-01-06 06:13:41 +00:00
|
|
|
|
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(define-public zabbix-agentd
|
|
|
|
|
(package
|
|
|
|
|
(name "zabbix-agentd")
|
2022-01-29 11:34:25 +00:00
|
|
|
|
(version "5.4.9")
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
2020-07-11 09:09:44 +00:00
|
|
|
|
"https://cdn.zabbix.com/zabbix/sources/stable/"
|
|
|
|
|
(version-major+minor version) "/zabbix-" version ".tar.gz"))
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(sha256
|
2022-01-29 11:34:25 +00:00
|
|
|
|
(base32 "0hf9qygjy4vyknsin6qmgpna6z4c4mdrglifgkpxbs3nvwl6cs0r"))
|
2022-01-28 10:14:57 +00:00
|
|
|
|
(modules '((guix build utils)))
|
|
|
|
|
(snippet
|
|
|
|
|
'(substitute* '("src/zabbix_proxy/proxy.c"
|
|
|
|
|
"src/zabbix_server/server.c")
|
|
|
|
|
;; 'fping' must be setuid, so look for it in the usual location.
|
|
|
|
|
(("/usr/sbin/fping[[:digit:]]?")
|
|
|
|
|
"/run/setuid-programs/fping")))))
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags
|
|
|
|
|
(list "--enable-agent"
|
2021-01-02 19:32:14 +00:00
|
|
|
|
"--enable-ipv6"
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(string-append "--with-iconv="
|
|
|
|
|
(assoc-ref %build-inputs "libiconv"))
|
|
|
|
|
(string-append "--with-libpcre="
|
|
|
|
|
(assoc-ref %build-inputs "pcre")))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list libiconv pcre))
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(home-page "https://www.zabbix.com/")
|
|
|
|
|
(synopsis "Distributed monitoring solution (client-side agent)")
|
|
|
|
|
(description "This package provides a distributed monitoring
|
|
|
|
|
solution (client-side agent)")
|
|
|
|
|
(license license:gpl2)))
|
|
|
|
|
|
|
|
|
|
(define-public zabbix-server
|
|
|
|
|
(package
|
|
|
|
|
(inherit zabbix-agentd)
|
|
|
|
|
(name "zabbix-server")
|
2018-11-29 16:48:02 +00:00
|
|
|
|
(outputs '("out" "front-end" "schema"))
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(arguments
|
2022-01-26 08:26:55 +00:00
|
|
|
|
(substitute-keyword-arguments (package-arguments zabbix-agentd)
|
|
|
|
|
((#:phases phases '%standard-phases)
|
|
|
|
|
#~(modify-phases #$phases
|
|
|
|
|
(add-after 'install 'install-front-end
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
2018-11-29 16:48:02 +00:00
|
|
|
|
(let* ((php (string-append (assoc-ref outputs "front-end")
|
2018-08-31 02:50:33 +00:00
|
|
|
|
"/share/zabbix/php"))
|
|
|
|
|
(front-end-conf (string-append php "/conf"))
|
|
|
|
|
(etc (string-append php "/etc")))
|
|
|
|
|
(mkdir-p php)
|
2020-07-11 09:09:44 +00:00
|
|
|
|
(copy-recursively "ui" php)
|
2022-01-26 08:26:55 +00:00
|
|
|
|
;; Make front-end read config from ‘/etc/zabbix’ directory.
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(rename-file front-end-conf
|
|
|
|
|
(string-append front-end-conf "-example"))
|
2022-01-26 08:26:55 +00:00
|
|
|
|
(symlink "/etc/zabbix" front-end-conf))))
|
2018-11-29 16:48:02 +00:00
|
|
|
|
(add-after 'install 'install-schema
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(let ((database-directory
|
|
|
|
|
(string-append (assoc-ref outputs "schema")
|
|
|
|
|
"/database")))
|
|
|
|
|
(for-each delete-file
|
|
|
|
|
(find-files "database" "Makefile\\.in|\\.am$"))
|
|
|
|
|
(mkdir-p database-directory)
|
2022-01-26 08:26:55 +00:00
|
|
|
|
(copy-recursively "database" database-directory))))))
|
|
|
|
|
((#:configure-flags flags ''())
|
|
|
|
|
#~(append (list "--enable-server"
|
|
|
|
|
"--with-postgresql"
|
|
|
|
|
(string-append "--with-libevent="
|
|
|
|
|
(assoc-ref %build-inputs "libevent"))
|
|
|
|
|
"--with-net-snmp"
|
|
|
|
|
(string-append "--with-gnutls="
|
|
|
|
|
(assoc-ref %build-inputs "gnutls"))
|
|
|
|
|
"--with-libcurl"
|
|
|
|
|
(string-append "--with-zlib="
|
|
|
|
|
(assoc-ref %build-inputs "zlib")))
|
2022-01-26 08:27:19 +00:00
|
|
|
|
(delete "--enable-agent" #$flags)))))
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(modify-inputs (package-inputs zabbix-agentd)
|
|
|
|
|
(prepend curl
|
|
|
|
|
libevent
|
|
|
|
|
gnutls
|
|
|
|
|
net-snmp
|
2022-01-26 08:27:59 +00:00
|
|
|
|
postgresql
|
|
|
|
|
zlib)))
|
2018-08-31 02:50:33 +00:00
|
|
|
|
(synopsis "Distributed monitoring solution (server-side)")
|
|
|
|
|
(description "This package provides a distributed monitoring
|
|
|
|
|
solution (server-side)")))
|
|
|
|
|
|
2021-02-06 09:33:55 +00:00
|
|
|
|
(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+)))
|
|
|
|
|
|
2021-02-06 09:40:54 +00:00
|
|
|
|
(define-public python-pyzabbix
|
|
|
|
|
(package
|
|
|
|
|
(name "python-pyzabbix")
|
2021-12-14 09:45:40 +00:00
|
|
|
|
(version "1.0.0")
|
2021-02-28 10:36:20 +00:00
|
|
|
|
(home-page "https://github.com/lukecyca/pyzabbix")
|
2021-02-06 09:40:54 +00:00
|
|
|
|
;; No tests on PyPI, use the git checkout.
|
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference (url home-page) (commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-14 09:45:40 +00:00
|
|
|
|
"146pv8bj6pv8max1lkm07560b9zcc268c927kff6rcib47qxfnn2"))))
|
2021-02-06 09:40:54 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Permit newer versions of httpretty.
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("httpretty<0\\.8\\.7")
|
|
|
|
|
"httpretty"))))
|
|
|
|
|
(replace 'check
|
|
|
|
|
(lambda* (#:key tests? #:allow-other-keys)
|
|
|
|
|
(if tests?
|
2022-01-18 17:22:33 +00:00
|
|
|
|
(invoke "nosetests")
|
2021-12-14 09:45:40 +00:00
|
|
|
|
(format #t "test suite not run~%")))))))
|
2021-02-06 09:40:54 +00:00
|
|
|
|
(native-inputs
|
2021-12-14 09:45:40 +00:00
|
|
|
|
;; For tests.
|
|
|
|
|
(list python-httpretty python-nose))
|
2021-02-06 09:40:54 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-14 09:45:40 +00:00
|
|
|
|
(list python-requests python-semantic-version))
|
2021-02-06 09:40:54 +00:00
|
|
|
|
(synopsis "Python interface to the Zabbix API")
|
|
|
|
|
(description
|
|
|
|
|
"@code{pyzabbix} is a Python module for working with the Zabbix API.")
|
|
|
|
|
(license license:lgpl2.1+)))
|
|
|
|
|
|
2018-01-06 06:13:41 +00:00
|
|
|
|
(define-public darkstat
|
|
|
|
|
(package
|
|
|
|
|
(name "darkstat")
|
|
|
|
|
(version "3.0.719")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append "https://unix4lyfe.org/darkstat/darkstat-"
|
|
|
|
|
version ".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1mzddlim6dhd7jhr4smh0n2fa511nvyjhlx76b03vx7phnar1bxf"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments '(#:tests? #f)) ; no tests
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list libpcap zlib))
|
2018-01-06 06:13:41 +00:00
|
|
|
|
(home-page "https://unix4lyfe.org/darkstat/")
|
|
|
|
|
(synopsis "Network statistics gatherer")
|
|
|
|
|
(description
|
|
|
|
|
"@command{darkstat} is a packet sniffer that runs as a background process,
|
|
|
|
|
gathers all sorts of statistics about network usage, and serves them over
|
|
|
|
|
HTTP. Features:
|
|
|
|
|
|
|
|
|
|
@itemize
|
|
|
|
|
@item Traffic graphs, reports per host, shows ports for each host.
|
|
|
|
|
@item Embedded web-server with deflate compression.
|
|
|
|
|
@item Asynchronous reverse DNS resolution using a child process.
|
|
|
|
|
@item Small. Portable. Single-threaded. Efficient.
|
|
|
|
|
@item Supports IPv6.
|
|
|
|
|
@end itemize")
|
|
|
|
|
(license license:gpl2)))
|
2017-12-18 18:27:59 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-whisper
|
|
|
|
|
(package
|
|
|
|
|
(name "python-whisper")
|
2021-12-02 23:51:13 +00:00
|
|
|
|
(version "1.1.8")
|
2017-12-18 18:27:59 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "whisper" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-02 23:51:13 +00:00
|
|
|
|
"1bk29w09zcpsv8hp0g0al7nwrxa07z0ycls3mbh83wfavk83aprl"))))
|
2017-12-18 18:27:59 +00:00
|
|
|
|
(build-system python-build-system)
|
2021-12-02 23:51:13 +00:00
|
|
|
|
(native-inputs (list python-six))
|
2017-12-18 18:27:59 +00:00
|
|
|
|
(home-page "http://graphiteapp.org/")
|
|
|
|
|
(synopsis "Fixed size round-robin style database for Graphite")
|
|
|
|
|
(description "Whisper is one of three components within the Graphite
|
|
|
|
|
project. Whisper is a fixed-size database, similar in design and purpose to
|
|
|
|
|
RRD (round-robin-database). It provides fast, reliable storage of numeric
|
|
|
|
|
data over time. Whisper allows for higher resolution (seconds per point) of
|
|
|
|
|
recent data to degrade into lower resolutions for long-term retention of
|
|
|
|
|
historical data.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2021-09-27 02:17:45 +00:00
|
|
|
|
(define-public python-carbon
|
2017-12-18 18:29:13 +00:00
|
|
|
|
(package
|
2021-09-27 02:17:45 +00:00
|
|
|
|
(name "python-carbon")
|
|
|
|
|
(version "1.1.8")
|
2017-12-18 18:29:13 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "carbon" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-09-27 02:17:45 +00:00
|
|
|
|
"1wb91fipk1niciffq5xwqbh8g7rl7ghdam4m97cjbig12i5qr4cm"))))
|
2017-12-18 18:29:13 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2021-09-27 02:17:45 +00:00
|
|
|
|
`(#:phases
|
2017-12-18 18:29:13 +00:00
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
;; Don't install to /opt
|
|
|
|
|
(add-after 'unpack 'do-not-install-to-/opt
|
|
|
|
|
(lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t)))))
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-cachetools python-txamqp python-urllib3 python-whisper))
|
2017-12-18 18:29:13 +00:00
|
|
|
|
(home-page "http://graphiteapp.org/")
|
|
|
|
|
(synopsis "Backend data caching and persistence daemon for Graphite")
|
|
|
|
|
(description "Carbon is a backend data caching and persistence daemon for
|
|
|
|
|
Graphite. Carbon is responsible for receiving metrics over the network,
|
|
|
|
|
caching them in memory for \"hot queries\" from the Graphite-Web application,
|
|
|
|
|
and persisting them to disk using the Whisper time-series library.")
|
|
|
|
|
(license license:asl2.0)))
|
2017-12-18 18:29:45 +00:00
|
|
|
|
|
2020-09-02 08:11:57 +00:00
|
|
|
|
(define-public graphite-web
|
2017-12-18 18:29:45 +00:00
|
|
|
|
(package
|
2020-09-02 08:11:57 +00:00
|
|
|
|
(name "graphite-web")
|
|
|
|
|
(version "1.1.7")
|
2017-12-18 18:29:45 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "graphite-web" version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-09-02 08:11:57 +00:00
|
|
|
|
"1l5a5rry9cakqxamvlx4xq63jifmncb6815bg9vy7fg1zyd3pjxk"))))
|
2017-12-18 18:29:45 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
2020-09-02 08:11:57 +00:00
|
|
|
|
`(#:tests? #f ;XXX: not in PyPI release & requires database
|
2017-12-18 18:29:45 +00:00
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'relax-requirements
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
2020-09-02 08:11:57 +00:00
|
|
|
|
;; Allow newer versions of django-tagging.
|
|
|
|
|
(("django-tagging==")
|
|
|
|
|
"django-tagging>="))
|
2017-12-18 18:29:45 +00:00
|
|
|
|
#t))
|
|
|
|
|
;; Don't install to /opt
|
|
|
|
|
(add-after 'unpack 'do-not-install-to-/opt
|
|
|
|
|
(lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t)))))
|
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-cairocffi
|
|
|
|
|
python-pytz
|
|
|
|
|
python-whisper
|
|
|
|
|
python-django-2.2
|
|
|
|
|
python-django-tagging
|
|
|
|
|
python-scandir
|
|
|
|
|
python-urllib3
|
|
|
|
|
python-pyparsing
|
|
|
|
|
python-txamqp))
|
2020-09-02 08:11:57 +00:00
|
|
|
|
(home-page "https://graphiteapp.org/")
|
2017-12-18 18:29:45 +00:00
|
|
|
|
(synopsis "Scalable realtime graphing system")
|
|
|
|
|
(description "Graphite is a scalable real-time graphing system that does
|
|
|
|
|
two things: store numeric time-series data, and render graphs of this data on
|
|
|
|
|
demand.")
|
|
|
|
|
(license license:asl2.0)))
|
2018-03-13 18:47:41 +00:00
|
|
|
|
|
|
|
|
|
(define-public python-prometheus-client
|
|
|
|
|
(package
|
|
|
|
|
(name "python-prometheus-client")
|
2020-04-12 05:55:10 +00:00
|
|
|
|
(version "0.7.1")
|
2018-03-13 18:47:41 +00:00
|
|
|
|
(source
|
|
|
|
|
(origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (pypi-uri "prometheus_client" version))
|
|
|
|
|
(sha256
|
2020-04-12 05:55:10 +00:00
|
|
|
|
(base32 "1ni2yv4ixwz32nz39ckia76lvggi7m19y5f702w5qczbnfi29kbi"))))
|
2018-03-13 18:47:41 +00:00
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(;; No included tests.
|
|
|
|
|
#:tests? #f))
|
2019-02-04 10:45:13 +00:00
|
|
|
|
(propagated-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-twisted))
|
2018-03-13 18:47:41 +00:00
|
|
|
|
(home-page
|
|
|
|
|
"https://github.com/prometheus/client_python")
|
|
|
|
|
(synopsis "Python client for the Prometheus monitoring system")
|
|
|
|
|
(description
|
|
|
|
|
"The @code{prometheus_client} package supports exposing metrics from
|
|
|
|
|
software written in Python, so that they can be scraped by a Prometheus
|
|
|
|
|
service.
|
|
|
|
|
|
|
|
|
|
Metrics can be exposed through a standalone web server, or through Twisted,
|
|
|
|
|
WSGI and the node exporter textfile collector.")
|
|
|
|
|
(license license:asl2.0)))
|
|
|
|
|
|
2018-06-18 06:19:33 +00:00
|
|
|
|
(define-public go-github-com-prometheus-node-exporter
|
2020-01-27 23:32:06 +00:00
|
|
|
|
(package
|
|
|
|
|
(name "go-github-com-prometheus-node-exporter")
|
|
|
|
|
(version "0.18.1")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/prometheus/node_exporter")
|
2020-01-27 23:32:06 +00:00
|
|
|
|
(commit (string-append "v" version))))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0s3sp1gj86p7npxl38hkgs6ymd3wjjmc5hydyg1b5wh0x3yvpx07"))))
|
|
|
|
|
(build-system go-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:import-path "github.com/prometheus/node_exporter"))
|
|
|
|
|
(synopsis "Prometheus exporter for hardware and OS metrics")
|
|
|
|
|
(description "Prometheus exporter for metrics exposed by *NIX kernels,
|
2018-06-18 06:19:33 +00:00
|
|
|
|
written in Go with pluggable metric collectors.")
|
2020-01-27 23:32:06 +00:00
|
|
|
|
(home-page "https://github.com/prometheus/node_exporter")
|
|
|
|
|
(license license:asl2.0)))
|
2018-11-05 01:46:56 +00:00
|
|
|
|
|
2021-02-13 15:26:17 +00:00
|
|
|
|
(define-public temper-exporter
|
|
|
|
|
(let ((commit "a87bbab19c05609d62d9e4c7941178700c1ef84d")
|
|
|
|
|
(revision "0"))
|
|
|
|
|
(package
|
|
|
|
|
(name "temper-exporter")
|
|
|
|
|
(version (git-version "0" revision commit))
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/yrro/temper-exporter")
|
|
|
|
|
(commit commit)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jk3ydi8s14q5kyl9j3gm2zrnwlb1jwjqpg5vqrgkbm9jrldrabc"))))
|
|
|
|
|
(build-system python-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
'(#:tests? #f ; One test failure:
|
|
|
|
|
; test/test_exporter.py:33:
|
|
|
|
|
; AssertionError
|
|
|
|
|
#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(add-after 'unpack 'patch-setup.py
|
|
|
|
|
(lambda _
|
|
|
|
|
(substitute* "setup.py"
|
|
|
|
|
(("git_ref = .*\n") "git_ref = ''\n"))
|
|
|
|
|
#t))
|
|
|
|
|
(add-after 'install 'install-udev-rules
|
|
|
|
|
(lambda* (#:key outputs #:allow-other-keys)
|
|
|
|
|
(install-file "debian/prometheus-temper-exporter.udev"
|
|
|
|
|
(string-append (assoc-ref outputs "out")
|
|
|
|
|
"/lib/udev/rules.d"))
|
|
|
|
|
#t)))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-prometheus-client python-pyudev))
|
2021-02-13 15:26:17 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list python-pytest python-pytest-mock python-pytest-runner))
|
2021-02-13 15:26:17 +00:00
|
|
|
|
(home-page "https://github.com/yrro/temper-exporter")
|
|
|
|
|
(synopsis "Prometheus exporter for PCSensor TEMPer sensor devices")
|
|
|
|
|
(description
|
|
|
|
|
"This package contains a Prometheus exporter for the TEMPer sensor
|
|
|
|
|
devices.")
|
|
|
|
|
(license license:expat))))
|
|
|
|
|
|
2018-11-05 01:46:56 +00:00
|
|
|
|
(define-public fswatch
|
|
|
|
|
(package
|
|
|
|
|
(name "fswatch")
|
2021-12-18 03:30:08 +00:00
|
|
|
|
(version "1.16.0")
|
2018-11-05 01:46:56 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
gnu: Remove ".git" from "https://github/…/….git".
Until now, 'lookup-origin' and thus 'lookup-origin-revision' in (guix
swh) would sometimes return #f for these because the ".git" URLs are
redirects to the non-".git" URLs. Consequently, 'guix lint -c archival'
would keep saying "scheduled Software Heritage archival"; likewise, the
fallback download code would fail.
* gnu/packages/ada.scm,
gnu/packages/admin.scm,
gnu/packages/aidc.scm,
gnu/packages/algebra.scm,
gnu/packages/android.scm,
gnu/packages/animation.scm,
gnu/packages/arcan.scm,
gnu/packages/assembly.scm,
gnu/packages/audio.scm,
gnu/packages/authentication.scm,
gnu/packages/avr.scm,
gnu/packages/axoloti.scm,
gnu/packages/backup.scm,
gnu/packages/bash.scm,
gnu/packages/benchmark.scm,
gnu/packages/bioconductor.scm,
gnu/packages/bioinformatics.scm,
gnu/packages/bittorrent.scm,
gnu/packages/boost.scm,
gnu/packages/build-tools.scm,
gnu/packages/c.scm,
gnu/packages/calendar.scm,
gnu/packages/cdrom.scm,
gnu/packages/check.scm,
gnu/packages/chemistry.scm,
gnu/packages/chez.scm,
gnu/packages/clojure.scm,
gnu/packages/code.scm,
gnu/packages/compression.scm,
gnu/packages/compton.scm,
gnu/packages/coq.scm,
gnu/packages/cpp.scm,
gnu/packages/cran.scm,
gnu/packages/crypto.scm,
gnu/packages/curl.scm,
gnu/packages/databases.scm,
gnu/packages/datastructures.scm,
gnu/packages/debug.scm,
gnu/packages/disk.scm,
gnu/packages/distributed.scm,
gnu/packages/django.scm,
gnu/packages/dlang.scm,
gnu/packages/dns.scm,
gnu/packages/docker.scm,
gnu/packages/education.scm,
gnu/packages/efi.scm,
gnu/packages/elixir.scm,
gnu/packages/emacs-xyz.scm,
gnu/packages/embedded.scm,
gnu/packages/emulators.scm,
gnu/packages/engineering.scm,
gnu/packages/erlang.scm,
gnu/packages/fabric-management.scm,
gnu/packages/file-systems.scm,
gnu/packages/finance.scm,
gnu/packages/firmware.scm,
gnu/packages/flashing-tools.scm,
gnu/packages/fonts.scm,
gnu/packages/fontutils.scm,
gnu/packages/fpga.scm,
gnu/packages/game-development.scm,
gnu/packages/games.scm,
gnu/packages/genealogy.scm,
gnu/packages/genimage.scm,
gnu/packages/geo.scm,
gnu/packages/gimp.scm,
gnu/packages/gl.scm,
gnu/packages/gnome-xyz.scm,
gnu/packages/gnome.scm,
gnu/packages/gnuzilla.scm,
gnu/packages/golang.scm,
gnu/packages/gpodder.scm,
gnu/packages/graph.scm,
gnu/packages/graphics.scm,
gnu/packages/graphviz.scm,
gnu/packages/groff.scm,
gnu/packages/groovy.scm,
gnu/packages/gtk.scm,
gnu/packages/guile-xyz.scm,
gnu/packages/guile.scm,
gnu/packages/hardware.scm,
gnu/packages/haskell-apps.scm,
gnu/packages/haskell-xyz.scm,
gnu/packages/hexedit.scm,
gnu/packages/i2p.scm,
gnu/packages/ibus.scm,
gnu/packages/image-processing.scm,
gnu/packages/image-viewers.scm,
gnu/packages/image.scm,
gnu/packages/ipfs.scm,
gnu/packages/java-graphics.scm,
gnu/packages/java-maths.scm,
gnu/packages/java.scm,
gnu/packages/javascript.scm,
gnu/packages/jrnl.scm,
gnu/packages/julia.scm,
gnu/packages/jupyter.scm,
gnu/packages/kodi.scm,
gnu/packages/language.scm,
gnu/packages/lego.scm,
gnu/packages/less.scm,
gnu/packages/libusb.scm,
gnu/packages/linux.scm,
gnu/packages/lirc.scm,
gnu/packages/lisp-xyz.scm,
gnu/packages/llvm.scm,
gnu/packages/logging.scm,
gnu/packages/lolcode.scm,
gnu/packages/lua.scm,
gnu/packages/lxde.scm,
gnu/packages/lxqt.scm,
gnu/packages/machine-learning.scm,
gnu/packages/mail.scm,
gnu/packages/markup.scm,
gnu/packages/maths.scm,
gnu/packages/maven.scm,
gnu/packages/mes.scm,
gnu/packages/messaging.scm,
gnu/packages/monitoring.scm,
gnu/packages/mpd.scm,
gnu/packages/music.scm,
gnu/packages/networking.scm,
gnu/packages/node-xyz.scm,
gnu/packages/ocaml.scm,
gnu/packages/ocr.scm,
gnu/packages/onc-rpc.scm,
gnu/packages/opencl.scm,
gnu/packages/opencog.scm,
gnu/packages/pantheon.scm,
gnu/packages/password-utils.scm,
gnu/packages/patchutils.scm,
gnu/packages/pdf.scm,
gnu/packages/perl6.scm,
gnu/packages/phabricator.scm,
gnu/packages/popt.scm,
gnu/packages/printers.scm,
gnu/packages/prolog.scm,
gnu/packages/protobuf.scm,
gnu/packages/pulseaudio.scm,
gnu/packages/python-crypto.scm,
gnu/packages/python-web.scm,
gnu/packages/python-xyz.scm,
gnu/packages/qt.scm,
gnu/packages/radio.scm,
gnu/packages/rails.scm,
gnu/packages/rdf.scm,
gnu/packages/rednotebook.scm,
gnu/packages/rpc.scm,
gnu/packages/rsync.scm,
gnu/packages/ruby.scm,
gnu/packages/rust.scm,
gnu/packages/scheme.scm,
gnu/packages/screen.scm,
gnu/packages/security-token.scm,
gnu/packages/selinux.scm,
gnu/packages/serialization.scm,
gnu/packages/shells.scm,
gnu/packages/shellutils.scm,
gnu/packages/simh.scm,
gnu/packages/sml.scm,
gnu/packages/ssh.scm,
gnu/packages/statistics.scm,
gnu/packages/stenography.scm,
gnu/packages/sync.scm,
gnu/packages/syncthing.scm,
gnu/packages/synergy.scm,
gnu/packages/telephony.scm,
gnu/packages/terminals.scm,
gnu/packages/tex.scm,
gnu/packages/texinfo.scm,
gnu/packages/text-editors.scm,
gnu/packages/textutils.scm,
gnu/packages/time.scm,
gnu/packages/tmux.scm,
gnu/packages/tor.scm,
gnu/packages/toys.scm,
gnu/packages/version-control.scm,
gnu/packages/video.scm,
gnu/packages/vim.scm,
gnu/packages/virtualization.scm,
gnu/packages/vlang.scm,
gnu/packages/vnc.scm,
gnu/packages/vpn.scm,
gnu/packages/web-browsers.scm,
gnu/packages/web.scm,
gnu/packages/wireservice.scm,
gnu/packages/wm.scm,
gnu/packages/wxwidgets.scm,
gnu/packages/xdisorg.scm,
gnu/packages/xml.scm,
gnu/packages/xorg.scm,
tests/lint.scm: Remove trailing ".git" from 'git-reference' URL.
2020-07-12 20:53:28 +00:00
|
|
|
|
(url "https://github.com/emcrisostomo/fswatch")
|
2018-11-05 01:46:56 +00:00
|
|
|
|
(commit version)))
|
2019-04-15 08:29:42 +00:00
|
|
|
|
(file-name (git-file-name name version))
|
2018-11-05 01:46:56 +00:00
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2021-12-18 03:30:08 +00:00
|
|
|
|
"1zsvc8arza2ypnnmv4m0qfpnldmy1zh10q6wss05ibmanslfj2ql"))))
|
2018-11-05 01:46:56 +00:00
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(native-inputs
|
2021-12-13 21:15:07 +00:00
|
|
|
|
(list autoconf automake gettext-minimal libtool))
|
2021-12-18 03:31:08 +00:00
|
|
|
|
(arguments
|
|
|
|
|
(list #:configure-flags
|
|
|
|
|
#~(list "--disable-static")))
|
2018-11-05 01:46:56 +00:00
|
|
|
|
(synopsis "File system monitor")
|
|
|
|
|
(description "This package provides a file system monitor.")
|
|
|
|
|
(home-page "https://github.com/emcrisostomo/fswatch")
|
|
|
|
|
(license license:gpl3+)))
|
2020-04-28 08:50:10 +00:00
|
|
|
|
|
|
|
|
|
(define-public collectd
|
|
|
|
|
(package
|
|
|
|
|
(name "collectd")
|
2020-11-24 15:25:06 +00:00
|
|
|
|
(version "5.12.0")
|
2020-04-28 08:50:10 +00:00
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"https://storage.googleapis.com/collectd-tarballs/collectd-"
|
|
|
|
|
version
|
|
|
|
|
".tar.bz2"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
2020-11-24 15:25:06 +00:00
|
|
|
|
"1mh97afgq6qgmpvpr84zngh58m0sl1b4wimqgvvk376188q09bjv"))
|
2020-04-28 08:50:10 +00:00
|
|
|
|
(patches (search-patches "collectd-5.11.0-noinstallvar.patch"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:configure-flags (list "--localstatedir=/var" "--sysconfdir=/etc")
|
|
|
|
|
#:phases (modify-phases %standard-phases
|
|
|
|
|
(add-before 'configure 'autoreconf
|
|
|
|
|
(lambda _
|
|
|
|
|
;; Required because of patched sources.
|
|
|
|
|
(invoke "autoreconf" "-vfi"))))))
|
|
|
|
|
(inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list rrdtool curl libyajl))
|
2020-04-28 08:50:10 +00:00
|
|
|
|
(native-inputs
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(list autoconf automake libtool pkg-config))
|
2020-04-28 08:50:10 +00:00
|
|
|
|
(home-page "https://collectd.org/")
|
|
|
|
|
(synopsis "Collect system and application performance metrics periodically")
|
|
|
|
|
(description
|
|
|
|
|
"collectd gathers metrics from various sources such as the operating system,
|
|
|
|
|
applications, log files and external devices, and stores this information or
|
|
|
|
|
makes it available over the network. Those statistics can be used to monitor
|
|
|
|
|
systems, find performance bottlenecks (i.e., performance analysis) and predict
|
|
|
|
|
future system load (i.e., capacity planning).")
|
|
|
|
|
;; license:expat for the daemon in src/daemon/ and some plugins,
|
|
|
|
|
;; license:gpl2 for other plugins
|
|
|
|
|
(license (list license:expat license:gpl2))))
|
|
|
|
|
|
2021-05-18 20:33:08 +00:00
|
|
|
|
(define-public hostscope
|
|
|
|
|
(package
|
|
|
|
|
(name "hostscope")
|
|
|
|
|
(version "8.0")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method url-fetch)
|
|
|
|
|
(uri (string-append
|
|
|
|
|
"http://www.maier-komor.de/hostscope/hostscope-V"
|
|
|
|
|
version ".tgz"))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"0jw6yij8va0f292g4xkf9lp9sxkzfgv67ajw49g3vq42q47ld7cv"))))
|
|
|
|
|
(build-system gnu-build-system)
|
2021-12-13 16:18:24 +00:00
|
|
|
|
(inputs (list ncurses))
|
2021-05-18 20:33:08 +00:00
|
|
|
|
(arguments '(#:tests? #f)) ;; No included tests.
|
|
|
|
|
(home-page "http://www.maier-komor.de/hostscope.html")
|
2021-05-28 20:57:46 +00:00
|
|
|
|
(properties `((release-monitoring-url . ,home-page)))
|
2021-05-18 20:33:08 +00:00
|
|
|
|
(synopsis
|
|
|
|
|
"System monitoring tool for multiple hosts")
|
|
|
|
|
(description
|
|
|
|
|
"HostScope displays key system metrics of Linux hosts, such as detailed
|
|
|
|
|
CPU load, speed and temperature, I/O rates of network interfaces, I/O rates of
|
|
|
|
|
disks, and user process summary information. All metrics are multicast on the
|
|
|
|
|
LAN, if wanted, and clients can switch between multiple hosts on the network.
|
|
|
|
|
Hostscope features a bridge to Influx DB. So Grafana can be used to visualize
|
|
|
|
|
the recorded data over time.")
|
|
|
|
|
(license license:gpl3+)))
|
2021-09-01 20:43:35 +00:00
|
|
|
|
|
|
|
|
|
(define-public fatrace
|
|
|
|
|
(package
|
|
|
|
|
(name "fatrace")
|
|
|
|
|
(version "0.16.3")
|
|
|
|
|
(source (origin
|
|
|
|
|
(method git-fetch)
|
|
|
|
|
(uri (git-reference
|
|
|
|
|
(url "https://github.com/martinpitt/fatrace")
|
|
|
|
|
(commit version)))
|
|
|
|
|
(file-name (git-file-name name version))
|
|
|
|
|
(sha256
|
|
|
|
|
(base32
|
|
|
|
|
"1bxz6v1z0icp716jnv3knjyqp8bv6xnkz8gqd8z3g2b6yxj5xff3"))))
|
|
|
|
|
(build-system gnu-build-system)
|
|
|
|
|
(arguments
|
|
|
|
|
`(#:phases
|
|
|
|
|
(modify-phases %standard-phases
|
|
|
|
|
(delete 'configure)
|
|
|
|
|
;; tests need root to run as root,
|
|
|
|
|
;; and there is no make target for them:
|
|
|
|
|
(delete 'check))
|
|
|
|
|
#:make-flags
|
|
|
|
|
(list (string-append "CC=" ,(cc-for-target))
|
|
|
|
|
(string-append "PREFIX=" %output))))
|
|
|
|
|
(synopsis "File access events monitor")
|
|
|
|
|
(description "This package provides a utility to report system wide file
|
|
|
|
|
access events from all running processes. Its main purpose is to find
|
|
|
|
|
processes which keep waking up the disk unnecessarily and thus prevent some
|
|
|
|
|
power saving.")
|
|
|
|
|
(home-page "https://github.com/martinpitt/fatrace")
|
|
|
|
|
(license license:gpl3+)))
|