mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-31 01:24:19 +02:00
Change default directory for performance data to /var/spool/icinga2/perfdata.
Fixes #5089
This commit is contained in:
parent
1676af8b2d
commit
64dc5e9d00
@ -7,7 +7,7 @@ namespace icinga
|
|||||||
class PerfdataWriter : DynamicObject
|
class PerfdataWriter : DynamicObject
|
||||||
{
|
{
|
||||||
[config] String perfdata_path {
|
[config] String perfdata_path {
|
||||||
default {{{ return Application::GetLocalStateDir() + "/cache/icinga2/perfdata/perfdata"; }}}
|
default {{{ return Application::GetLocalStateDir() + "/spool/icinga2/perfdata/perfdata"; }}}
|
||||||
};
|
};
|
||||||
[config] String format_template {
|
[config] String format_template {
|
||||||
default {{{
|
default {{{
|
||||||
|
@ -472,7 +472,7 @@ Attributes:
|
|||||||
|
|
||||||
Name |Description
|
Name |Description
|
||||||
----------------|----------------
|
----------------|----------------
|
||||||
perfdata\_path |**Optional.** Path to the service performance data file. Defaults to IcingaLocalStateDir + "/cache/icinga2/perfdata/perfdata".
|
perfdata\_path |**Optional.** Path to the service performance data file. Defaults to IcingaLocalStateDir + "/spool/icinga2/perfdata/perfdata".
|
||||||
format\_template|**Optional.** Format template for the performance data file. Defaults to a template that's suitable for use with PNP4Nagios.
|
format\_template|**Optional.** Format template for the performance data file. Defaults to a template that's suitable for use with PNP4Nagios.
|
||||||
rotation\_interval|**Optional.** Rotation interval for the file specified in `perfdata\_path`. Defaults to 30 seconds.
|
rotation\_interval|**Optional.** Rotation interval for the file specified in `perfdata\_path`. Defaults to 30 seconds.
|
||||||
|
|
||||||
|
@ -327,6 +327,7 @@ fi
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING COPYING.Exceptions README NEWS AUTHORS ChangeLog
|
%doc COPYING COPYING.Exceptions README NEWS AUTHORS ChangeLog
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
||||||
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
|
||||||
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/itl
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/itl
|
||||||
%{_datadir}/%{name}/itl
|
%{_datadir}/%{name}/itl
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user