Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Aug 31, 2017
1 parent 96457d2 commit c5a48db
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
22 changes: 20 additions & 2 deletions pkgs/servers/monitoring/plugins/labs_consol_de.nix
Expand Up @@ -4,13 +4,22 @@
let
owner = "lausser";

glplugin = fetchFromGitHub {
glpluginSrc = fetchFromGitHub {
repo = "GLPlugin";
rev = "b92a261ca4bf84e5b20d3025cc9a31ade03c474b";
sha256 = "0kflnmpjmklq8fy2vf2h8qyvaiznymdi09z2h5qscrfi51xc9gmh";
inherit owner;
};

glplugin = generic {
pname = "GLPlugin";
inherit (glpluginSrc) rev sha256;
version = "20170804";
rev = "e959b412b5cf027c82a446668e026214fdcf8df3";
sha256 = "11l74xw62g15rqrbf9ff2bfd5iw159gwhhgbkxwdqi8sp9j6navk";
description = "Check plugin for network equipment.";
};

generic = { pname, version, rev, sha256, description, ... } @ attrs:
let
attrs' = builtins.removeAttrs attrs [ "pname" "version" "rev" "sha256"];
Expand All @@ -27,7 +36,8 @@ let
nativeBuildInputs = [ autoreconfHook makeWrapper ];

prePatch = with stdenv.lib; ''
ln -s ${glplugin}/* GLPlugin
mkdir -p GLPlugin
ln -s ${glpluginSrc}/* GLPlugin
substituteInPlace plugins-scripts/Makefile.am \
--replace /bin/cat ${getBin coreutils}/bin/cat \
--replace /bin/echo ${getBin coreutils}/bin/echo \
Expand Down Expand Up @@ -62,6 +72,14 @@ in {
description = "Check plugin for network equipment.";
};

check-video-health = generic {
pname = "check_video_health";
version = "20161110";
rev = "e68635929d95201d669ea293cefb99a01d54a74d";
sha256 = "13w9smddr8virdrchfjavw3yj5zqvx7w9hxwkk8zasc9qbwy491a";
description = "Check plugin for video conferencing systems.";
};

check-ups-health = generic {
pname = "check_ups_health";
version = "20170804";
Expand Down
1 change: 1 addition & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -11376,6 +11376,7 @@ with pkgs;

inherit (callPackage ../servers/monitoring/plugins/labs_consol_de.nix { inherit (perlPackages) NetSNMP; })
check-nwc-health
check-video-health
check-ups-health;

checkSSLCert = callPackage ../servers/monitoring/nagios/plugins/check_ssl_cert.nix { };
Expand Down

0 comments on commit c5a48db

Please sign in to comment.