commit c2a411b85d70176c453e27d555695216ad5af9f6 Author: eabdullin Date: Wed May 24 11:55:49 2023 +0300 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90a739b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/zabbix-agent2-plugin-mongodb-6.0.17.tar.gz diff --git a/.zabbix-agent2-plugin-mongodb.metadata b/.zabbix-agent2-plugin-mongodb.metadata new file mode 100644 index 0000000..14fb3c6 --- /dev/null +++ b/.zabbix-agent2-plugin-mongodb.metadata @@ -0,0 +1 @@ +d4717e9ffa3f0fbcde10a0751205741bdeb1cbe0 SOURCES/zabbix-agent2-plugin-mongodb-6.0.17.tar.gz diff --git a/SOURCES/conf.patch b/SOURCES/conf.patch new file mode 100644 index 0000000..ac24871 --- /dev/null +++ b/SOURCES/conf.patch @@ -0,0 +1,12 @@ +diff -urN zabbix-agent2-plugin-mongodb-1.0.0.orig/mongodb.conf zabbix-agent2-plugin-mongodb-1.0.0/mongodb.conf +--- zabbix-agent2-plugin-mongodb-1.0.0.orig/mongodb.conf 2022-06-01 19:05:59.003178610 +0300 ++++ zabbix-agent2-plugin-mongodb-1.0.0/mongodb.conf 2022-06-01 19:09:09.975455721 +0300 +@@ -5,6 +5,8 @@ + # Default: + # Plugins.MongoDB.System.Path= + ++Plugins.MongoDB.System.Path=/usr/sbin/zabbix-agent2-plugin/zabbix-agent2-plugin-mongodb ++ + ### Option: Plugins.MongoDB.Timeout + # Amount of time to wait for a server to respond when first connecting and on + # follow up operations in the session. diff --git a/SPECS/zabbix-agent2-plugin-mongodb.spec b/SPECS/zabbix-agent2-plugin-mongodb.spec new file mode 100644 index 0000000..5c164ad --- /dev/null +++ b/SPECS/zabbix-agent2-plugin-mongodb.spec @@ -0,0 +1,58 @@ +Name: zabbix-agent2-plugin-mongodb +Version: 6.0.17 +Release: %{?alphatag:%{?alphatag}.}release1%{?dist} +Summary: Zabbix Agent2 plugin for monitoring MongoDB 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 MongoDB 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-mongodb $RPM_BUILD_ROOT%{_sbindir}/zabbix-agent2-plugin/ +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d/ +cp mongodb.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-mongodb +%config(noreplace) %{_sysconfdir}/zabbix/zabbix_agent2.d/plugins.d/mongodb.conf + +%changelog +* Mon Apr 24 2023 Zabbix Packager - 6.0.17-release1 +- update to 6.0.17 + +* Wed Feb 1 2023 Zabbix Packager - 6.0.13-release1 +- update to 6.0.13 + +* Wed Jan 25 2023 Zabbix Packager - 6.0.13-rc1.release1 +- update to 6.0.13rc1 + +* Thu Nov 17 2022 Zabbix Packager - 1.2.0-2 +- release 2 of 1.2.0 + +* Mon Oct 31 2022 Zabbix Packager - 1.2.0-1 +- update to 1.2.0 + +* Tue Sep 27 2022 Zabbix Packager - 1.1.0-1 +- update to 1.1.0 + +* Mon May 30 2022 Zabbix Packager - 1.0.0-1 +- initial release of mongodb plugin for zabbix agent2