Hello, On Thu, 19 Mar 2020, Lars Vogdt wrote:
broken, the webserver continued to work), from inside the SUSE network. I don't know if you have the capability to do such checking. (I could add a ssh key for that purpose).
I think I don't need to be inside the SUSE network to test of a rsync via ssh to this machine works: shouldn't it be enough to test this from the monitoring server?
(I was unsure if ssh access to gate.opensuse.org:2271 was or wasn't allowed from the outside. It once was internal-only many years ago.)
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) Ciao, Michael. -- To unsubscribe, e-mail: heroes+unsubscribe@opensuse.org To contact the owner, e-mail: heroes+owner@opensuse.org