Ian, 
 
No, I haven't specifically used LogParser for a check like this (last line of a 
file).   I have used it in other checks, normally called through a batch file. 
 
Typically I use it to scan the log/file in question and direct the output to a 
CSV file.  If there are no matches, the file is not created.  I then use IF 
EXIST to return a different errorlevel. 
 
Here is a DOS example to alarm if there is a file with the name ERROR in the 
current directory. 
 
                rem Look for error files 
                rem 
                rem - clear old outputs. 
                if exist output1.txt del output1.txt 
                rem - query file system 
                Logparser "Select Path into output1.txt from *.* where Path 
like '%%ERROR%%'" -i:fs -o:CSV 
                If exist output1.txt exit 1 
                exit 0 
 
 
Since LogParser can also query Active Directory, you can do some neat stuff, 
like alarm if the CEO's password hasn't been reset in more than 90 days, 
etc..... 
 
-Tom 
 
 



--------------------------------------------------------------------------------

From: Servers Alive Discussion List [mailto:sal...@woodstone.nu] On Behalf Of 
ian.g...@okieurope.com
Sent: Monday, July 27, 2009 9:51 AM
To: Servers Alive Discussion List
Subject: [SA-list] Schedule



Hi, 

I want to use a schedule on a server. My checks for that server have a "parent" 
check (a ping), and various "child" checks that are dependent on that initial 
ping. If I put the schedule on the parent, do I need to add a schedule for 
child checks as well, or will the parent's schedule effectively stop the child 
checks too? 

Cheers, 

Ian 
_________________________________
Ian K Gray
OEL IS - European Infrastructure Support
Tel: +44 1236 502661
Mob: +44 7881 518854
Ad eundum quo nemo ante iit 
______________________________________________________________________________


Any opinions expressed in this email are those of the individual and not 
necessarily of the Company. This email and any files transmitted with it, 
including replies and forwarded copies (which may contain alterations) 
subsequently transmitted from the Company are confidential and solely for the 
use of the intended recipient. It may contain material protected by legal 
privilege. If you are not the intended recipient or the person responsible for 
delivering to the intended recipient, be advised that you have received this 
email in error and that any use is strictly prohibited. Please notify the 
sender immediately of the error and delete any copies of this message

Warning: Although the Company has taken reasonable precautions to ensure that 
no viruses are present in this e-mail, the Company cannot accept responsibility 
for any loss or damage arising from the use of this e-mail or attachments.
______________________________________________________________________________
Oki Europe Limited. Registered Office:Blays House, Wick Road, Egham TW20 0HJ. 
Company No:2203086. VAT No:481 011975


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.

Reply via email to