From b4bd1c888a5041c964a882406b758e65a3803821 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 3 Jun 2008 21:59:35 +0000 Subject: [PATCH] * Added Zabbix, a system and network monitoring tool. svn path=/nixpkgs/trunk/; revision=11963 --- pkgs/servers/monitoring/zabbix/default.nix | 25 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 10 +++++++++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/servers/monitoring/zabbix/default.nix diff --git a/pkgs/servers/monitoring/zabbix/default.nix b/pkgs/servers/monitoring/zabbix/default.nix new file mode 100644 index 000000000000..df632a69b31a --- /dev/null +++ b/pkgs/servers/monitoring/zabbix/default.nix @@ -0,0 +1,25 @@ +{stdenv, fetchurl, enableServer ? false, postgresql ? null, curl ? null}: + +stdenv.mkDerivation { + name = "zabbix-1.4.5"; + + src = fetchurl { + url = mirror://sourceforge/zabbix/zabbix-1.4.5.tar.gz; + sha256 = "1ha82q6rp49rgdfmni73y60kqjy00mfr2bp10mb0gnb0k4v9ppmb"; + }; + + configureFlags = "--enable-agent " + + (if enableServer then '' + --enable-server + --with-pgsql + --with-libcurl + '' else ""); + + buildInputs = stdenv.lib.optionals enableServer [postgresql curl]; + + meta = { + description = "An enterprise-class open source distributed monitoring solution"; + homepage = http://www.zabbix.com/; + license = "GPL"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f753ee6479c4..df6d4c9552db 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4389,6 +4389,16 @@ let pkgs = rec { xkeyboard_config dbus hal; }); + zabbixAgent = import ../servers/monitoring/zabbix { + inherit fetchurl stdenv; + enableServer = false; + }; + + zabbixServer = import ../servers/monitoring/zabbix { + inherit fetchurl stdenv postgresql curl; + enableServer = true; + }; + ### OS-SPECIFIC