Monitoring seaf-cli on linux?

Hi, I have seaf-cli running on a smb server but it can happen from time to time that it stops syncing and needs to be restarted. The issue is that I don’t know when it stops syncing.
Is there a way to monitor the status without parsing the output?

Don’t really like output parsing since libraries can contain spaces so if I have something like this:

LcX Software synchronized

I could match it with regex \S+\s{2,}(\S+) and this would also work with a library like “LcX Software 2017” but I’m still not 100% happy with regex parsing.

If you are looking for some watchdog or workerInterrupt, you are out of luck. I think the best(only) way is as you said string parsing.