Variable Pb for NTP

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
boxy_25
Posts: 26
Joined: Tue Dec 02, 2003 3:49 am
Location: France
Contact:

Variable Pb for NTP

Post by boxy_25 »

Hi alex,

I test the time of my windows server by NTP test. If test is bad, i'd like the W32time service to be restart.
so I've created an "restart" action. My problem is "stop service on" field. If I put the name of my server it work. but if I put a variable %ServiceComp% or %HostAddr%, It doesn't work.
Could you tell me what variable i've to use. I can't find it in the help file.

Thanks.
Cédric. :D
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

You cannot use %ServiceComp% macro because this macro relates to Service test method. I think you can use "\\%HostAddr%" macro if you have specified path to the server as IP address or as hostname (not full domain name), e.g. 192.168.10.15 or primaryserver (do not forget to use "\\" prefix)

Regards
Alex
boxy_25
Posts: 26
Joined: Tue Dec 02, 2003 3:49 am
Location: France
Contact:

Post by boxy_25 »

No, it doesn't work. with the "\\" or without.
I've try to put the name of the server in commentline and use the
%commentline1% variable and it work.
But I'd prefere to use the server field.

Any other idea?

Cédric.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

H'm, sometimes its good to read the manual. :oops:
I checked the manual and now I know that %HostAddr% variable is not supported by NTP test method (HM version 4.42).
I made some changes, update available at www.ks-soft.net/download/hm446.zip

Regards
Alex
boxy_25
Posts: 26
Joined: Tue Dec 02, 2003 3:49 am
Location: France
Contact:

Great !!!

Post by boxy_25 »

It works now....

You're the best ;-)

Cédric.
Post Reply