One of the status indicators on APC UPS’s is “Diagnostic Results.” It is shown as:

 

Diagnostics Results (last 2022-10-10)                        ok

 

I am looking to set up an alert where if the last diag date is more than N days ago, alert me. But since the date is somehow wrapped into the status name, rather than the status result, I am not sure how to do this.

 

Any pointers?