forked from pool/munin
Accepting request 157652 from home:vjt:ifad
Hello, this is an updated munin package (2.0.11) that also includes nginx plugins. OBS-URL: https://build.opensuse.org/request/show/157652 OBS-URL: https://build.opensuse.org/package/show/server:monitoring/munin?expand=0&rev=4
This commit is contained in:
parent
dbb9d43ce4
commit
bbb95028c9
@ -46,7 +46,7 @@ CGIDIR = $(DESTDIR)/srv/www/cgi-bin
|
|||||||
# scale better. On many versions of Linux as well as on Solaris
|
# scale better. On many versions of Linux as well as on Solaris
|
||||||
# /tmp will be a ramdisk.
|
# /tmp will be a ramdisk.
|
||||||
|
|
||||||
SSPOOLDIR = $(DESTDIR)/var/lib/spool/munin
|
SPOOLDIR = $(DESTDIR)/var/lib/spool/munin
|
||||||
|
|
||||||
# Suggested directory name for a pulic ramdisk based tmp directory.
|
# Suggested directory name for a pulic ramdisk based tmp directory.
|
||||||
# SSPOOLDIR := /tmp/muninspool
|
# SSPOOLDIR := /tmp/muninspool
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:9a87356b1f8662f444a7a2a86ff36809124ffe787c442de0ea35850194d602af
|
|
||||||
size 1236273
|
|
3
munin-2.0.11.1.tar.gz
Normal file
3
munin-2.0.11.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:89ac6a46e82471206c37ed11a9fe2023cbf4c7482517f70a67d5aa5f32366c18
|
||||||
|
size 1331839
|
@ -1,39 +0,0 @@
|
|||||||
diff --git a/common/lib/Munin/Common/Config.pm b/common/lib/Munin/Common/Config.pm
|
|
||||||
index 81b1dc8..76ff088 100644
|
|
||||||
--- a/common/lib/Munin/Common/Config.pm
|
|
||||||
+++ b/common/lib/Munin/Common/Config.pm
|
|
||||||
@@ -37,6 +37,7 @@ my %legal = map { $_ => 1 } (
|
|
||||||
"cdef_name", "graphable", "process", "realname",
|
|
||||||
"onlynullcdef", "group_order", "pipe", "pipe_command",
|
|
||||||
"unknown_limit", "num_unknowns", "dropdownlimit",
|
|
||||||
+ "max_size_x", "max_size_y",
|
|
||||||
"max_graph_jobs", "max_cgi_graph_jobs", "munin_cgi_graph_jobs",
|
|
||||||
"max_html_jobs", "num_messages");
|
|
||||||
|
|
||||||
diff --git a/master/_bin/munin-cgi-graph.in b/master/_bin/munin-cgi-graph.in
|
|
||||||
index 72a13ba..f09ca17 100755
|
|
||||||
--- a/master/_bin/munin-cgi-graph.in
|
|
||||||
+++ b/master/_bin/munin-cgi-graph.in
|
|
||||||
@@ -265,6 +265,22 @@ sub verify_parameters
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
+
|
|
||||||
+ # Checks the image size requested.
|
|
||||||
+ if (( CGI::param("size_x") || "") =~ m/^(\d+)/) {
|
|
||||||
+ my $max_size_x = ( $config->{max_size_x} || 4000);
|
|
||||||
+ if ($1 > $max_size_x) {
|
|
||||||
+ print STDERR "Warning: Asked image size x too large : $1 > $max_size_x. Bailing out.\n";
|
|
||||||
+ exit 1;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ if (( CGI::param("size_y") || "") =~ m/^(\d+)/) {
|
|
||||||
+ my $max_size_y = ($config->{max_size_y} || 4000);
|
|
||||||
+ if ($1 > $max_size_y) {
|
|
||||||
+ print STDERR "Warning: Asked image size y too large : $1 > $max_size_y. Bailing out.\n";
|
|
||||||
+ exit 1;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
#
|
|
||||||
# cron-jobs for munin-node
|
|
||||||
#
|
|
||||||
|
|
||||||
MAILTO=root
|
|
||||||
|
|
@ -5,5 +5,5 @@
|
|||||||
compress
|
compress
|
||||||
copytruncate
|
copytruncate
|
||||||
notifempty
|
notifempty
|
||||||
create 640 munin munin
|
create 640 root root
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#! /bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# munin-node Control the Munin Node Server (formerly Linpro RRD client)
|
# munin-node Control the Munin Node Server (formerly Linpro RRD client)
|
||||||
#
|
#
|
||||||
@ -91,3 +91,4 @@ case "$1" in
|
|||||||
exit 1
|
exit 1
|
||||||
esac
|
esac
|
||||||
rc_exit
|
rc_exit
|
||||||
|
|
||||||
|
8
munin-node.service
Normal file
8
munin-node.service
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Munin Node
|
||||||
|
Requires=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
ExecStart=/usr/sbin/munin-node
|
||||||
|
|
1
munin-node.tmpfiles
Normal file
1
munin-node.tmpfiles
Normal file
@ -0,0 +1 @@
|
|||||||
|
d /run/munin 0755 munin munin - -
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 7 11:06:49 UTC 2013 - vjt@openssl.it
|
||||||
|
|
||||||
|
- Add nginx plugins from http://github.com/ifad/nginx-munin
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 5 19:42:45 UTC 2013 - vjt@openssl.it
|
||||||
|
|
||||||
|
- BuildRequire perl-IO-Socket-INET6
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu May 3 15:09:14 UTC 2012 - wr@rosenauer.org
|
Thu May 3 15:09:14 UTC 2012 - wr@rosenauer.org
|
||||||
|
|
||||||
|
@ -10,4 +10,5 @@
|
|||||||
copytruncate
|
copytruncate
|
||||||
notifempty
|
notifempty
|
||||||
create 640 munin munin
|
create 640 munin munin
|
||||||
|
su munin munin
|
||||||
}
|
}
|
||||||
|
181
munin.spec
181
munin.spec
@ -4,38 +4,50 @@
|
|||||||
%define cgidir /srv/www/cgi-bin
|
%define cgidir /srv/www/cgi-bin
|
||||||
%define dbdir /var/lib/munin
|
%define dbdir /var/lib/munin
|
||||||
%define logdir /var/log/munin
|
%define logdir /var/log/munin
|
||||||
%define statedir /var/run/munin
|
%define plugindir /usr/lib/munin/plugins
|
||||||
|
|
||||||
|
|
||||||
Name: munin
|
Name: munin
|
||||||
Version: 1.4.7
|
Version: 2.0.11.1
|
||||||
Release: 1
|
Release: 1
|
||||||
|
License: GPL-2.0
|
||||||
Summary: Network-wide graphing framework (grapher/gatherer)
|
Summary: Network-wide graphing framework (grapher/gatherer)
|
||||||
License: GPL
|
Url: http://munin-monitoring.org/
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
URL: http://munin.sourceforge.net
|
|
||||||
Source0: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
Source0: http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
|
||||||
Source1: Makefile.config
|
Source1: Makefile.config
|
||||||
|
%if 0%{?suse_version} < 1220
|
||||||
Source2: munin-node.rc
|
Source2: munin-node.rc
|
||||||
|
%endif
|
||||||
Source3: munin.cron.d
|
Source3: munin.cron.d
|
||||||
Source4: munin.logrotate
|
Source4: munin.logrotate
|
||||||
Source5: munin-node.logrotate
|
Source5: munin-node.logrotate
|
||||||
Source6: munin-node.cron.d
|
|
||||||
Source7: plugins.conf
|
Source7: plugins.conf
|
||||||
Patch0: munin-CVE-2012-2147.patch
|
%if 0%{?suse_version} >= 1220
|
||||||
|
Source8: munin-node.tmpfiles
|
||||||
|
Source9: munin-node.service
|
||||||
|
%endif
|
||||||
|
# https://github.com/ifad/nginx-munin/archive/master.zip
|
||||||
|
Source10: nginx-munin.zip
|
||||||
|
BuildRequires: perl-HTML-Template perl-Log-Log4perl perl-Net-Server perl-Net-SNMP
|
||||||
|
BuildRequires: perl-Net-SSLeay
|
||||||
|
BuildRequires: html2text
|
||||||
|
BuildRequires: pwdutils
|
||||||
|
BuildRequires: unzip
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
%{?systemd_requires}
|
||||||
|
BuildRequires: systemd
|
||||||
|
BuildRequires: htmldoc
|
||||||
|
%else
|
||||||
|
BuildRequires: sysvinit
|
||||||
|
%endif
|
||||||
Requires: perl-base = %{perl_version}
|
Requires: perl-base = %{perl_version}
|
||||||
Requires: perl-HTML-Template perl-Log-Log4perl perl-Net-Server perl-Net-SNMP
|
Requires: perl-HTML-Template perl-Log-Log4perl perl-Net-Server perl-Net-SNMP
|
||||||
%if %suse_version >= 1110
|
Requires: perl-Net-SSLeay perl-File-Copy-Recursive perl-Date-Manip
|
||||||
Requires: perl-Net-SSLeay
|
Requires: perl-IO-Socket-INET6 pwdutils rrdtool
|
||||||
%endif
|
Recommends: logrotate cron
|
||||||
Requires: pwdutils rrdtool
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
||||||
BuildRequires: html2text htmldoc perl-HTML-Template perl-Log-Log4perl perl-Net-Server
|
|
||||||
BuildRequires: perl-Net-SNMP pwdutils sysvinit
|
|
||||||
%if %suse_version >= 1110
|
|
||||||
BuildRequires: perl-Net-SSLeay
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -53,15 +65,14 @@ RRDtool.
|
|||||||
|
|
||||||
|
|
||||||
%package node
|
%package node
|
||||||
Group: System/Monitoring
|
|
||||||
Summary: Network-wide graphing framework (node)
|
Summary: Network-wide graphing framework (node)
|
||||||
BuildArch: noarch
|
Group: System/Monitoring
|
||||||
Requires: perl-base = %{perl_version}
|
Requires: perl-base = %{perl_version}
|
||||||
Requires: perl-HTML-Template perl-Log-Log4perl perl-Net-Server perl-Net-SNMP
|
Requires: perl-HTML-Template perl-Log-Log4perl perl-Net-Server perl-Net-SNMP
|
||||||
%if %suse_version >= 1110
|
|
||||||
Requires: perl-Net-SSLeay
|
Requires: perl-Net-SSLeay
|
||||||
%endif
|
Requires: pwdutils ps sysstat logdigest
|
||||||
Requires: pwdutils ps sysstat
|
Recommends: logrotate
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description node
|
%description node
|
||||||
Munin is a highly flexible and powerful solution used to create graphs of
|
Munin is a highly flexible and powerful solution used to create graphs of
|
||||||
@ -89,7 +100,7 @@ RRDtool. To see a real example of Munin in action, take a peek at
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
cp %{SOURCE1} .
|
cp %{SOURCE1} .
|
||||||
%patch0 -p1
|
unzip %{SOURCE10}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -101,12 +112,8 @@ cp %{SOURCE1} .
|
|||||||
%__mkdir_p %{buildroot}/%{_sysconfdir}/munin/plugins
|
%__mkdir_p %{buildroot}/%{_sysconfdir}/munin/plugins
|
||||||
%__mkdir_p %{buildroot}/%{_sysconfdir}/munin/munin-conf.d
|
%__mkdir_p %{buildroot}/%{_sysconfdir}/munin/munin-conf.d
|
||||||
|
|
||||||
%__mkdir_p %{buildroot}/%{_sysconfdir}/init.d
|
|
||||||
%__install -m0755 %{SOURCE2} %{buildroot}/%{_sysconfdir}/init.d/munin-node
|
|
||||||
|
|
||||||
%__mkdir_p %{buildroot}/%{_sysconfdir}/cron.d
|
%__mkdir_p %{buildroot}/%{_sysconfdir}/cron.d
|
||||||
%__install -m0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/cron.d/munin
|
%__install -m0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/cron.d/munin
|
||||||
%__install -m0644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/cron.d/munin-node
|
|
||||||
|
|
||||||
%__mkdir_p %{buildroot}/etc/logrotate.d
|
%__mkdir_p %{buildroot}/etc/logrotate.d
|
||||||
%__install -m0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/logrotate.d/munin
|
%__install -m0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/logrotate.d/munin
|
||||||
@ -114,88 +121,132 @@ cp %{SOURCE1} .
|
|||||||
|
|
||||||
%__install -m0644 %{SOURCE7} %{buildroot}/%{_sysconfdir}/munin/plugin-conf.d/munin-node
|
%__install -m0644 %{SOURCE7} %{buildroot}/%{_sysconfdir}/munin/plugin-conf.d/munin-node
|
||||||
|
|
||||||
mkdir -p %{buildroot}/sbin
|
%__mkdir_p %{buildroot}/sbin
|
||||||
%__ln_s ../etc/init.d/munin-node $RPM_BUILD_ROOT/sbin/rcmunin-node
|
%if 0%{?suse_version} < 1220
|
||||||
|
%__mkdir_p %{buildroot}/%{_sysconfdir}/init.d
|
||||||
|
%__install -m0755 %{SOURCE2} %{buildroot}/%{_sysconfdir}/init.d/munin-node
|
||||||
|
%__ln_s %{_sysconfdir}/init.d/munin-node $RPM_BUILD_ROOT/sbin/rcmunin-node
|
||||||
|
%else
|
||||||
|
%__ln_s /sbin/service $RPM_BUILD_ROOT/sbin/rcmunin-node
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
%__mkdir_p %{buildroot}/%{_prefix}/lib/tmpfiles.d
|
||||||
|
%__install -m0644 %{SOURCE8} %{buildroot}/%{_prefix}/lib/tmpfiles.d/munin-node.conf
|
||||||
|
%__mkdir_p %{buildroot}/%{_unitdir}
|
||||||
|
%__install -m0644 %{SOURCE9} %{buildroot}/%{_unitdir}/munin-node.service
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%__mkdir_p %{buildroot}/%{logdir}
|
||||||
|
%__mkdir_p %{buildroot}/%{htmldir}
|
||||||
|
%__mkdir_p %{buildroot}/%{dbdir}
|
||||||
|
%__mkdir_p %{buildroot}/%{dbdir}/plugin-state
|
||||||
|
|
||||||
|
%__install -m0755 nginx-munin-master/nginx_* %{buildroot}/%{plugindir}
|
||||||
|
ln nginx-munin-master/README.org README.nginx
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
%{__rm} -rf %{buildroot}
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
/usr/sbin/groupadd -r munin &>/dev/null || :
|
getent group munin >/dev/null || /usr/sbin/groupadd -r munin
|
||||||
/usr/sbin/useradd -o -g munin -s /bin/false -r -c "munin monitoring" -d /var/lib/munin munin &>/dev/null || :
|
getent passwd munin > /dev/null || /usr/sbin/useradd -r -c "munin monitoring" -d %{dbdir} -g munin munin
|
||||||
|
|
||||||
%post
|
%post
|
||||||
mkdir -p %{htmldir}
|
|
||||||
mkdir -p %{logdir}
|
|
||||||
mkdir -p %{dbdir}
|
|
||||||
chown -R munin:munin %{htmldir}
|
chown -R munin:munin %{htmldir}
|
||||||
chown -R munin:munin %{logdir}
|
|
||||||
chown -R munin:munin %{statedir}
|
|
||||||
chown -R munin:munin %{dbdir}
|
chown -R munin:munin %{dbdir}
|
||||||
|
chmod 755 %{dbdir}
|
||||||
|
touch %{logdir}/munin-graph.log %{logdir}/munin-html.log %{logdir}/munin-nagios.log %{logdir}/munin-limits.log %{logdir}/munin-update.log
|
||||||
|
chown munin:munin %{logdir}/*
|
||||||
|
chown root:root %{logdir}/munin-node.log* >/dev/null 2>&1 || true
|
||||||
|
|
||||||
## Node
|
## Node
|
||||||
%pre node
|
%pre node
|
||||||
getent group munin >/dev/null || /usr/sbin/groupadd -r munin
|
getent group munin >/dev/null || /usr/sbin/groupadd -r munin
|
||||||
getent passwd munin > /dev/null || /usr/sbin/useradd -r -d %{dbdir} -g munin munin
|
getent passwd munin > /dev/null || /usr/sbin/useradd -r -c "munin monitoring" -d %{dbdir} -g munin munin
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
%service_add_pre munin-node.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%post node
|
%post node
|
||||||
if [ $1 = 1 ]
|
if [ $1 = 1 ]
|
||||||
then
|
then
|
||||||
|
%if 0%{?suse_version} < 1220
|
||||||
/sbin/chkconfig --add munin-node
|
/sbin/chkconfig --add munin-node
|
||||||
|
%endif
|
||||||
/usr/sbin/munin-node-configure --shell | sh
|
/usr/sbin/munin-node-configure --shell | sh
|
||||||
fi
|
fi
|
||||||
mkdir -p %{logdir}
|
|
||||||
mkdir -p %{dbdir}/plugin-state
|
|
||||||
chown -R munin:munin %{logdir}
|
|
||||||
chown -R munin:munin %{dbdir}
|
chown -R munin:munin %{dbdir}
|
||||||
chmod g+w %{dbdir}/plugin-state
|
chmod 755 %{dbdir}
|
||||||
|
touch %{logdir}/munin-node.log
|
||||||
|
chown munin:munin %{logdir}/*
|
||||||
|
chown root:root %{logdir}/munin-node.log*
|
||||||
|
chown -R nobody:nobody %{dbdir}/plugin-state/* >/dev/null 2>&1
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
systemd-tmpfiles --create /usr/lib/tmpfiles.d/munin-node.conf
|
||||||
|
%service_add_post munin-node.service
|
||||||
|
%else
|
||||||
/etc/init.d/munin-node status >/dev/null 2>&1 || /etc/init.d/munin-node start
|
/etc/init.d/munin-node status >/dev/null 2>&1 || /etc/init.d/munin-node start
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun node
|
%preun node
|
||||||
if [ $1 = 0 ]
|
if [ $1 = 1 ] ; then
|
||||||
then
|
%if 0%{?suse_version} < 1220
|
||||||
/sbin/service munin-node stop > /dev/null 2>&1
|
/sbin/service munin-node stop >/dev/null 2>&1
|
||||||
/sbin/chkconfig --del munin-node
|
/sbin/chkconfig --del munin-node
|
||||||
rmdir %{logdir} 2>/dev/null || true
|
%endif
|
||||||
|
rmdir %{logdir} 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
%service_del_preun munin-node.service
|
||||||
|
%else
|
||||||
%stop_on_removal munin-node
|
%stop_on_removal munin-node
|
||||||
|
%endif
|
||||||
|
|
||||||
%postun node
|
%postun node
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
%service_del_postun munin-node.service
|
||||||
|
%else
|
||||||
%restart_on_update munin-node
|
%restart_on_update munin-node
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%doc ChangeLog COPYING README UPGRADING
|
%doc ChangeLog COPYING README UPGRADING README.nginx
|
||||||
%{_bindir}/munin-check
|
%{_bindir}/munin-check
|
||||||
%{_bindir}/munin-cron
|
%{_bindir}/munin-cron
|
||||||
%{_bindir}/munindoc
|
%{_bindir}/munindoc
|
||||||
%dir %{_prefix}/lib/munin
|
%dir %{_prefix}/lib/munin
|
||||||
%{_prefix}/lib/munin/munin-graph
|
%{_prefix}/lib/munin/munin-graph
|
||||||
%{_prefix}/lib/munin/munin-html
|
%{_prefix}/lib/munin/munin-html
|
||||||
|
%{_prefix}/lib/munin/munin-datafile2storable
|
||||||
|
%{_prefix}/lib/munin/munin-storable2datafile
|
||||||
%{_prefix}/lib/munin/munin-limits
|
%{_prefix}/lib/munin/munin-limits
|
||||||
%{_prefix}/lib/munin/munin-update
|
%{_prefix}/lib/munin/munin-update
|
||||||
%{_prefix}/lib/munin/DejaVuSans.ttf
|
%{_prefix}/lib/munin/DejaVuSans.ttf
|
||||||
%{_prefix}/lib/munin/DejaVuSansMono.ttf
|
%{_prefix}/lib/munin/DejaVuSansMono.ttf
|
||||||
%{cgidir}/munin-cgi-graph
|
%{cgidir}/munin-cgi-graph
|
||||||
%{cgidir}/munin-fastcgi-graph
|
%{cgidir}/munin-cgi-html
|
||||||
%dir %{htmldir}
|
%attr(0755, munin, munin) %dir %{htmldir}
|
||||||
%{htmldir}/.htaccess
|
%attr(0444, munin, munin) %{htmldir}/.htaccess
|
||||||
%dir %{_sysconfdir}/munin
|
%dir %{_sysconfdir}/munin
|
||||||
%dir %{_sysconfdir}/munin/munin-conf.d
|
%dir %{_sysconfdir}/munin/munin-conf.d
|
||||||
%dir %{_sysconfdir}/munin/templates
|
%dir %{_sysconfdir}/munin/templates
|
||||||
|
%dir %{_sysconfdir}/munin/static
|
||||||
%config %{_sysconfdir}/munin/templates/*
|
%config %{_sysconfdir}/munin/templates/*
|
||||||
|
%config %{_sysconfdir}/munin/static/*
|
||||||
%config %{_sysconfdir}/cron.d/munin
|
%config %{_sysconfdir}/cron.d/munin
|
||||||
%config(noreplace) %{_sysconfdir}/munin/munin.conf
|
%config(noreplace) %{_sysconfdir}/munin/munin.conf
|
||||||
%config %{_sysconfdir}/logrotate.d/munin
|
%config %{_sysconfdir}/logrotate.d/munin
|
||||||
%dir %{statedir}
|
|
||||||
%dir %{perl_vendorlib}/Munin
|
%dir %{perl_vendorlib}/Munin
|
||||||
%dir %{perl_vendorlib}/Munin/Master
|
%dir %{perl_vendorlib}/Munin/Master
|
||||||
%{perl_vendorlib}/Munin/Master/Config.pm
|
%{perl_vendorlib}/Munin/Master/Config.pm
|
||||||
%{perl_vendorlib}/Munin/Master/GraphOld.pm
|
%{perl_vendorlib}/Munin/Master/GraphOld.pm
|
||||||
%{perl_vendorlib}/Munin/Master/Group.pm
|
%{perl_vendorlib}/Munin/Master/Group.pm
|
||||||
%{perl_vendorlib}/Munin/Master/GroupRepository.pm
|
%{perl_vendorlib}/Munin/Master/GroupRepository.pm
|
||||||
|
%{perl_vendorlib}/Munin/Master/HTMLConfig.pm
|
||||||
%{perl_vendorlib}/Munin/Master/HTMLOld.pm
|
%{perl_vendorlib}/Munin/Master/HTMLOld.pm
|
||||||
%{perl_vendorlib}/Munin/Master/Host.pm
|
%{perl_vendorlib}/Munin/Master/Host.pm
|
||||||
%{perl_vendorlib}/Munin/Master/LimitsOld.pm
|
%{perl_vendorlib}/Munin/Master/LimitsOld.pm
|
||||||
@ -211,6 +262,7 @@ fi
|
|||||||
%{_mandir}/man3/Munin::Master::GroupRepository.3pm.gz
|
%{_mandir}/man3/Munin::Master::GroupRepository.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Master::HTMLOld.3pm.gz
|
%{_mandir}/man3/Munin::Master::HTMLOld.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Master::Host.3pm.gz
|
%{_mandir}/man3/Munin::Master::Host.3pm.gz
|
||||||
|
%{_mandir}/man3/Munin::Master::LimitsOld.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Master::Logger.3pm.gz
|
%{_mandir}/man3/Munin::Master::Logger.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Master::Node.3pm.gz
|
%{_mandir}/man3/Munin::Master::Node.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Master::ProcessManager.3pm.gz
|
%{_mandir}/man3/Munin::Master::ProcessManager.3pm.gz
|
||||||
@ -227,23 +279,32 @@ fi
|
|||||||
%{_mandir}/man8/munin-limits.8.gz
|
%{_mandir}/man8/munin-limits.8.gz
|
||||||
%{_mandir}/man8/munin-update.8.gz
|
%{_mandir}/man8/munin-update.8.gz
|
||||||
%{_mandir}/man8/munin.8.gz
|
%{_mandir}/man8/munin.8.gz
|
||||||
|
%attr(0750, munin, munin) %dir %{logdir}
|
||||||
|
%attr(0755, munin, munin) %dir %{dbdir}
|
||||||
|
|
||||||
|
|
||||||
%files node
|
%files node
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
%{_sbindir}/munin-run
|
%{_sbindir}/munin-run
|
||||||
|
%{_sbindir}/munin-sched
|
||||||
%{_sbindir}/munin-node
|
%{_sbindir}/munin-node
|
||||||
%{_sbindir}/munin-node-configure
|
%{_sbindir}/munin-node-configure
|
||||||
|
%if 0%{?suse_version} >= 1220
|
||||||
|
%{_prefix}/lib/tmpfiles.d/munin-node.conf
|
||||||
|
%{_unitdir}/munin-node.service
|
||||||
|
%endif
|
||||||
%dir %{_prefix}/lib/munin
|
%dir %{_prefix}/lib/munin
|
||||||
%dir %{_prefix}/lib/munin/plugins
|
%{_prefix}/lib/munin/munin-async
|
||||||
%{_prefix}/lib/munin/plugins/*
|
%{_prefix}/lib/munin/munin-asyncd
|
||||||
|
%{_prefix}/lib/munin/plugins/
|
||||||
/sbin/rcmunin-node
|
/sbin/rcmunin-node
|
||||||
|
%if 0%{?suse_version} < 1220
|
||||||
|
%config %{_sysconfdir}/init.d/munin-node
|
||||||
|
%endif
|
||||||
%dir %{_sysconfdir}/munin/plugin-conf.d
|
%dir %{_sysconfdir}/munin/plugin-conf.d
|
||||||
%dir %{_sysconfdir}/munin/plugins
|
%dir %{_sysconfdir}/munin/plugins
|
||||||
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/munin-node
|
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/munin-node
|
||||||
%config(noreplace) %{_sysconfdir}/munin/munin-node.conf
|
%config(noreplace) %{_sysconfdir}/munin/munin-node.conf
|
||||||
%config %{_sysconfdir}/init.d/munin-node
|
|
||||||
%config %{_sysconfdir}/cron.d/munin-node
|
|
||||||
%config %{_sysconfdir}/logrotate.d/munin-node
|
%config %{_sysconfdir}/logrotate.d/munin-node
|
||||||
%dir %{perl_vendorlib}/Munin/Common
|
%dir %{perl_vendorlib}/Munin/Common
|
||||||
%{perl_vendorlib}/Munin/Common/Config.pm
|
%{perl_vendorlib}/Munin/Common/Config.pm
|
||||||
@ -252,6 +313,8 @@ fi
|
|||||||
%{perl_vendorlib}/Munin/Common/TLSClient.pm
|
%{perl_vendorlib}/Munin/Common/TLSClient.pm
|
||||||
%{perl_vendorlib}/Munin/Common/TLSServer.pm
|
%{perl_vendorlib}/Munin/Common/TLSServer.pm
|
||||||
%{perl_vendorlib}/Munin/Common/Timeout.pm
|
%{perl_vendorlib}/Munin/Common/Timeout.pm
|
||||||
|
%{perl_vendorlib}/Munin/Common/DictFile.pm
|
||||||
|
%{perl_vendorlib}/Munin/Common/SyncDictFile.pm
|
||||||
%dir %{perl_vendorlib}/Munin/Node
|
%dir %{perl_vendorlib}/Munin/Node
|
||||||
%{perl_vendorlib}/Munin/Node/Config.pm
|
%{perl_vendorlib}/Munin/Node/Config.pm
|
||||||
%dir %{perl_vendorlib}/Munin/Node/Configure
|
%dir %{perl_vendorlib}/Munin/Node/Configure
|
||||||
@ -267,6 +330,9 @@ fi
|
|||||||
%{perl_vendorlib}/Munin/Node/Service.pm
|
%{perl_vendorlib}/Munin/Node/Service.pm
|
||||||
%{perl_vendorlib}/Munin/Node/Session.pm
|
%{perl_vendorlib}/Munin/Node/Session.pm
|
||||||
%{perl_vendorlib}/Munin/Node/Utils.pm
|
%{perl_vendorlib}/Munin/Node/Utils.pm
|
||||||
|
%{perl_vendorlib}/Munin/Node/ProxySpooler.pm
|
||||||
|
%{perl_vendorlib}/Munin/Node/SpoolReader.pm
|
||||||
|
%{perl_vendorlib}/Munin/Node/SpoolWriter.pm
|
||||||
%{perl_vendorlib}/Munin/Plugin.pm
|
%{perl_vendorlib}/Munin/Plugin.pm
|
||||||
%dir %{perl_vendorlib}/Munin/Plugin
|
%dir %{perl_vendorlib}/Munin/Plugin
|
||||||
%{perl_vendorlib}/Munin/Plugin/Pgsql.pm
|
%{perl_vendorlib}/Munin/Plugin/Pgsql.pm
|
||||||
@ -274,6 +340,7 @@ fi
|
|||||||
%{_mandir}/man1/munin-node-configure.1.gz
|
%{_mandir}/man1/munin-node-configure.1.gz
|
||||||
%{_mandir}/man1/munin-node.1.gz
|
%{_mandir}/man1/munin-node.1.gz
|
||||||
%{_mandir}/man1/munin-run.1.gz
|
%{_mandir}/man1/munin-run.1.gz
|
||||||
|
%{_mandir}/man1/munin-sched.1.gz
|
||||||
%{_mandir}/man1/munindoc.1.gz
|
%{_mandir}/man1/munindoc.1.gz
|
||||||
%{_mandir}/man3/Munin::Common::Config.3pm.gz
|
%{_mandir}/man3/Munin::Common::Config.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Common::Defaults.3pm.gz
|
%{_mandir}/man3/Munin::Common::Defaults.3pm.gz
|
||||||
@ -288,7 +355,10 @@ fi
|
|||||||
%{_mandir}/man3/Munin::Node::Configure::Plugin.3pm.gz
|
%{_mandir}/man3/Munin::Node::Configure::Plugin.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Node::Configure::PluginList.3pm.gz
|
%{_mandir}/man3/Munin::Node::Configure::PluginList.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Node::Logger.3pm.gz
|
%{_mandir}/man3/Munin::Node::Logger.3pm.gz
|
||||||
|
%{_mandir}/man3/Munin::Node::ProxySpooler.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Node::OS.3pm.gz
|
%{_mandir}/man3/Munin::Node::OS.3pm.gz
|
||||||
|
%{_mandir}/man3/Munin::Node::SpoolReader.3pm.gz
|
||||||
|
%{_mandir}/man3/Munin::Node::SpoolWriter.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Node::SNMPConfig.3pm.gz
|
%{_mandir}/man3/Munin::Node::SNMPConfig.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Node::Server.3pm.gz
|
%{_mandir}/man3/Munin::Node::Server.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Node::Service.3pm.gz
|
%{_mandir}/man3/Munin::Node::Service.3pm.gz
|
||||||
@ -297,6 +367,9 @@ fi
|
|||||||
%{_mandir}/man3/Munin::Plugin.3pm.gz
|
%{_mandir}/man3/Munin::Plugin.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Plugin::Pgsql.3pm.gz
|
%{_mandir}/man3/Munin::Plugin::Pgsql.3pm.gz
|
||||||
%{_mandir}/man3/Munin::Plugin::SNMP.3pm.gz
|
%{_mandir}/man3/Munin::Plugin::SNMP.3pm.gz
|
||||||
|
%attr(0750, munin, munin) %dir %{logdir}
|
||||||
|
%attr(0755, munin, munin) %dir %{dbdir}
|
||||||
|
%attr(0775, nobody, nobody) %dir %{dbdir}/plugin-state
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
nginx-munin.zip
Normal file
3
nginx-munin.zip
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9ae0ef1144621c2507634adc20afc90c94ae90fa601284556d2168d10f2bb65d
|
||||||
|
size 9786
|
22
plugins.conf
22
plugins.conf
@ -13,7 +13,10 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
[mysql*]
|
[mysql*]
|
||||||
#env.mysqlopts -u someuser
|
#env.mysqladmin /usr/bin/mysqladmin
|
||||||
|
#env.mysqluser <someuser>
|
||||||
|
#env.mysqlpassword <password>
|
||||||
|
#env.mysqlopts -u <someuser> -p<password>
|
||||||
|
|
||||||
[exim*]
|
[exim*]
|
||||||
group mail
|
group mail
|
||||||
@ -33,3 +36,20 @@ env.logfile mail
|
|||||||
|
|
||||||
[dhcpd]
|
[dhcpd]
|
||||||
env.leasefile /var/lib/dhcp/db/dhcpd.leases
|
env.leasefile /var/lib/dhcp/db/dhcpd.leases
|
||||||
|
|
||||||
|
[fail2ban]
|
||||||
|
user root
|
||||||
|
|
||||||
|
[amavis]
|
||||||
|
user root
|
||||||
|
env.amavislog /var/log/mail
|
||||||
|
|
||||||
|
[courier*]
|
||||||
|
env.logtail /usr/bin/logtail
|
||||||
|
|
||||||
|
[perdition]
|
||||||
|
env.logtail /usr/bin/logtail
|
||||||
|
|
||||||
|
[mailscanner]
|
||||||
|
env.logtail /usr/bin/logtail
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user