mirror of https://github.com/Icinga/icinga2.git
Add timestamp support for PerfdataWriter
Change the default from $timet$ to ${host,service}.last_check$ fixes #9185
This commit is contained in:
parent
99d57ba981
commit
beead48302
|
@ -40,7 +40,7 @@ class PerfdataWriter : DynamicObject
|
||||||
[config] String host_format_template {
|
[config] String host_format_template {
|
||||||
default {{{
|
default {{{
|
||||||
return "DATATYPE::HOSTPERFDATA\t"
|
return "DATATYPE::HOSTPERFDATA\t"
|
||||||
"TIMET::$icinga.timet$\t"
|
"TIMET::$host.last_check$\t"
|
||||||
"HOSTNAME::$host.name$\t"
|
"HOSTNAME::$host.name$\t"
|
||||||
"HOSTPERFDATA::$host.perfdata$\t"
|
"HOSTPERFDATA::$host.perfdata$\t"
|
||||||
"HOSTCHECKCOMMAND::$host.check_command$\t"
|
"HOSTCHECKCOMMAND::$host.check_command$\t"
|
||||||
|
@ -51,7 +51,7 @@ class PerfdataWriter : DynamicObject
|
||||||
[config] String service_format_template {
|
[config] String service_format_template {
|
||||||
default {{{
|
default {{{
|
||||||
return "DATATYPE::SERVICEPERFDATA\t"
|
return "DATATYPE::SERVICEPERFDATA\t"
|
||||||
"TIMET::$icinga.timet$\t"
|
"TIMET::$service.last_check$\t"
|
||||||
"HOSTNAME::$host.name$\t"
|
"HOSTNAME::$host.name$\t"
|
||||||
"SERVICEDESC::$service.name$\t"
|
"SERVICEDESC::$service.name$\t"
|
||||||
"SERVICEPERFDATA::$service.perfdata$\t"
|
"SERVICEPERFDATA::$service.perfdata$\t"
|
||||||
|
|
Loading…
Reference in New Issue