Some of my thoughts: A down could be: contains word X Or: does not contain word X File name to search should permit a naming scheme compatible with IIS logs (e.g. ex090220.log) and Apache logs (e.g. logs/website%Y%m.log) and search either today or yesterday's log (X day offset?). Also file locking may be an issue if the log is still being updated, so some retries may be necessary, and if the file is missing, that may be OK too as there are no errors yet.
An example: I have an email check that may be possible to run in SAlive, but currently it runs like this: A scheduled task checks three pop3 accounts for three different messages with specific headers, downloads, saves them to a file and deletes them. It checks the log file for a specific phrase and saves to a file. I use SAlive to do a file properties check and the file must be less than 10 hours old. I actually do not know if a log file check could reduce the above to purely SAlive, but it would probably save a step. -----Original Message----- From: Servers Alive Discussion List [mailto:sal...@woodstone.nu]on Behalf Of Dirk Sent: Tuesday, March 03, 2009 5:24 PM To: Servers Alive Discussion List Subject: [SA-list] Text/log-file checking In the past we received several questions on a check that would enable the checking of textfiles/logfiles. I suppose that it should trigger on a specific word/phrase for the down, but what about an up? For those of you that are interested in such a check, could you explain how YOU see the working of it? And how would it work with those text/logfiles? Is it a fixed name or does the name change every day or .... The more info we get on it, the better we can understand the needs and try to get all the requests into a new COM check. Dirk Bulinckx. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list. To unsubscribe send a message with UNSUBSCRIBE in the subject line to salive@woodstone.nu If you use auto-responders (like out-of-the-office messages), make sure that they are not sent to the list nor to individual members. Doing so will cause you to be automatically removed from the list.