add check_pgactivity package

Signed-off-by: monitorbuilder_pel7ppc64lebuilder0 <monitorbuilder@powerel.org>
master
monitorbuilder_pel7ppc64lebuilder0 2025-06-16 11:16:53 +02:00
parent 629d7e50fa
commit cd3b2f7368
1 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,38 @@
%define pluginsdir %{_libdir}/nagios/plugins/
### %global __tag REL2_7

Name: check_pgactivity
Version: 2.7
Release: 1%{dist}
%define _tag REL%(echo %{version} | sed 's/\\./_/')
Summary: PostgreSQL monitoring plugin for Nagios
License: PostgreSQL
Group: Applications/Databases
Url: https://github.com/OPMDG/check_pgactivity
Source0: https://github.com/OPMDG/check_pgactivity/archive/%{_tag}.tar.gz
Requires: nagios-plugins
Provides: nagios-plugins-pgactivity = %{version}
Provides: monitoring-plugins-pgactivity = %{version}


%description
check_pgactivity is a monitoring plugin of PostgreSQL for Nagios. It provides
many checks and allow the gathering of many performance counters.
check_pgactivity is part of Open PostgreSQL Monitoring.


%prep
%setup -n check_pgactivity-%{_tag}


%install
install -D -p -m 0755 check_pgactivity %{buildroot}/%{pluginsdir}/check_pgactivity


%files
%defattr(-,root,root,0755)
%{_libdir}/nagios/plugins/check_pgactivity
%doc README LICENSE


%changelog