Thanks for the response. I hear what you are saying about date compares, but it seems like Observium is already manipulating the response. I say this because the string in the UI, it says:
Diagnostics Results (last 2022-10-10) ok But the actual returned string from the device via SNMP: # snmpget -v2c -c [redacted community] [redacted host name] .1.3.6.1.4.1.318.1.1.1.7.2.4.0 iso.3.6.1.4.1.318.1.1.1.7.2.4.0 = STRING: "10/10/2022" I think what I am saying is, observium doesn't seem to be handling it as an arbitrary value. From: Adam Armstrong via observium <[email protected]> Sent: Monday, October 10, 2022 11:03 AM To: Alex Rubenstein via observium <[email protected]> Cc: Adam Armstrong <[email protected]> Subject: [Observium] Re: APC UPS Monitoring 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]<mailto:[email protected]> To unsubscribe send an email to [email protected]<mailto:[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]
