Initial commit

This commit is contained in:
eabdullin 2023-05-24 11:57:53 +03:00
commit e8f7f3fae0
4 changed files with 66 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/zabbix-agent2-plugin-postgresql-6.0.17.tar.gz

View File

@ -0,0 +1 @@
67063b474d17f49e120190a578a7d6997c15a7da SOURCES/zabbix-agent2-plugin-postgresql-6.0.17.tar.gz

12
SOURCES/conf.patch Normal file
View File

@ -0,0 +1,12 @@
diff -urN zabbix-agent2-plugin-postgresql-1.0.0.orig/postgresql.conf zabbix-agent2-plugin-postgresql-1.0.0/postgres.conf
--- zabbix-agent2-plugin-postgresql-1.0.0.orig/postgresql.conf 2022-09-22 15:31:23.111160581 +0300
+++ zabbix-agent2-plugin-postgresql-1.0.0/postgresql.conf 2022-09-22 15:32:28.505829719 +0300
@@ -3,7 +3,7 @@
#
# Mandatory: yes
# Default:
-# Plugins.PostgreSQL.System.Path=
+Plugins.PostgreSQL.System.Path=/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql
### Option: Plugins.PostgreSQL.CallTimeout
# The maximum time in seconds for waiting when a request has to be done.

View File

@ -0,0 +1,52 @@
Name: zabbix-agent2-plugin-postgresql
Version: 6.0.17
Release: %{?alphatag:%{?alphatag}.}release1%{?dist}
Summary: Zabbix Agent2 plugin for monitoring PostgreSQL installations
Group: Applications/Internet
License: Apache 2.0
URL: http://www.zabbix.com/
Source0: %{name}-%{version}%{?alphatag}.tar.gz
Patch1: conf.patch
%description
Zabbix Agent2 plugin for monitoring PostgreSQL installations
%define debug_package %{nil}
%prep
%setup0 -q -n %{name}-%{version}%{?alphatag}
%patch1 -p1
%build
make
%install
mkdir -p $RPM_BUILD_ROOT%{_sbindir}/zabbix-agent2-plugin/
cp zabbix-agent2-plugin-postgresql $RPM_BUILD_ROOT%{_sbindir}/zabbix-agent2-plugin/
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d/
cp postgresql.conf $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_sbindir}/zabbix-agent2-plugin/zabbix-agent2-plugin-postgresql
%config(noreplace) %{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d/postgresql.conf
%changelog
* Mon Apr 24 2023 Zabbix Packager <info@zabbix.com> - 6.0.17-release1
- update to 6.0.17
* Wed Feb 1 2023 Zabbix Packager <info@zabbix.com> - 6.0.13-release1
- update to 6.0.13
* Wed Jan 25 2023 Zabbix Packager <info@zabbix.com> - 6.0.13-rc1.release1
- update to 6.0.13rc1
* Thu Nov 17 2022 Zabbix Packager <info@zabbix.com> - 1.2.0-2
- release 2 of 1.2.0
* Mon Oct 31 2022 Zabbix Packager <info@zabbix.com> - 1.2.0-1
- initial release of postgresql plugin for zabbix agent2