Skip to content

Commit

Permalink
esx
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Aug 7, 2017
1 parent a7c8f5e commit f9f8006
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/servers/monitoring/plugins/esx.nix
@@ -0,0 +1,28 @@
{ stdenv, fetchurl, python2Packages }:

python2Packages.buildPythonApplication rec {
name = "check-esx-wbem-${version}";
version = "20161013";

src = fetchurl {
url = "https://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.py";
sha256 = "0zrlwff16b33kawnwgzv0i6hax3xsb99nfyjfjs72aa60rrrp41v";
};

phases = [ "installPhase" "fixupPhase" ];

installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 $src $out/bin/check_esxi_hardware.py
runHook postInstall
'';

propagatedBuildInputs = with python2Packages; [ pywbem ];

meta = with stdenv.lib; {

};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -11343,6 +11343,8 @@ with pkgs;

neo4j = callPackage ../servers/nosql/neo4j { };

check-esx-wbem = callPackage ../servers/monitoring/plugins/esx.nix {};

net_snmp = callPackage ../servers/monitoring/net-snmp {
# https://sourceforge.net/p/net-snmp/bugs/2712/
# remove after net-snmp > 5.7.3
Expand Down
16 changes: 16 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -29464,6 +29464,22 @@ EOF
};
};

pywbem = buildPythonPackage rec {
name = "pywbem-${version}";
version = "0.10.0";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pywbem/${name}.tar.gz";
sha256 = "0if8bjyh6bzc1qx8kddprg3sfw1j361wb2gdsshiy14rfl464fiq";
};
propagatedBuildInputs = with self; [ m2crypto ply pyyaml six ];
meta = with pkgs.stdenv.lib; {
description = "Support for the WBEM standard for systems management.";
homepage = http://pywbem.github.io/pywbem/;
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
};
};

unicorn = buildPythonPackage rec {
name = "unicorn-${version}";
version = "1.0.1";
Expand Down

0 comments on commit f9f8006

Please sign in to comment.