I setup a file monitor to look for the text "Finished". If it finds the text, the monitor is green. If it doesn't find the text, the monitor remains green. I would like a failure if the text is not found. How can I accomplish this?
My ultimate goal is to send an alert if this monitor does not find the word "Finished." I am sure I could pull this off with a VBScript. However, I am hoping that your file monitor would provide a quick solution.
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
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.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community. More than 150,000 members are here to solve problems, share technology and best practices, and directly contribute to our product development process.