quote:Originally posted by aLTeReGoWhat type of log files are you talking about? Do you mean the Windows EventViewer logs?
I would like to do the same thing? Is this possible?
This is possible using a custom script monitor. I'm a fan of using powershell to grab this with a Regex match. Something like Get-Content, match a string, and then do some work with it to provide feedback to SAM. You'll want to have at a minimum a Statistic and message, and you can use Exit codes as well.
I believe exit codes for SAM are:
0 up, 1 down, 2 warning, 3 critical, any other value unknown