#163 closed defect (wontfix)
checkFile written date macro appears to be UTC not local time
|Reported by:||Roger Glass||Owned by:||MickeM|
I'm having some trouble with the checkFile check. We are watching a log file and want to be notified when it's modifed (written) time is more than an hour old. The check works, however the time returned when using the %write% macro appears to be in GMT. The time returned for a file with a local (pacific daylight savings time zone) time of 7:00 AM returns a time of 14:00.
Command we are using: check_nrpe -H $HOSTNAME$ -p 5666 -c checkfile -a file="c:\test.log" filter-written=\<60m syntax="UC4 was last found alive %write%" MinCrit=1
Result: UC4 was last found alive Thursday, April 10, 2008 14:00:15,
The date is right but not the time. This appears to be a bug.