From d827d470e8258e24338963e0b078fbe2c4f5cf22 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 10 Oct 2013 12:32:50 +0200 Subject: [PATCH] Update permissions in the spec file. --- doc/2.3-setting-up-check-plugins.md | 14 +++++++------- icinga2.spec.in | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/2.3-setting-up-check-plugins.md b/doc/2.3-setting-up-check-plugins.md index 8a76db299..848b05791 100644 --- a/doc/2.3-setting-up-check-plugins.md +++ b/doc/2.3-setting-up-check-plugins.md @@ -9,14 +9,14 @@ The recommended way of installing these standard plugins is to use your distribution's package manager. For your convenience here is a list of package names for some of the more popular operating systems/distributions: -OS/Distribution | Package Name | Installation Path -----------------|----------------|--------------------------- -RHEL/CentOS | nagios-plugins | /usr/lib/nagios/plugins -Debian | nagios-plugins | /usr/lib/nagios/plugins -FreeBSD | nagios-plugins | /usr/local/libexec/nagios -OS X (MacPorts) | nagios-plugins | /opt/local/libexec +OS/Distribution | Package Name | Installation Path +-----------------------|--------------------|--------------------------- +RHEL/CentOS (EPEL) | nagios-plugins-all | /usr/lib/nagios/plugins or /usr/lib64/nagios/plugins +Debian | nagios-plugins | /usr/lib/nagios/plugins +FreeBSD | nagios-plugins | /usr/local/libexec/nagios +OS X (MacPorts) | nagios-plugins | /opt/local/libexec Depending on which directory your plugins are installed into you may need to update the `plugindir` macro in your Icinga 2 configuration. This macro is used by the service templates contained in the Icinga Template Library to determine -where to find the plugin binaries. \ No newline at end of file +where to find the plugin binaries. diff --git a/icinga2.spec.in b/icinga2.spec.in index 9278c0789..5a898c6f2 100644 --- a/icinga2.spec.in +++ b/icinga2.spec.in @@ -200,11 +200,11 @@ fi %exclude %{_datadir}/%{name}/itl %{_mandir}/man8/%{name}.8.gz -%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/cache/%{name} -%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name} -%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/compat -%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/compat/archives -%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/run/%{name} +%attr(0751,%{icinga_user},%{icinga_group}) %{_localstatedir}/cache/%{name} +%attr(0751,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name} +%attr(0751,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/compat +%attr(0751,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/compat/archives +%attr(0751,%{icinga_user},%{icinga_group}) %{_localstatedir}/run/%{name} %attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/lib/%{name} %attr(2755,%{icinga_user},%{icingacmd_group}) %{_localstatedir}/run/icinga2/cmd