Merge pull request #41617 from peterhoeg/p/mssql

check-mssql-health: init at 2.6.4.14
This commit is contained in:
Peter Hoeg 2018-06-07 14:55:59 +08:00 committed by GitHub
commit b48af23d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 6 deletions

View File

@ -0,0 +1,17 @@
{ fetchurl, buildPerlPackage, DBI, freetds }:
buildPerlPackage rec {
name = "DBD-Sybase-1.16";
src = fetchurl {
url = "mirror://cpan/authors/id/M/ME/MEWP/${name}.tar.gz";
sha256 = "1k6n261nrrcll9wxn5xwi4ibpavqv1il96687k62mbpznzl2gx37";
};
SYBASE = freetds;
buildInputs = [ freetds ] ;
propagatedBuildInputs = [ DBI ];
doCheck = false;
}

View File

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, fetchurl, buildPerlPackage, autoreconfHook, makeWrapper
, perl, NetSNMP, coreutils, gnused, gnugrep }:
, perl, DBDsybase, NetSNMP, coreutils, gnused, gnugrep }:
let
glplugin = fetchFromGitHub {
@ -9,11 +9,10 @@ let
sha256 = "0wb55a9pmgbilfffx0wkiikg9830qd66j635ypczqp4basslpq5b";
};
generic = { pname, version, sha256, description, ... } @ attrs:
generic = { pname, version, sha256, description, buildInputs, ... }:
let
attrs' = builtins.removeAttrs attrs [ "pname" "version" "rev" "sha256"];
name' = "${stdenv.lib.replaceStrings [ "-" ] [ "_" ] "${pname}"}-${version}";
in perl.stdenv.mkDerivation rec {
in perl.stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
@ -21,7 +20,7 @@ let
inherit sha256;
};
buildInputs = [ perl NetSNMP ];
buildInputs = [ perl ] ++ buildInputs;
nativeBuildInputs = [ autoreconfHook makeWrapper ];
@ -54,11 +53,20 @@ let
};
in {
check-mssql-health = generic {
pname = "check_mssql_health";
version = "2.6.4.14";
sha256 = "0w6gybrs7imx169l8740s0ax3adya867fw0abrampx59mnsj5pm1";
description = "Check plugin for Microsoft SQL Server.";
buildInputs = [ DBDsybase ];
};
check-nwc-health = generic {
pname = "check_nwc_health";
version = "7.0.1.3";
sha256 = "0rgd6zgd7kplx3z72n8zbzwkh8vnd83361sk9ibh6ng78sds1sl5";
description = "Check plugin for network equipment.";
buildInputs = [ NetSNMP ];
};
check-ups-health = generic {
@ -66,5 +74,6 @@ in {
version = "2.8.2.2";
sha256 = "1gc2wjsymay2vk5ywc1jj9cvrbhs0fs851x8l4nc75df2g75v521";
description = "Check plugin for UPSs.";
buildInputs = [ NetSNMP ];
};
}

View File

@ -12806,7 +12806,8 @@ with pkgs;
monitoring-plugins = callPackage ../servers/monitoring/plugins { };
inherit (callPackage ../servers/monitoring/plugins/labs_consol_de.nix { inherit (perlPackages) NetSNMP; })
inherit (callPackage ../servers/monitoring/plugins/labs_consol_de.nix { inherit (perlPackages) DBDsybase NetSNMP; })
check-mssql-health
check-nwc-health
check-ups-health;

View File

@ -4100,6 +4100,11 @@ let self = _self // overrides; _self = with self; {
inherit (pkgs) postgresql;
};
DBDsybase = import ../development/perl-modules/DBD-sybase {
inherit fetchurl buildPerlPackage DBI;
inherit (pkgs) freetds;
};
DBFile = import ../development/perl-modules/DB_File {
inherit fetchurl buildPerlPackage;
inherit (pkgs) db;