mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
check-esxi-hardware: init at 20161013
This commit is contained in:
parent
39bf20e7a3
commit
6ddd4cec80
37
pkgs/servers/monitoring/plugins/esxi.nix
Normal file
37
pkgs/servers/monitoring/plugins/esxi.nix
Normal file
@ -0,0 +1,37 @@
|
||||
{ stdenv, fetchFromGitHub, python2Packages }:
|
||||
|
||||
let
|
||||
bName = "check_esxi_hardware";
|
||||
pName = stdenv.lib.replaceStrings [ "_" ] [ "-" ] "${bName}";
|
||||
|
||||
in python2Packages.buildPythonApplication rec {
|
||||
name = "${pName}-${version}";
|
||||
version = "20161013";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Napsty";
|
||||
repo = bName;
|
||||
rev = version;
|
||||
sha256 = "19zybcg62dqcinixnp1p8zw916x3w7xvy6dlsmn347iigfa5s55s";
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
doCheck = false;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 -t $out/bin ${bName}.py
|
||||
install -Dm644 -t $out/share/doc/${pName} README.md
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python2Packages; [ pywbem ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://www.claudiokuenzler.com/nagios-plugins/;
|
||||
license = licenses.gpl2;
|
||||
maintainer = with maintainers; [ peterhoeg ];
|
||||
};
|
||||
}
|
@ -11346,6 +11346,8 @@ with pkgs;
|
||||
|
||||
neo4j = callPackage ../servers/nosql/neo4j { };
|
||||
|
||||
check-esxi-hardware = callPackage ../servers/monitoring/plugins/esxi.nix {};
|
||||
|
||||
net_snmp = callPackage ../servers/monitoring/net-snmp {
|
||||
# https://sourceforge.net/p/net-snmp/bugs/2712/
|
||||
# remove after net-snmp > 5.7.3
|
||||
|
Loading…
Reference in New Issue
Block a user