5 manubulon-snmp-plugins,
11 stdenv.mkDerivation rec {
12 pname = "manubulon-snmp-plugins";
13 version = "2.1.0-unstable-2024-03-13";
15 src = fetchFromGitHub {
17 repo = "manubulon-snmp";
18 rev = "1a5afb2486802034146277010d956eba9c2ad54b";
19 hash = "sha256-B5CCGMkNv1wGnLQIl0yiGTH2j5MOlj5+MrRqbLNIwhE=";
22 buildInputs = with perlPackages; [
38 mkdir --parents $out/bin
39 install --mode=0755 plugins/*.pl $out/bin
44 for f in $out/bin/* ; do
45 wrapProgram $f --set PERL5LIB $PERL5LIB --set LC_ALL C
50 updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
51 tests.version = testers.testVersion {
52 package = manubulon-snmp-plugins;
53 # Program returns status code 3
54 command = "check_snmp_int.pl --version || true";
55 version = builtins.head (lib.splitString "-" version);
60 changelog = "https://github.com/SteScho/manubulon-snmp/releases/tag/v${version}";
61 description = "Set of Icinga/Nagios plugins to check hosts and hardware with the SNMP protocol";
62 homepage = "https://github.com/SteScho/manubulon-snmp";
63 license = with licenses; [ gpl2Only ];
64 platforms = platforms.unix;
65 maintainers = with maintainers; [ jwillikers ];