KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Change in macro expander ?

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Thu Jan 06, 2005 8:50 am    Post subject: Change in macro expander ? Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jan 06, 2005 12:03 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Fri Feb 18, 2005 3:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Fri Feb 18, 2005 8:38 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Fri Feb 18, 2005 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Fri Feb 18, 2005 2:10 pm    Post subject: Reply with quote

Alex,

> Ok, I will try to find solution. For now, remove % from test name.
Right, thanx a lot !

Kasper :O)
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Sat Feb 19, 2005 10:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Kapz



Joined: 06 Dec 2004
Posts: 216
Location: Denmark

PostPosted: Tue Feb 22, 2005 8:41 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Tue Feb 22, 2005 9:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index