KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

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

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Kren



Joined: 09 Apr 2013
Posts: 18
Location: United Kingdom

PostPosted: Thu Feb 27, 2020 4:07 am    Post subject: Is it possible to test how often a service has restarted? Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Feb 27, 2020 6:31 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kren



Joined: 09 Apr 2013
Posts: 18
Location: United Kingdom

PostPosted: Fri Feb 28, 2020 7:13 am    Post subject: Reply with quote

Thanks for the reply Alex - I will test this and report back
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index