View previous topic :: View next topic |
Author |
Message |
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Mon Sep 27, 2010 6:29 am Post subject: Macro for numerical Alert-when value of |
|
|
Hi,
i want to use a macro to receive the actual alert-value for UNC availability/free space test.
which macro name do i need? %object1% and 2 do not contain this value |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 27, 2010 7:52 am Post subject: |
|
|
What is "actual alert-value"?
%Object1%? This variable can be used for templates, it has nothing to to with actions.
Regards
Alex |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Mon Sep 27, 2010 8:01 am Post subject: |
|
|
HI,
i mean the value that i can set when i should get an alert
For example: Alert when "total free space less than" 10 GB
and i want to use the field that contain "10" as a macro to use dynamic Test names like this: %FOLDER%: c:\ under %value% GB[/img] |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Mon Sep 27, 2010 8:10 am Post subject: |
|
|
Hi,
%AlertThresholdValue% won't work in Test Name..
Edit: It works if i receive an email but the macro are not translated in HM Client |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 27, 2010 8:29 am Post subject: |
|
|
I am confused. Where do you want to use macro variable?
As parameter of test template?
Then please check another part of the manual
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#testpropvariables
As you may see there is no %object1% variable.
There is %object% variable, for UNC test it will return target resource.
There is no variable that will return alert threshold
Regards
Alex |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Mon Sep 27, 2010 8:33 am Post subject: |
|
|
i want to use the variable in editor-window of a test and in the table-view of HM Client.
i have put the test into a subfolder and use the variable %FOLDER% to view the foldername in testname it works in both views but if i want to use %AlertThresholdValue% so i see the value only in a email |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 27, 2010 9:04 am Post subject: |
|
|
I see. Please check my previous answer.
Regards
Alex |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Mon Sep 27, 2010 9:35 am Post subject: |
|
|
it doesn't work.. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Mon Sep 27, 2010 6:13 pm Post subject: |
|
|
Of course it does not work.
My previous answer was:
==================
As parameter of test template?
Then please check another part of the manual
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#testpropvariables
As you may see there is no %object1% variable.
There is %object% variable, for UNC test it will return target resource.
There is no variable that will return alert threshold
==================
But I think its pretty easy to type 10 or 20 while you are configuring test item.
Regards
Alex |
|
Back to top |
|
|
|