1
0

- require perl(RRDs) for the images and mailgraph for the stats

- add an example check_mailstat.cfg NRPE definition

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins-mailstat?expand=0&rev=4
This commit is contained in:
Lars Vogdt 2020-06-21 09:57:51 +00:00 committed by Git OBS Bridge
parent 1a30cccfe8
commit d919006cc9
3 changed files with 26 additions and 5 deletions

9
check_mailstat.cfg Normal file
View File

@ -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

View File

@ -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

View File

@ -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