Alerting if an error: the specified instance is not present

When you post information about some problem, please include the following details: - OS version (e.g. Windows 2000 Professional SP3); HostMonitor version; problem description.
Post Reply
iglobal user
Posts: 1
Joined: Thu Nov 29, 2012 2:27 pm

Alerting if an error: the specified instance is not present

Post by iglobal user »

Windows server 2008 R2
Host Monitor V9.30
The main purpose we use this software is to monitor calls per second and calls outstanding though performance monitor on a windows server 2008 R2 platform.

Currently we run three test with your software:
1. PerfCounter: Calls outstanding
a. Check Counter
i. \\RLPRDAPPE21\ServiceModelService 3.0.0.0(mdtservice@net.tcp:||localhost:49001|mdtservice)\Calls Outstanding
b. Alert when value is = to 10.00
c. Restart external services after 7 bad tests ran at 30 second intervals
d. Start external program after 14 consecutive bad test and until cleared (runs a exe created from a VBS script to send a email out to a certain email group)
e. Starts an external
2. PerfCounter: Calls per second
a. Set up the same way as Calls Outstanding
3. Ping x.x.x.x
a. Host alive
If perfcouter is hung, or is not working properly we receive the following error, “Error: The specified instance is not present” the status becomes unknown. This happens when the service that we run on the server gets hung up. What can I do to trigger an alert action when this happens to restart this service?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

You may add Restart Service advanced mode action with one of these expressions:
('%Status%'=='Unknown')
will start action each time test get Unknown status
or
('%Status%'=='Unknown') AND (%Recurrences% == 1)
will start action only after first Unknown status
or
('%Status%'=='Unknown') AND (%Recurrences% mod 5 == 1)
will start action after first, 6, 11, 16, e.t.c. Unknown status recurrence.

Also, you may disable "Treat Unknown status as Bad" option (located on Test properties dialog).

With disabled "Treat Unknown status as Bad" option, you may want to mark "Action depends on bad one" option for "good" actions assigned to the test (if any assigned).
=====================
Action depends on "bad" one
This optional parameter is available for "Good" actions only. You can set "Good" action dependable on a "Bad" action. Why do you need it? For example you defined "Bad" action to send an e-mail notification to the network administrator when test fails 3 times consecutively (start when 3 consecutive "Bad" results occur), also you defined «Good» action to send a notification when the test status changes to "Good". What will happen if test fails 1 or 2 times and after this it restores "Good" status? HostMonitor will not send a notification about failure (because test did not fail 3 times) but the program will send notification about restoring "Good" status. To avoid unnecessary "Good" action execution you can mark "Action depends on "bad" one" option and select "Bad" action. In this case HostMonitor will start "Good" action only if corresponding "Bad" action was executed.
=====================

Please check for details at:
Advanced mode actions: http://www.ks-soft.net/hostmon.eng/mfra ... ncedaction
Post Reply