Skip to content

Commit

Permalink
nagiosPlugins.openbsd_snmp3_check: init at 0.55
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers authored Oct 30, 2024
1 parent 9a20c8c commit efe481b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
fetchFromGitHub,
lib,
nix-update-script,
openbsd_snmp3_check,
python3Packages,
testers,
}:
python3Packages.buildPythonApplication rec {
pname = "openbsd_snmp3_check";
version = "0.55";
pyproject = false;

src = fetchFromGitHub {
owner = "alexander-naumov";
repo = "openbsd_snmp3_check";
rev = "v${version}";
hash = "sha256-qDYANMvQU72f9wz8os7S1PfBH08AAqhtWLHVuSmkub4=";
};

postInstall = ''
install -Dm755 openbsd_snmp3.py $out/bin/openbsd_snmp3.py
'';

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

meta = with lib; {
changelog = "https://github.com/alexander-naumov/openbsd_snmp3_check/releases/tag/v${version}";
description = "SNMP v3 check for OpenBSD systems state monitoring";
homepage = "https://github.com/alexander-naumov/openbsd_snmp3_check";
license = with licenses; [ bsd3 ];
platforms = platforms.unix;
maintainers = with maintainers; [ jwillikers ];
mainProgram = "openbsd_snmp3.py";
};
}
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 @@ -13,4 +13,5 @@

inherit (callPackage ./labs_consol_de { }) check_mssql_health check_nwc_health check_ups_health;
manubulon-snmp-plugins = callPackage ./manubulon-snmp-plugins { };
openbsd_snmp3_check = callPackage ./openbsd_snmp3_check { };
}

0 comments on commit efe481b

Please sign in to comment.