i notice you have both "Finished" and "Finished." and this is case-sensitive, but in your arguments do you have the full path looking like this?
-file C:\"Program Files"\SolarWinds\Orion\testfile.txt -pattern Finished.
Statistic Warning Threshold 1
Statistic Critical Threshold 1
I am utilizing the "File Watching" monitor and have it configured as follows:
File Name: refresh_mv.log
RegEx Pattern: \i^.*?(Finished).*?$
The monitor is always green. If Finished is there, it displays the find. If there multiple times, shows all. If no text found, shows zero and remains green.
Does anyone have any other thoughts on how to make this monitor fail if the text is missing from the log file?
my bad - i thought this was APM related but i see now it is not....i know nothing of IPMONITOR...sorry
bump - anybody out there that can help out 14ALL?
Thanks Ichance for trying.
I am confused why a monitor would be included that doesn't have the ability to fail. What am I missing? The only way I can get this monitor to fail is if the file is missing. However, I want to monitor the contents of this file for information or the lack of information. If text found, success. Otherwise fail.
Any suggestions anyone?
Taking a closer look at this monitor, it has the following options in Notification Control:
1. Combine up to 15 found scenarios into one alert.
2. Disabled - send up to 5 information alerts (individually).
3. Disabled - send first found scenario.
I set the monitor to option3, setup an email alert to myself, and made sure all alert types were setup for notification. I received notification that the pattern was found "x" number of times. This monitor can be useful for informational purposes. However, as an action monitor it is rather useless.
It would seem like a small step for ipMonitor to watch a log file (which it does), look for a string (which it does), and then let you decide whether the existance or lack of that string warrants an alert. <<<=== FEATURE REQUEST HERE!!!!!
Going to plan-B: vbscript
Thanks for the feature request highlight ;-). I'll mark this for the PM to see.
Hi 14All: Thanks for the input. I entered this as a feature request - for internal users it's FB 12219.