mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
* Added Zabbix, a system and network monitoring tool.
svn path=/nixpkgs/trunk/; revision=11963
This commit is contained in:
parent
c28744816a
commit
b4bd1c888a
25
pkgs/servers/monitoring/zabbix/default.nix
Normal file
25
pkgs/servers/monitoring/zabbix/default.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user