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 globin committed Aug 9, 2017
1 parent cbca75b commit fd6e51d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/servers/monitoring/nagios/plugins/check_ssl_cert.nix
@@ -0,0 +1,28 @@
{ stdenv, fetchFromGitHub, file, openssl, makeWrapper, which, curl }:

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

src = fetchFromGitHub {
owner = "matteocorti";
repo = "check_ssl_cert";
rev = "v${version}";
sha256 = "07g4dhwp1plzmlqazapn0s0hysmf3kk0pa2x0wns482xm1v1mr05";
};

nativeBuildInputs = [ makeWrapper ];

makeFlags = [ "DESTDIR=$(out)/bin" "MANDIR=$(out)/share/man" ];

postInstall = ''
wrapProgram $out/bin/check_ssl_cert \
--prefix PATH : "${stdenv.lib.makeBinPath [ openssl file which curl ]}"
'';

meta = with stdenv.lib; {
description = "A Nagios plugin to check the CA and validity of an X.509 certificate";
license = licenses.gpl3;
platforms = platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
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 fd6e51d

Please sign in to comment.