8 Replies Latest reply on May 14, 2010 8:19 AM by christineb

    Monitor Text In File

    14ALL

      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.

        • Re: Monitor Text In File
          lchance

          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.

          and then

          Statistic Warning Threshold 1
          Statistic Critical Threshold 1

          • Re: Monitor Text In File
            14ALL

            Does anyone have any other thoughts on how to make this monitor fail if the text is missing from the log file?

              • Re: Monitor Text In File
                lchance

                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?

                  • Re: Monitor Text In File
                    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?

                      • Re: Monitor Text In File
                        14ALL

                        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

                  • Re: Monitor Text In File
                    christineb

                    Hi 14All: Thanks for the input. I entered this as a feature request - for internal users it's FB 12219. 

                    --Christine