You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

495 lines
19 KiB

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.
2 years ago
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.
3 years ago
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.
11 months ago
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.
11 months ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2016 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
  4. ;;; Copyright © 2017, 2018, 2019, 2020 Ricardo Wurmus <rekado@elephly.net>
  5. ;;; Copyright © 2018, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
  6. ;;; Copyright © 2018 Gábor Boskovits <boskovits@gmail.com>
  7. ;;; Copyright © 2018, 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
  8. ;;; Copyright © 2020 Alex ter Weele <alex.ter.weele@gmail.com>
  9. ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
  10. ;;;
  11. ;;; This file is part of GNU Guix.
  12. ;;;
  13. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  14. ;;; under the terms of the GNU General Public License as published by
  15. ;;; the Free Software Foundation; either version 3 of the License, or (at
  16. ;;; your option) any later version.
  17. ;;;
  18. ;;; GNU Guix is distributed in the hope that it will be useful, but
  19. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  20. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. ;;; GNU General Public License for more details.
  22. ;;;
  23. ;;; You should have received a copy of the GNU General Public License
  24. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  25. (define-module (gnu packages monitoring)
  26. #:use-module (guix packages)
  27. #:use-module (guix download)
  28. #:use-module (guix git-download)
  29. #:use-module ((guix licenses) #:prefix license:)
  30. #:use-module (guix build-system perl)
  31. #:use-module (guix build-system python)
  32. #:use-module (guix build-system gnu)
  33. #:use-module (guix build-system go)
  34. #:use-module (guix utils)
  35. #:use-module (gnu packages)
  36. #:use-module (gnu packages admin)
  37. #:use-module (gnu packages autotools)
  38. #:use-module (gnu packages base)
  39. #:use-module (gnu packages curl)
  40. #:use-module (gnu packages check)
  41. #:use-module (gnu packages compression)
  42. #:use-module (gnu packages databases)
  43. #:use-module (gnu packages django)
  44. #:use-module (gnu packages gd)
  45. #:use-module (gnu packages gettext)
  46. #:use-module (gnu packages image)
  47. #:use-module (gnu packages mail)
  48. #:use-module (gnu packages networking)
  49. #:use-module (gnu packages libevent)
  50. #:use-module (gnu packages pcre)
  51. #:use-module (gnu packages perl)
  52. #:use-module (gnu packages pkg-config)
  53. #:use-module (gnu packages python)
  54. #:use-module (gnu packages python-web)
  55. #:use-module (gnu packages python-xyz)
  56. #:use-module (gnu packages rrdtool)
  57. #:use-module (gnu packages time)
  58. #:use-module (gnu packages tls)
  59. #:use-module (gnu packages web))
  60. (define-public nagios
  61. (package
  62. (name "nagios")
  63. (version "4.4.6")
  64. ;; XXX: Nagios 4.2.x and later bundle a copy of AngularJS.
  65. (source (origin
  66. (method url-fetch)
  67. (uri (string-append
  68. "mirror://sourceforge/nagios/nagios-4.x/nagios-"
  69. version "/nagios-" version ".tar.gz"))
  70. (sha256
  71. (base32
  72. "1x5hb97zbvkm73q53ydp1gwj8nnznm72q9c4rm6ny7phr995l3db"))
  73. (modules '((guix build utils)))
  74. (snippet
  75. ;; Ensure reproducibility.
  76. '(begin
  77. (substitute* (find-files "cgi" "\\.c$")
  78. (("__DATE__") "\"1970-01-01\"")
  79. (("__TIME__") "\"00:00:00\""))
  80. #t))))
  81. (build-system gnu-build-system)
  82. (native-inputs
  83. `(("unzip" ,unzip)))
  84. (inputs
  85. `(("zlib" ,zlib)
  86. ("libpng-apng" ,libpng)
  87. ("gd" ,gd)
  88. ("perl" ,perl)
  89. ("mailutils" ,mailutils)))
  90. (arguments
  91. '(#:configure-flags (list "--sysconfdir=/etc"
  92. ;; 'include/locations.h.in' defines file
  93. ;; locations, and many things go directly under
  94. ;; LOCALSTATEDIR, hence the extra '/nagios'.
  95. "--localstatedir=/var/nagios"
  96. (string-append
  97. "--with-mail="
  98. (assoc-ref %build-inputs "mailutils")
  99. "/bin/mail"))
  100. #:make-flags '("all")
  101. #:phases (modify-phases %standard-phases
  102. (add-before 'build 'do-not-chown-to-nagios
  103. (lambda _
  104. ;; Makefiles do 'install -o nagios -g nagios', which
  105. ;; doesn't work for us.
  106. (substitute* (find-files "." "^Makefile$")
  107. (("-o nagios -g nagios")
  108. ""))
  109. #t))
  110. (add-before 'build 'do-not-create-sysconfdir
  111. (lambda _
  112. ;; Don't try to create /var upon 'make install'.
  113. (substitute* "Makefile"
  114. (("\\$\\(INSTALL\\).*\\$\\(LOGDIR\\).*$" all)
  115. (string-append "# " all))
  116. (("\\$\\(INSTALL\\).*\\$\\(CHECKRESULTDIR\\).*$" all)
  117. (string-append "# " all))
  118. (("chmod g\\+s.*" all)
  119. (string-append "# " all)))
  120. #t))
  121. (add-before 'build 'set-html/php-directory
  122. (lambda _
  123. ;; Install HTML and PHP files under 'share/nagios/html'
  124. ;; instead of just 'share/'.
  125. (substitute* '("html/Makefile" "Makefile")
  126. (("HTMLDIR=.*$")
  127. "HTMLDIR = $(datarootdir)/nagios/html\n"))
  128. #t)))
  129. #:tests? #f)) ;no 'check' target or similar
  130. (home-page "https://www.nagios.org/")
  131. (synopsis "Host, service, and network monitoring program")
  132. (description
  133. "Nagios is a host, service, and network monitoring program written in C.
  134. CGI programs are included to allow you to view the current status, history,
  135. etc. via a Web interface. Features include:
  136. @itemize
  137. @item Monitoring of network services (via SMTP, POP3, HTTP, PING, etc).
  138. @item Monitoring of host resources (processor load, disk usage, etc.).
  139. @item A plugin interface to allow for user-developed service monitoring
  140. methods.
  141. @item Ability to define network host hierarchy using \"parent\" hosts,
  142. allowing detection of and distinction between hosts that are down
  143. and those that are unreachable.
  144. @item Notifications when problems occur and get resolved (via email,
  145. pager, or user-defined method).
  146. @item Ability to define event handlers for proactive problem resolution.
  147. @item Automatic log file rotation/archiving.
  148. @item Optional web interface for viewing current network status,
  149. notification and problem history, log file, etc.
  150. @end itemize\n")
  151. (license license:gpl2)))
  152. (define-public zabbix-agentd
  153. (package
  154. (name "zabbix-agentd")
  155. (version "5.0.2")
  156. (source
  157. (origin
  158. (method url-fetch)
  159. (uri (string-append
  160. "https://cdn.zabbix.com/zabbix/sources/stable/"
  161. (version-major+minor version) "/zabbix-" version ".tar.gz"))
  162. (sha256
  163. (base32 "1cnns7ixqi7ank3cbvcs7d8rb5zh9qiqbmgivazr83jnz81qg46w"))))
  164. (build-system gnu-build-system)
  165. (arguments
  166. `(#:configure-flags
  167. (list "--enable-agent"
  168. (string-append "--with-iconv="
  169. (assoc-ref %build-inputs "libiconv"))
  170. (string-append "--with-libpcre="
  171. (assoc-ref %build-inputs "pcre")))))
  172. (inputs
  173. `(("libiconv" ,libiconv)
  174. ("pcre" ,pcre)))
  175. (home-page "https://www.zabbix.com/")
  176. (synopsis "Distributed monitoring solution (client-side agent)")
  177. (description "This package provides a distributed monitoring
  178. solution (client-side agent)")
  179. (license license:gpl2)))
  180. (define-public zabbix-server
  181. (package
  182. (inherit zabbix-agentd)
  183. (name "zabbix-server")
  184. (outputs '("out" "front-end" "schema"))
  185. (arguments
  186. (substitute-keyword-arguments
  187. `(#:phases
  188. (modify-phases %standard-phases
  189. (add-after 'install 'install-front-end
  190. (lambda* (#:key outputs #:allow-other-keys)
  191. (let* ((php (string-append (assoc-ref outputs "front-end")
  192. "/share/zabbix/php"))
  193. (front-end-conf (string-append php "/conf"))
  194. (etc (string-append php "/etc")))
  195. (mkdir-p php)
  196. (copy-recursively "ui" php)
  197. ;; Make front-end write config to ‘/etc/zabbix’ directory.
  198. (rename-file front-end-conf
  199. (string-append front-end-conf "-example"))
  200. (symlink "/etc/zabbix" front-end-conf))
  201. #t))
  202. (add-after 'install 'install-schema
  203. (lambda* (#:key outputs #:allow-other-keys)
  204. (let ((database-directory
  205. (string-append (assoc-ref outputs "schema")
  206. "/database")))
  207. (for-each delete-file
  208. (find-files "database" "Makefile\\.in|\\.am$"))
  209. (mkdir-p database-directory)
  210. (copy-recursively "database" database-directory))
  211. #t)))
  212. ,@(package-arguments zabbix-agentd))
  213. ((#:configure-flags flags)
  214. `(cons* "--enable-server"
  215. "--with-postgresql"
  216. (string-append "--with-libevent="
  217. (assoc-ref %build-inputs "libevent"))
  218. "--with-net-snmp"
  219. (string-append "--with-gnutls="
  220. (assoc-ref %build-inputs "gnutls"))
  221. "--with-libcurl"
  222. (string-append "--with-zlib="
  223. (assoc-ref %build-inputs "zlib"))
  224. ,flags))))
  225. (inputs
  226. `(("curl" ,curl)
  227. ("libevent" ,libevent)
  228. ("gnutls" ,gnutls)
  229. ("postgresql" ,postgresql)
  230. ("zlib" ,zlib)
  231. ("net-snmp" ,net-snmp)
  232. ("curl" ,curl)
  233. ,@(package-inputs zabbix-agentd)))
  234. (synopsis "Distributed monitoring solution (server-side)")
  235. (description "This package provides a distributed monitoring
  236. solution (server-side)")))
  237. (define-public darkstat
  238. (package
  239. (name "darkstat")
  240. (version "3.0.719")
  241. (source (origin
  242. (method url-fetch)
  243. (uri (string-append "https://unix4lyfe.org/darkstat/darkstat-"
  244. version ".tar.bz2"))
  245. (sha256
  246. (base32
  247. "1mzddlim6dhd7jhr4smh0n2fa511nvyjhlx76b03vx7phnar1bxf"))))
  248. (build-system gnu-build-system)
  249. (arguments '(#:tests? #f)) ; no tests
  250. (inputs
  251. `(("libpcap" ,libpcap)
  252. ("zlib" ,zlib)))
  253. (home-page "https://unix4lyfe.org/darkstat/")
  254. (synopsis "Network statistics gatherer")
  255. (description
  256. "@command{darkstat} is a packet sniffer that runs as a background process,
  257. gathers all sorts of statistics about network usage, and serves them over
  258. HTTP. Features:
  259. @itemize
  260. @item Traffic graphs, reports per host, shows ports for each host.
  261. @item Embedded web-server with deflate compression.
  262. @item Asynchronous reverse DNS resolution using a child process.
  263. @item Small. Portable. Single-threaded. Efficient.
  264. @item Supports IPv6.
  265. @end itemize")
  266. (license license:gpl2)))
  267. (define-public python-whisper
  268. (package
  269. (name "python-whisper")
  270. (version "1.0.2")
  271. (source
  272. (origin
  273. (method url-fetch)
  274. (uri (pypi-uri "whisper" version))
  275. (sha256
  276. (base32
  277. "1v1bi3fl1i6p4z4ki692bykrkw6907dn3mfq0151f70lvi3zpns3"))))
  278. (build-system python-build-system)
  279. (home-page "http://graphiteapp.org/")
  280. (synopsis "Fixed size round-robin style database for Graphite")
  281. (description "Whisper is one of three components within the Graphite
  282. project. Whisper is a fixed-size database, similar in design and purpose to
  283. RRD (round-robin-database). It provides fast, reliable storage of numeric
  284. data over time. Whisper allows for higher resolution (seconds per point) of
  285. recent data to degrade into lower resolutions for long-term retention of
  286. historical data.")
  287. (license license:asl2.0)))
  288. (define-public python2-whisper
  289. (package-with-python2 python-whisper))
  290. (define-public python2-carbon
  291. (package
  292. (name "python2-carbon")
  293. (version "1.0.2")
  294. (source
  295. (origin
  296. (method url-fetch)
  297. (uri (pypi-uri "carbon" version))
  298. (sha256
  299. (base32
  300. "142smpmgbnjinvfb6s4ijazish4vfgzyd8zcmdkh55y051fkixkn"))))
  301. (build-system python-build-system)
  302. (arguments
  303. `(#:python ,python-2 ; only supports Python 2
  304. #:phases
  305. (modify-phases %standard-phases
  306. ;; Don't install to /opt
  307. (add-after 'unpack 'do-not-install-to-/opt
  308. (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t)))))
  309. (propagated-inputs
  310. `(("python2-whisper" ,python2-whisper)
  311. ("python2-configparser" ,python2-configparser)
  312. ("python2-txamqp" ,python2-txamqp)))
  313. (home-page "http://graphiteapp.org/")
  314. (synopsis "Backend data caching and persistence daemon for Graphite")
  315. (description "Carbon is a backend data caching and persistence daemon for
  316. Graphite. Carbon is responsible for receiving metrics over the network,
  317. caching them in memory for \"hot queries\" from the Graphite-Web application,
  318. and persisting them to disk using the Whisper time-series library.")
  319. (license license:asl2.0)))
  320. (define-public python2-graphite-web
  321. (package
  322. (name "python2-graphite-web")
  323. (version "1.0.2")
  324. (source
  325. (origin
  326. (method url-fetch)
  327. (uri (pypi-uri "graphite-web" version))
  328. (sha256
  329. (base32
  330. "0q8bwlj75jqyzmazfsi5sa26xl58ssa8wdxm2l4j0jqyn8xpfnmc"))))
  331. (build-system python-build-system)
  332. (arguments
  333. `(#:python ,python-2 ; only supports Python 2
  334. #:phases
  335. (modify-phases %standard-phases
  336. (add-after 'unpack 'relax-requirements
  337. (lambda _
  338. (substitute* "setup.py"
  339. (("0.4.3") ,(package-version python2-django-tagging))
  340. (("<1.9.99") (string-append "<="
  341. ,(package-version python2-django))))
  342. #t))
  343. ;; Don't install to /opt
  344. (add-after 'unpack 'do-not-install-to-/opt
  345. (lambda _ (setenv "GRAPHITE_NO_PREFIX" "1") #t)))))
  346. (propagated-inputs
  347. `(("python2-cairocffi" ,python2-cairocffi)
  348. ("python2-pytz" ,python2-pytz)
  349. ("python2-whisper" ,python2-whisper)
  350. ("python2-django" ,python2-django)
  351. ("python2-django-tagging" ,python2-django-tagging)
  352. ("python2-scandir" ,python2-scandir)
  353. ("python2-urllib3" ,python2-urllib3)
  354. ("python2-pyparsing" ,python2-pyparsing)
  355. ("python2-txamqp" ,python2-txamqp)))
  356. (home-page "http://graphiteapp.org/")
  357. (synopsis "Scalable realtime graphing system")
  358. (description "Graphite is a scalable real-time graphing system that does
  359. two things: store numeric time-series data, and render graphs of this data on
  360. demand.")
  361. (license license:asl2.0)))
  362. (define-public python-prometheus-client
  363. (package
  364. (name "python-prometheus-client")
  365. (version "0.7.1")
  366. (source
  367. (origin
  368. (method url-fetch)
  369. (uri (pypi-uri "prometheus_client" version))
  370. (sha256
  371. (base32 "1ni2yv4ixwz32nz39ckia76lvggi7m19y5f702w5qczbnfi29kbi"))))
  372. (build-system python-build-system)
  373. (arguments
  374. '(;; No included tests.
  375. #:tests? #f))
  376. (propagated-inputs
  377. `(("python-twisted" ,python-twisted)))
  378. (home-page
  379. "https://github.com/prometheus/client_python")
  380. (synopsis "Python client for the Prometheus monitoring system")
  381. (description
  382. "The @code{prometheus_client} package supports exposing metrics from
  383. software written in Python, so that they can be scraped by a Prometheus
  384. service.
  385. Metrics can be exposed through a standalone web server, or through Twisted,
  386. WSGI and the node exporter textfile collector.")
  387. (license license:asl2.0)))
  388. (define-public python2-prometheus-client
  389. (package-with-python2 python-prometheus-client))
  390. (define-public go-github-com-prometheus-node-exporter
  391. (package
  392. (name "go-github-com-prometheus-node-exporter")
  393. (version "0.18.1")
  394. (source (origin
  395. (method git-fetch)
  396. (uri (git-reference
  397. (url "https://github.com/prometheus/node_exporter")
  398. (commit (string-append "v" version))))
  399. (file-name (git-file-name name version))
  400. (sha256
  401. (base32
  402. "0s3sp1gj86p7npxl38hkgs6ymd3wjjmc5hydyg1b5wh0x3yvpx07"))))
  403. (build-system go-build-system)
  404. (arguments
  405. '(#:import-path "github.com/prometheus/node_exporter"))
  406. (synopsis "Prometheus exporter for hardware and OS metrics")
  407. (description "Prometheus exporter for metrics exposed by *NIX kernels,
  408. written in Go with pluggable metric collectors.")
  409. (home-page "https://github.com/prometheus/node_exporter")
  410. (license license:asl2.0)))
  411. (define-public fswatch
  412. (package
  413. (name "fswatch")
  414. (version "1.15.0")
  415. (source (origin
  416. (method git-fetch)
  417. (uri (git-reference
  418. (url "https://github.com/emcrisostomo/fswatch")
  419. (commit version)))
  420. (file-name (git-file-name name version))
  421. (sha256
  422. (base32
  423. "1yz65jsbgdx4cmy16x24wz5di352lvyi7fp6jm90bhgl1vpzxlsx"))))
  424. (build-system gnu-build-system)
  425. (native-inputs
  426. `(("autoconf" ,autoconf)
  427. ("automake" ,automake)
  428. ("gettext" ,gettext-minimal)
  429. ("libtool" ,libtool)))
  430. (synopsis "File system monitor")
  431. (description "This package provides a file system monitor.")
  432. (home-page "https://github.com/emcrisostomo/fswatch")
  433. (license license:gpl3+)))
  434. (define-public collectd
  435. (package
  436. (name "collectd")
  437. (version "5.11.0")
  438. (source (origin
  439. (method url-fetch)
  440. (uri (string-append
  441. "https://storage.googleapis.com/collectd-tarballs/collectd-"
  442. version
  443. ".tar.bz2"))
  444. (sha256
  445. (base32
  446. "1cjxksxdqcqdccz1nbnc2fp6yy84qq361ynaq5q8bailds00mc9p"))
  447. (patches (search-patches "collectd-5.11.0-noinstallvar.patch"))))
  448. (build-system gnu-build-system)
  449. (arguments
  450. `(#:configure-flags (list "--localstatedir=/var" "--sysconfdir=/etc")
  451. #:phases (modify-phases %standard-phases
  452. (add-before 'configure 'autoreconf
  453. (lambda _
  454. ;; Required because of patched sources.
  455. (invoke "autoreconf" "-vfi"))))))
  456. (inputs
  457. `(("rrdtool" ,rrdtool)
  458. ("curl" ,curl)
  459. ("libyajl" ,libyajl)))
  460. (native-inputs
  461. `(("autoconf" ,autoconf)
  462. ("automake" ,automake)
  463. ("libtool" ,libtool)
  464. ("pkg-config" ,pkg-config)))
  465. (home-page "https://collectd.org/")
  466. (synopsis "Collect system and application performance metrics periodically")
  467. (description
  468. "collectd gathers metrics from various sources such as the operating system,
  469. applications, log files and external devices, and stores this information or
  470. makes it available over the network. Those statistics can be used to monitor
  471. systems, find performance bottlenecks (i.e., performance analysis) and predict
  472. future system load (i.e., capacity planning).")
  473. ;; license:expat for the daemon in src/daemon/ and some plugins,
  474. ;; license:gpl2 for other plugins
  475. (license (list license:expat license:gpl2))))