Opened 5 years ago

Closed 3 years ago

#163 closed defect (wontfix)

checkFile written date macro appears to be UTC not local time

Reported by: Roger Glass Owned by: MickeM
Priority: 1 Milestone: 0.3.8
Component: Core Module Version: 0.3.1
Severity: Bugs Keywords: checkfile
Cc:

Description

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.

Change History (1)

comment:1 Changed 3 years ago by mickem

  • Milestone set to 0.3.8
  • Resolution set to wontfix
  • Status changed from new to closed

Yes this is correct. but comparisons are made in relation to the same time zone so it is sort of a "feature"...

Michael Medin

Note: See TracTickets for help on using tickets.