Here is what I want to achieve:

We have a server that hosts tomcat services. I want to monitor a service, and if that service, or server restarts then I want to montior a log file (always same name - but changes at midnight). If a particular string is not found after 5 minutes, I need it to email service not started. If the string is found I need it to email service started correctly. After this time, I do not need to monitor the log file.

Shaun Scott

asked 19 Nov '14, 16:51

shaunscott's gravatar image

shaunscott
482915
accept rate: 16%


I would make a Log File Monitor, set it to alert if your text is not found, and schedule it to run at 12:05 am.

link

answered 20 Nov '14, 19:35

Jason%20Hiatt's gravatar image

Jason Hiatt
211
accept rate: 0%

Hi there. Thanks for the response.

I don't think your suggested answer will do what I need since the string only appears if the service is restarted, which could be at any time of the day.

Shaun

(20 Nov '14, 19:45) shaunscott

Bump. Bump . Bump!!

link

answered 27 Nov '14, 20:23

shaunscott's gravatar image

shaunscott
482915
accept rate: 16%

Bump. Bump . Bump!!

link

answered 27 Nov '14, 20:23

shaunscott's gravatar image

shaunscott
482915
accept rate: 16%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16
×4

Asked: 19 Nov '14, 16:51

Seen: 2,616 times

Last updated: 27 Nov '14, 20:23