Hello, Am Freitag, 20. März 2020, 00:26:28 CET schrieb Michael Matz:
On Thu, 19 Mar 2020, Lars Vogdt wrote:
You could also consider to sync a file containing a timestamp in your script. Let's say: https://gcc.opensuse.org/.last_sync - containing something like "2020-03-19 22:02:03". Our monitoring could download the file, parse it's content, and alert if the date is older than a day (or whenever your sync normally runs).
This is actually a great idea, thanks! The sync job does this now, and there is:
% curl https://gcc.opensuse.org/gcc-old/last_synced 2020-03-20T00:14:41+0100
(i.e. you could directly pass this into 'date --date=$abovestring +%s' to calculate seconds difference to a reference seconds-since-epoch; should not be more than 36 hours normally)
More boring idea - maybe just check the file timestamp, like we already do for logfiles (and warn if they are older than x hours)? Regards, Christian Boltz --
Herr K hat seine Seele verkauft. Nein, hochgeladen, zu Leuten, die damit verantwortungsvoll umgehen können. [> Nicole Britz und Kristian Köhntopp in https://plus.google.com/+KristianKöhntopp/posts/2rvcxyr3RVR]
-- To unsubscribe, e-mail: heroes+unsubscribe@opensuse.org To contact the owner, e-mail: heroes+owner@opensuse.org