On Thu, 19 Mar 2020, Lars Vogdt wrote:
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
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
% curl https://gcc.opensuse.org/gcc-old/last_synced
(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)
To unsubscribe, e-mail: heroes+unsubscribe(a)opensuse.org
To contact the owner, e-mail: heroes+owner(a)opensuse.org