I was hoping to be able to have a test call a Stored Proc every time it runs. The idea is to log the results so I can establish metrics.
I looked at the alerts and figured I could set an alert to fire for both bad and good conditions. Then I set the alert to fire on the schedule. The only problem is the alert isn't actually going to SQL.
I ran a trace and the user never even tries to login.
Here is what I put in the alert:
Action: SQL Query
ODBC source: LSOPSDB
Login : HostMon
SQL query : exec usp_AddCondition(1, %Reply%)
Timeout : 10 sec
The same thing is in the good and bad conditions.
What am I missing?
Logging / Calling SQL
So you want to execute action after each test probe regardless of test status?
Then you should use "Repeat until status changes" option for "bad" and "good" actions assigned to the test.
Do you use this option?
If you assign action to the test, use "standard" or "advanced" mode.
Regards
Alex
Then you should use "Repeat until status changes" option for "bad" and "good" actions assigned to the test.
Do you use this option?
On the schedule? This option should be used for actions that are not assigned to the tests but used by built-in Scheduler.Then I set the alert to fire on the schedule
If you assign action to the test, use "standard" or "advanced" mode.
Regards
Alex
Alex,
Thanks for the input. I will see if I can change the way the test is setup. In the meantime, I will answer your questions below as best I can with the current setup.
Thanks for the input. I will see if I can change the way the test is setup. In the meantime, I will answer your questions below as best I can with the current setup.
No I am not using that option. I was just counting on the scheduler. I see the test being run because the count of tests increasesKS-Soft wrote:So you want to execute action after each test probe regardless of test status?
Then you should use "Repeat until status changes" option for "bad" and "good" actions assigned to the test.
Do you use this option?
I am not real clear on what you are saying, The action was assigned under the Profiles menu using the Action profiles. In there I can choose what to do when a test executes. There is a "Bad" status action and a "Good" status action. I set them both to call SQL and execute the Stored Proc. However, the proc is not being called.KS-Soft wrote:On the schedule? This option should be used for actions that are not assigned to the tests but used by built-in Scheduler.Then I set the alert to fire on the schedule
If you assign action to the test, use "standard" or "advanced" mode.
There are 3 kinds of actionsOn the schedule? This option should be used for actions that are not assigned to the tests but used by built-in Scheduler.
If you assign action to the test, use "standard" or "advanced" mode.
...
I am not real clear on what you are saying
- condition to start action: standard
- condition to start action: advanced
- condition to start action: on the schedule
You said "Then I set the alert to fire on the schedule". Such action cannot be triggered by any test.
Please check the following section for details:
http://www.ks-soft.net/hostmon.eng/mfra ... properties
Regards
Alex
So action was executed? Then you may use system log or quick log to check for action status and error description. If action failed for some reason, HostMonitor should record error description into the log.Ok I had a duh moment. The issue was a syntax error in my SQL statement. I decided to try an ODBC test to see how HostMon connects to SQL. That is when I saw the error.
http://www.ks-soft.net/hostmon.eng/mfra ... ickLogPane
GreatSo now I am passing the %Reply% value into the stored proc and it works perfectly!

Regards
Alex