View previous topic :: View next topic |
Author |
Message |
Kapz
Joined: 06 Dec 2004 Posts: 216 Location: Denmark
|
Posted: Thu Jan 06, 2005 8:50 am Post subject: Change in macro expander ? |
|
|
Hi !
We have some tests containing a % in the test name which have always worked correctly. Upon upgrade from HM4.70 to HM4.86 these tests no longer expands correctly when the alert profile is beeing triggered and the command line executed.
Did something change in the way that the macros are expanded - or is % not a valid character in a test name anymore ?
Thanks !
Kasper :O) |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Thu Jan 06, 2005 12:03 pm Post subject: |
|
|
Version 4.86 resolves datetime variables in command line, no other changes...
Could you please provide info about test and action: test name, command line
Regards
Alex |
|
Back to top |
|
|
Kapz
Joined: 06 Dec 2004 Posts: 216 Location: Denmark
|
Posted: Fri Feb 18, 2005 3:37 am Post subject: |
|
|
Hi Alex !
My test looks like this:
; ------- Test #01 -------
Method = CPU
;--- Common properties ---
;DestFolder = Root\DC Produktion\Web01\Performance\
RMAgent = Web01
Title = Web01 CPU > 95%
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule = Mo-Su 0000-2359
Interval = 300
Alerts = Send SMS Mo-Fr 0800-1800 30/5
ReverseAlert= No
UnknownIsBad= No
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Default
SyncCounters= Yes
SyncAlerts = No
DependsOn = list
MasterTest-Alive = Web01 Port 3456 (RMA)
;--- Test specific properties ---
Computer =
OS = NT
MaxCPUUsage = 95
- but when I receive the alert it looks like this:
Web01 CPU > 952318/2/200510:23:27PUU27a5232710:23a10:23u27:23UP2321
It seems like the time and date is merged into the output that furthermore is trashed.
Thanx !
Kasper :O) |
|
Back to top |
|
|
Kapz
Joined: 06 Dec 2004 Posts: 216 Location: Denmark
|
Posted: Fri Feb 18, 2005 8:38 am Post subject: |
|
|
Sorry - forgot to add the command line executed from the alert profile:
f:\sms\sendsms.exe !watchguard "%TestName%\n%TestMethod%\nStatus:\n%SimpleStatus%\n%Reply%\n"
Kasper :O) |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Fri Feb 18, 2005 9:24 am Post subject: |
|
|
H'm.. HostMonitor resolves all variables and then it tries to resolve date variables. Both "test name" and "reply" fields contain "%", so HostMonitor assumes there are date variables in the command line... That's what happen when we try to implement all requests.
Ok, I will try to find solution. For now, remove % from test name.
Regards
Alex |
|
Back to top |
|
|
Kapz
Joined: 06 Dec 2004 Posts: 216 Location: Denmark
|
Posted: Fri Feb 18, 2005 2:10 pm Post subject: |
|
|
Alex,
> Ok, I will try to find solution. For now, remove % from test name.
Right, thanx a lot !
Kasper :O) |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Sat Feb 19, 2005 10:56 pm Post subject: |
|
|
Ok, if you really need % in the test name, download this update www.ks-soft.net/download/hm503b.zip and add additional % into command line:
f:\sms\sendsms.exe !watchguard "%TestName%%\n%TestMethod%\nStatus:\n%SimpleStatus%\n%Reply%\n"
If you use the same action for other test items (without % in name), do not add % into command line, add another % into name instead (e.g. name test "CPU > 95%%")
Regards
Alex |
|
Back to top |
|
|
Kapz
Joined: 06 Dec 2004 Posts: 216 Location: Denmark
|
Posted: Tue Feb 22, 2005 8:41 am Post subject: |
|
|
Alex,
> Ok, if you really need % in the test name, download this update www.ks-soft.net/download/hm503b.zip
Thanks
Do you consider this beta build to be stable enough for production use ?
Kasper :O) |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Feb 22, 2005 9:24 pm Post subject: |
|
|
Its stable, I don't think its less stable than version 4.86
I am not 100% sure it calculates all statistical counters properly. We made some changes and its hard to check this part. But we did not find anything wrong yet, may be everything is fine
Regards
Alex |
|
Back to top |
|
|
|