Add timestamp support for PerfdataWriter

Change the default from $timet$ to ${host,service}.last_check$

fixes #9185
This commit is contained in:
Michael Friedrich 2015-04-27 15:06:48 +02:00
parent b921439f38
commit dcc8704e2d
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class PerfdataWriter : DynamicObject
[config] String host_format_template {
default {{{
return "DATATYPE::HOSTPERFDATA\t"
"TIMET::$icinga.timet$\t"
"TIMET::$host.last_check$\t"
"HOSTNAME::$host.name$\t"
"HOSTPERFDATA::$host.perfdata$\t"
"HOSTCHECKCOMMAND::$host.check_command$\t"
@ -51,7 +51,7 @@ class PerfdataWriter : DynamicObject
[config] String service_format_template {
default {{{
return "DATATYPE::SERVICEPERFDATA\t"
"TIMET::$icinga.timet$\t"
"TIMET::$service.last_check$\t"
"HOSTNAME::$host.name$\t"
"SERVICEDESC::$service.name$\t"
"SERVICEPERFDATA::$service.perfdata$\t"