Possible macro-bug.

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
Hanus
Posts: 19
Joined: Tue Jan 02, 2007 7:45 am
Location: Danmark

Possible macro-bug.

Post by Hanus »

Hi!

When I test hosts, I use macro's in the the test-name, e.g. I want to test for free space on a host. I use the free space test via RMA.
In Test Name I use a macro: %Agent%: C:\ Free Space test.
This works exellent, as I can copy the test and only have to change the agent. And I get the hostname sent to me via sms.
But when I generate reports, the macro is not interpreted. The testname appears in the report as %Agent%: C:\ Free Space test.

Regards
Hanus
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Actually, using macro variables in test name is not a common way. You just should use %Agent% and %TestName% variables in message template for "Send SMS" action and you may assign that action profile to any test: http://www.ks-soft.net/hostmon.eng/mfra ... .htm#Mails
%Agent% is a variable, that could be used as action profile's parameter, so it is not resolved by HostMonitor in TestList (GUI), reports and log files.
Quote from the manual:
http://www.ks-soft.net/hostmon.eng/mfra ... .htm#macro
===============
When defining some of the alert action's parameters you can use special macro variables.
===============

Regards,
Max
Post Reply