-
Notifications
You must be signed in to change notification settings - Fork 32
Description
I want import historical performance data with passive checks, example:
echo "[1566572900] PROCESS_SERVICE_CHECK_RESULT;host1;weather;0;OK|rainintensity=5.000mm/h">/opt/omd/sites/test/tmp/run/naemon.cmd
for time 23.08.2019 - 17:08:20
But in the nagflux database the entry has the actual time.
I assume the reason is the macro
etc/nagflux/nagios_nagflux.cfg: service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
the resulting data is
var/pnp4nagios/service-perfdata: DATATYPE::SERVICEPERFDATA TIMET::1566639139 HOSTNAME::host1 SERVICEDESC::weather SERVICEPERFDATA::rainintensity=5.000mm/h SERVICECHECKCOMMAND::check_dummy HOSTSTATE::UP HOSTSTATETYPE::HARD SERVICESTATE::OK SERVICESTATETYPE::HARD
1566639139 was the actual time: 24.08.2019 - 11:32:19
How can the service_perfdata_file_template changed to use the provided timestamp of the passive service check?
I use the OMD-Labs 3.1.