Simon icon Simon
Flexible server monitoring

log to file?

Is there a way to have Simon log to a file?

A daily log file per service would be perfect.

I'm using Simon 2.3.5 on Mac OS X 10.4.11.


PS sorry about the double posts. the forum was dumping me to a reply window after posting the message, and I just assumed it was for a new message.

David Sinclair's picture

Re: log to file?

At present Simon keeps separate logs for each test, but they are stored with the test configuration. The older entries are automatically deleted, to keep to the maximum set in the preferences. In a future version I plan to separate them out.

In the meantime, you can select the desired lines in any of the log tables and choose Copy from the Edit menu, then paste them into a text file, if you wish.

I set up a notifier that

I set up a notifier that logs to a file, and added it to every test

echo "{TestName} <{TestURL}> has {TestStatusPhrase} at {TestLastEventTime} on {TestLastEventDate}. {TestLastError}" >> ~/Library/Logs/Simon\ Notifications.log

If you want by day, include date tokens in the path.

/Simon\ Notifications-%m-%d-%y.log

David Sinclair's picture

Re: notifier that logs to a file

Good point; Simon 2.3 actually includes such a notifier already.

If you've been using Simon from before version 2.3, you can download the script from the Simon Extras page.