Is it possible to test how often a service has restarted?

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Kren
Posts: 18
Joined: Tue Apr 09, 2013 4:35 am
Location: United Kingdom

Is it possible to test how often a service has restarted?

Post by Kren »

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?
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
Kren
Posts: 18
Joined: Tue Apr 09, 2013 4:35 am
Location: United Kingdom

Post by Kren »

Thanks for the reply Alex - I will test this and report back
Post Reply