mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Fix enable_perfdata.
This commit is contained in:
parent
36c4cb0da8
commit
8686305848
@ -94,7 +94,7 @@ void GraphiteWriter::ReconnectTimerHandler(void)
|
||||
|
||||
void GraphiteWriter::CheckResultHandler(const Service::Ptr& service, const Dictionary::Ptr& cr)
|
||||
{
|
||||
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !service->GetEnablePerfdata())
|
||||
if (!(IcingaApplication::GetInstance()->GetEnablePerfdata() && service->GetEnablePerfdata()))
|
||||
return;
|
||||
|
||||
Host::Ptr host = service->GetHost();
|
||||
|
@ -84,7 +84,7 @@ double PerfdataWriter::GetRotationInterval(void) const
|
||||
|
||||
void PerfdataWriter::CheckResultHandler(const Service::Ptr& service, const Dictionary::Ptr& cr)
|
||||
{
|
||||
if (!IcingaApplication::GetInstance()->GetEnablePerfdata() || !service->GetEnablePerfdata())
|
||||
if (!(IcingaApplication::GetInstance()->GetEnablePerfdata() && service->GetEnablePerfdata()))
|
||||
return;
|
||||
|
||||
Host::Ptr host = service->GetHost();
|
||||
|
@ -6,6 +6,7 @@ template Service "generic-service" {
|
||||
max_check_attempts = 3,
|
||||
check_interval = 5m,
|
||||
retry_interval = 1m,
|
||||
enable_perfdata = 1,
|
||||
|
||||
notifications["mail-icingaadmin"] = {
|
||||
templates = [ "mail-notification" ],
|
||||
|
@ -85,6 +85,8 @@ type Service {
|
||||
%attribute number "enable_flapping",
|
||||
%attribute number "flapping_threshold",
|
||||
|
||||
%attribute number "enable_perfdata",
|
||||
|
||||
%attribute number "volatile",
|
||||
|
||||
%attribute array "host_dependencies" {
|
||||
|
Loading…
x
Reference in New Issue
Block a user