rewrite check_tivoli to scan the logfile backwards, which is much faster especially on huge logs that do not get rotated frequently.