The requirement seems simple enough in Server & Application Monitor:
1. Monitor an HTTPS url, such as: https://foo.bar/1
That's a plain text page with a bunch of technical data... if the STATUS line text = warning or critical, send an alert. That's easy enough. The native HTTPS MONITOR module, do a search string, fail if found, done in one.
2. Have the failure alert email to also include the full text output of https://foo.bar/1
Basically it's a bunch of technical and API notes and the last so many log entries to speed up investigations. If SAM sees warning or critical, I'd like to have the application/SAM collect the contents of https://foo.bar/1 and include it in the alert email that gets sent.
Has anyone ever done this before in SAM? Is there a module or plugin etc I should try?