Skip to content

Commit

Permalink
check_ssl_cert: init at 1.51.0 (#28069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Metzger authored and qknight committed Aug 9, 2017
1 parent 345b35c commit 1db5273
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{ pkgs, openssl }:
#with import <nixpkgs> {};
with pkgs;

stdenv.mkDerivation rec {
name = "check_ssl_cert-${version}";
version = "1.51.0";

src = fetchgit {
url = https://github.com/matteocorti/check_ssl_cert;
rev = "4e31a82008a48cd6efb82914e0bb1e136b339a31"; # v1.51.0
sha256 = "1x1lcxxgzvjznn1iyla4hmc02c0vqdbzvd8xj61niknm02q07lcf";
};

buildInputs = [ makeWrapper file ];
#nativeBuildInputs = [ makeWrapper ];

phases = [ "unpackPhase" "installPhase" ];

installPhase = ''
mkdir -p $out/bin
mkdir -p $out/man
cp check_ssl_cert $out/bin
cp check_ssl_cert.1 $out/man1
wrapProgram $out/bin/check_ssl_cert \
--prefix PATH : "${openssl}/bin:${file}/bin"
'';

meta = {
description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
license = stdenv.lib.licenses.gpl3;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11360,6 +11360,8 @@ with pkgs;
munin = callPackage ../servers/monitoring/munin { };

nagiosPluginsOfficial = callPackage ../servers/monitoring/nagios/plugins/official-2.x.nix { };

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

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

Expand Down

0 comments on commit 1db5273

Please sign in to comment.