Skip to content

Commit

Permalink
nagiosPlugins.check_interfaces: init at 1.4.4 (#349568)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers authored Oct 29, 2024
1 parent de2f9ce commit 4dece45
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
check_interfaces,
fetchurl,
lib,
net-snmp,
nix-update-script,
stdenv,
testers,
}:
stdenv.mkDerivation rec {
pname = "check_interfaces";
version = "1.4.4";

src = fetchurl {
url = "https://github.com/NETWAYS/check_interfaces/releases/download/v${version}/check_interfaces-${version}.tar.gz";
hash = "sha256-sQ2lee2gxyrl455tumMJ4EbKc8mYEDXl18Wik6daf5Q=";
};

buildInputs = [ net-snmp ];

configureFlags = [ "--libexecdir=${placeholder "out"}/bin" ];

enableParallelBuilding = true;

postInstall = ''
# Remove unnecessary header files
rm --recursive $out/include
'';

passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion {
package = check_interfaces;
};
};

meta = with lib; {
changelog = "https://github.com/NETWAYS/check_interfaces/releases/tag/v${version}";
description = "Icinga check plugin for network hardware interfaces";
homepage = "https://github.com/NETWAYS/check_interfaces/";
license = with licenses; [ gpl2Only ];
platforms = platforms.unix;
maintainers = with maintainers; [ jwillikers ];
mainProgram = "check_interfaces";
};
}
1 change: 1 addition & 0 deletions pkgs/servers/monitoring/nagios-plugins/plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

{
check_esxi_hardware = callPackage ./check_esxi_hardware { };
check_interfaces = callPackage ./check_interfaces { };
check_openvpn = callPackage ./check_openvpn { };
check_smartmon = callPackage ./check_smartmon { };
check_ssl_cert = callPackage ./check_ssl_cert { };
Expand Down

0 comments on commit 4dece45

Please sign in to comment.