|
View previous topic :: View next topic |
Author |
Message |
Kren
Joined: 09 Apr 2013 Posts: 18 Location: United Kingdom
|
Posted: Thu Feb 27, 2020 4:07 am Post subject: Is it possible to test how often a service has restarted? |
|
|
Running Hostmonitor 11.99 on a Windows 2012R2 server.
We have a somewhat flaky legacy application, that sometimes restarts.
When it does, there is an entry in the NT Event log that "service <x> has restarted" - so that we can test for.
However, I have been asked, can we set up a test in Hostmonitor to look for "has event X happened more than 3 times in the last 10 minutes" - and I'm not sure if that's possible?
Can anyone suggest a way to test for a condition over a period of time that might work here? |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Feb 27, 2020 6:31 am Post subject: |
|
|
NT Event Log test method [Report about last event but count ALL] option
Report about last event but count ALL
This option works similar to "Report about last Bad/Good event" option, however it counts all NEW events that fit "bad" filter (and "good" filter if specified). If "Show events description in Reply field for NT Event Log test" option is disabled (Options dialog) then test will display number of detected "bad" events in Reply field of the test.
Also you may use '%NTEvents_BadCnt%' and '%NTEvents_GoodCnt%' variables for Optional status processing, actions or Custom HTML reports (regardless of "Show events description" option).
E.g.
- you may set Set Normal status if %NTEvents_BadCnt%<4 test option. This way HostMonitor will set Normal test status when there are NEW "bad" records in Event Log but number of such records below 4.
- you may set Tune up Reply value, Reply = [%NTEvents_BadCnt%] test option, this way HostMonitor will display number of new "bad" events in Reply field of the test even if "Show events description" option" is enabled
Regards
Alex |
|
Back to top |
|
|
Kren
Joined: 09 Apr 2013 Posts: 18 Location: United Kingdom
|
Posted: Fri Feb 28, 2020 7:13 am Post subject: |
|
|
Thanks for the reply Alex - I will test this and report back |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|