The only way to do this would be to create a probe that fetches the
value and does the calculations on it. You could likely do this in PHP
or python or whatever.
You could also create a custom status indicator that extracts this in
PHP, but the probe might be easier.
Imagine trying to write a UI to extract an arbitrary value from a text
string and then do date matching on it!
adam.
Alex Rubenstein via observium wrote on 2022-10-10 15:59:
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?
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]
--
Sent from Postbox
<https://www.postbox-inc.com/?utm_source=email&utm_medium=siglink&utm_campaign=reach>
_______________________________________________
observium mailing list -- [email protected]
To unsubscribe send an email to [email protected]