Fetch randomly stopped for us today. Reauthenticating with OAuth2 resolved.
I’m looking for a way to be notified when fetch stops on its own.
I’ve created a script that sends mail based on this query:
SELECT if(((last_activity - NOW()) * -1) > 300, 'yes', 'no') as fetch_test FROM osticket.ost_email_account WHERE id =3;
This works when fetch is disabled intentionally and I await a moment when it stops working (same as it did today) to see if the script also works then.
Another field in that same table, called “updated,” logs the same timestamp as “last_activity.”
Does anyone have other ideas on how to send notification if fetch is either off or just randomly not working?