Macro for numerical Alert-when value of

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Macro for numerical Alert-when value of

Post by MirkoW »

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

Post by KS-Soft »

What is "actual alert-value"?
%Object1%? This variable can be used for templates, it has nothing to to with actions.

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

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

Post by KS-Soft »

There is %AlertThreshold% and %AlertThresholdValue% variables.
For more information please check the manual or visit our web site at http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

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

Post by KS-Soft »

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/mfra ... pvariables

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

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

Post by KS-Soft »

I see. Please check my previous answer.

Regards
Alex
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

it doesn't work.. :(
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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/mfra ... pvariables

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
Post Reply