Merge pull request #41617 from peterhoeg/p/mssql
check-mssql-health: init at 2.6.4.14
This commit is contained in:
commit
b48af23d16
17
pkgs/development/perl-modules/DBD-sybase/default.nix
Normal file
17
pkgs/development/perl-modules/DBD-sybase/default.nix
Normal 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;
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, fetchurl, buildPerlPackage, autoreconfHook, makeWrapper
|
{ stdenv, fetchFromGitHub, fetchurl, buildPerlPackage, autoreconfHook, makeWrapper
|
||||||
, perl, NetSNMP, coreutils, gnused, gnugrep }:
|
, perl, DBDsybase, NetSNMP, coreutils, gnused, gnugrep }:
|
||||||
|
|
||||||
let
|
let
|
||||||
glplugin = fetchFromGitHub {
|
glplugin = fetchFromGitHub {
|
||||||
@ -9,11 +9,10 @@ let
|
|||||||
sha256 = "0wb55a9pmgbilfffx0wkiikg9830qd66j635ypczqp4basslpq5b";
|
sha256 = "0wb55a9pmgbilfffx0wkiikg9830qd66j635ypczqp4basslpq5b";
|
||||||
};
|
};
|
||||||
|
|
||||||
generic = { pname, version, sha256, description, ... } @ attrs:
|
generic = { pname, version, sha256, description, buildInputs, ... }:
|
||||||
let
|
let
|
||||||
attrs' = builtins.removeAttrs attrs [ "pname" "version" "rev" "sha256"];
|
|
||||||
name' = "${stdenv.lib.replaceStrings [ "-" ] [ "_" ] "${pname}"}-${version}";
|
name' = "${stdenv.lib.replaceStrings [ "-" ] [ "_" ] "${pname}"}-${version}";
|
||||||
in perl.stdenv.mkDerivation rec {
|
in perl.stdenv.mkDerivation {
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
@ -21,7 +20,7 @@ let
|
|||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ perl NetSNMP ];
|
buildInputs = [ perl ] ++ buildInputs;
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
nativeBuildInputs = [ autoreconfHook makeWrapper ];
|
||||||
|
|
||||||
@ -54,11 +53,20 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
in {
|
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 {
|
check-nwc-health = generic {
|
||||||
pname = "check_nwc_health";
|
pname = "check_nwc_health";
|
||||||
version = "7.0.1.3";
|
version = "7.0.1.3";
|
||||||
sha256 = "0rgd6zgd7kplx3z72n8zbzwkh8vnd83361sk9ibh6ng78sds1sl5";
|
sha256 = "0rgd6zgd7kplx3z72n8zbzwkh8vnd83361sk9ibh6ng78sds1sl5";
|
||||||
description = "Check plugin for network equipment.";
|
description = "Check plugin for network equipment.";
|
||||||
|
buildInputs = [ NetSNMP ];
|
||||||
};
|
};
|
||||||
|
|
||||||
check-ups-health = generic {
|
check-ups-health = generic {
|
||||||
@ -66,5 +74,6 @@ in {
|
|||||||
version = "2.8.2.2";
|
version = "2.8.2.2";
|
||||||
sha256 = "1gc2wjsymay2vk5ywc1jj9cvrbhs0fs851x8l4nc75df2g75v521";
|
sha256 = "1gc2wjsymay2vk5ywc1jj9cvrbhs0fs851x8l4nc75df2g75v521";
|
||||||
description = "Check plugin for UPSs.";
|
description = "Check plugin for UPSs.";
|
||||||
|
buildInputs = [ NetSNMP ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -12806,7 +12806,8 @@ with pkgs;
|
|||||||
|
|
||||||
monitoring-plugins = callPackage ../servers/monitoring/plugins { };
|
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-nwc-health
|
||||||
check-ups-health;
|
check-ups-health;
|
||||||
|
|
||||||
|
@ -4100,6 +4100,11 @@ let self = _self // overrides; _self = with self; {
|
|||||||
inherit (pkgs) postgresql;
|
inherit (pkgs) postgresql;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
DBDsybase = import ../development/perl-modules/DBD-sybase {
|
||||||
|
inherit fetchurl buildPerlPackage DBI;
|
||||||
|
inherit (pkgs) freetds;
|
||||||
|
};
|
||||||
|
|
||||||
DBFile = import ../development/perl-modules/DB_File {
|
DBFile = import ../development/perl-modules/DB_File {
|
||||||
inherit fetchurl buildPerlPackage;
|
inherit fetchurl buildPerlPackage;
|
||||||
inherit (pkgs) db;
|
inherit (pkgs) db;
|
||||||
|
Loading…
Reference in New Issue
Block a user