check-esxi-hardware: init at 20161013

+39
+37
pkgs/servers/monitoring/plugins/esxi.nix
··· 1 + { stdenv, fetchFromGitHub, python2Packages }: 2 + 3 + let 4 + bName = "check_esxi_hardware"; 5 + pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] "${bName}"; 6 + 7 + in python2Packages.buildPythonApplication rec { 8 + name = "${pName}-${version}"; 9 + version = "20161013"; 10 + 11 + src = fetchFromGitHub { 12 + owner = "Napsty"; 13 + repo = bName; 14 + rev = version; 15 + sha256 = "19zybcg62dqcinixnp1p8zw916x3w7xvy6dlsmn347iigfa5s55s"; 16 + }; 17 + 18 + dontBuild = true; 19 + doCheck = false; 20 + 21 + installPhase = '' 22 + runHook preInstall 23 + 24 + install -Dm755 -t $out/bin ${bName}.py 25 + install -Dm644 -t $out/share/doc/${pName} README.md 26 + 27 + runHook postInstall 28 + ''; 29 + 30 + propagatedBuildInputs = with python2Packages; [ pywbem ]; 31 + 32 + meta = with stdenv.lib; { 33 + homepage = https://www.claudiokuenzler.com/nagios-plugins/; 34 + license = licenses.gpl2; 35 + maintainer = with maintainers; [ peterhoeg ]; 36 + }; 37 + }
+2
pkgs/top-level/all-packages.nix
··· 11346 11346 11347 11347 neo4j = callPackage ../servers/nosql/neo4j { }; 11348 11348 11349 + check-esxi-hardware = callPackage ../servers/monitoring/plugins/esxi.nix {}; 11350 + 11349 11351 net_snmp = callPackage ../servers/monitoring/net-snmp { 11350 11352 # https://sourceforge.net/p/net-snmp/bugs/2712/ 11351 11353 # remove after net-snmp > 5.7.3