diff options
author | Peter Hoeg <peter@hoeg.com> | 2017-08-07 23:24:07 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2017-08-17 15:02:41 +0800 |
commit | 6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a (patch) | |
tree | ee0cc2161029b6bc67d212fe5a3a9c0813c8f014 /pkgs/servers | |
parent | 39bf20e7a3d9828822fcb1c531c2abdb54dc7bd9 (diff) | |
download | nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.tar nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.tar.gz nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.tar.bz2 nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.tar.lz nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.tar.xz nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.tar.zst nixlib-6ddd4cec8051cfa02cca88b142c2a4eaf4499d7a.zip |
check-esxi-hardware: init at 20161013
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/monitoring/plugins/esxi.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/servers/monitoring/plugins/esxi.nix b/pkgs/servers/monitoring/plugins/esxi.nix new file mode 100644 index 000000000000..312caab954bb --- /dev/null +++ b/pkgs/servers/monitoring/plugins/esxi.nix @@ -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 ]; + }; +} |