diff --git a/check_mailstat.cfg b/check_mailstat.cfg new file mode 100644 index 0000000..e2d9b7e --- /dev/null +++ b/check_mailstat.cfg @@ -0,0 +1,9 @@ +# the following check requires an additional command option +# for the running mailgraph process: +# -s /var/log/mailgraph/mailgraph.stats +# Please make sure that the file and a file with the +# same name but ending .old exist and are writable by +# the user executing the check below. Example: +# touch /var/log/mailgraph/mailgraph.stats{,old} +# chown nagios: /var/log/mailgraph/mailgraph.stats{,old} +command[check_mailstat]=/usr/lib/nagios/plugins/check_mailstat -w 1000:0:0:0:0:10 -c 2000:0:0:0:0:30 -s /var/log/mailgraph/mailgraph.statsi diff --git a/monitoring-plugins-mailstat.changes b/monitoring-plugins-mailstat.changes index f8b73a0..24db028 100644 --- a/monitoring-plugins-mailstat.changes +++ b/monitoring-plugins-mailstat.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sun Jun 21 09:51:12 UTC 2020 - lars@linux-schulserver.de - 0.9.1 + +- require perl(RRDs) for the images and mailgraph for the stats +- add an example check_mailstat.cfg NRPE definition + ------------------------------------------------------------------- Wed Jul 30 19:17:09 UTC 2014 - lars@linux-schulserver.de diff --git a/monitoring-plugins-mailstat.spec b/monitoring-plugins-mailstat.spec index c4c45e3..deec607 100644 --- a/monitoring-plugins-mailstat.spec +++ b/monitoring-plugins-mailstat.spec @@ -1,7 +1,7 @@ # # spec file for package monitoring-plugins-mailstat # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,19 +12,20 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: monitoring-plugins-mailstat Version: 0.9.1 -Release: 100 +Release: 0 Summary: Monitoring mail server statistics -License: GPL-3.0+ +License: GPL-3.0-or-later Group: System/Monitoring -Url: http://linuxplayer.org/2010/12/check_mailstat-pl-a-nagios-plugin-for-monitoring-mail-server-statistics +URL: http://linuxplayer.org/2010/12/check_mailstat-pl-a-nagios-plugin-for-monitoring-mail-server-statistics Source0: check_mailstat_plugin_v%{version}.zip Source1: monitoring-plugins-mailstat-rpmlintrc +Source2: check_mailstat.cfg # PATCH-FIX-UPSTREAM -- allow to configure the path name of the statistics file via -s option Patch1: check_mailstat_plugin_v0.9.1-stat_file.patch # PATCH-FIX-UPSTREAM -- write out the initial values if there is no old file instead of all zero (confuses people) @@ -35,6 +36,8 @@ Recommends: perl %endif BuildRequires: nagios-rpm-macros BuildRequires: unzip +Requires: mailgraph +Requires: perl(RRDs) Provides: nagios-plugins-mailstat = %{version}-%{release} Obsoletes: nagios-plugins-mailstat < %{version}-%{release} Requires: monitoring-plugins-common @@ -60,6 +63,7 @@ sed -i "s| ||g" README.txt install -D -m755 check_mailstat.pl %{buildroot}/%{nagios_plugindir}/check_mailstat ln -s %{nagios_plugindir}/check_mailstat %{buildroot}/%{nagios_plugindir}/check_mailstat.pl install -D -m644 extra/check_mailstat.php %{buildroot}/%{pnp4nagios_templatedir}/check_mailstat.php +install -D -m644 %{SOURCE2} %{buildroot}%{nrpe_sysconfdir}/check_mailstat.cfg %clean rm -rf %{buildroot} @@ -70,9 +74,11 @@ rm -rf %{buildroot} # avoid build dependecy of nagios - own the dirs %dir %{nagios_libdir} %dir %{nagios_plugindir} +%dir %{nrpe_sysconfdir} %{nagios_plugindir}/check_mailstat* %dir %{pnp4nagios_datarootdir} %dir %{pnp4nagios_templatedir} %config(noreplace) %{pnp4nagios_templatedir}/check_mailstat.php +%config(noreplace) %{nrpe_sysconfdir}/check_mailstat.cfg %changelog