Simon icon Simon
Flexible server monitoring

Introducing Simon 5!

Simon version 5 is now available. It is a massive update, introducing a much-requested feature: syncing the Simon data between multiple Macs, plus a Simon Status service, a Link Checker filter, improved Find filter, iMessage and Speak Error notifiers, a new app icon, and much more.

Important: please note that Simon 5 requires a minimum of macOS 10.12 (Sierra), and is a paid upgrade from Simon 4. Purchasers since September 1, 2020 automatically get a version 5 license (that also works in previous versions).

Read the Simon What's New page for details.

Log event notifier

new Simon user here. I created my first Test to monitor a specific link on a webpage for changes.
I used a couple of filters and everything seems fine; the "result" of the test is the new text of the monitored link (see the attached Activity pane screenshot).
Now, I want to log the changes in a txt file so I created a new notifier based on the "Log event - Script" that comes with the default installation.
If I make an exact copy (except of course the destination file) the notifier work fine but if I add a variable to log the test's change as well the notifier stops working (nothing is logged in the file).

I only added the {TestChangeText} variable to the default script so my script reads:
echo "{TestName} <{TestURL}> has {TestStatusPhrase} at {TestLastEventTime} on {TestLastEventDate} {TestChangeText}" >> ~/Dropbox/Webpages\ monitoring/EudraLex\ changes.txt

Am I using the wrong variable or missing something else?

Thanks for any help.

Screen Shot 2017-02-27 at 14.10.28 .png104.76 KB
David Sinclair's picture

Re: Log event notifier

Adding the {TestChangeText} variable may break the script if it includes quotes... which your example might, depending on whether the escaped &quot; text is interpreted as quotes or not. You could try filtering them out too, via a find & replace filter.