Windows NTP action

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
jea
Posts: 7
Joined: Mon Nov 22, 2004 5:08 am

Windows NTP action

Post by jea »

Hi,

I have a NTP test where I test local server time with our internal timeserver.

I test every hour.

Action is:
1. Execute External program: cmd /c "w32tm /resync" after 1 bad
2. Execute External program: cmd /c "w32tm /config /manualpeerlist:OUR TIME SERVER,0x1 /syncfromflags:manual /reliable:yes /update" after 1 bad
3. Execute HMS Script: ResetRecurrencesTest.hms after 1 bad
4. Send E-mail after 24 bad tests

Problem is if it fails in action 1 and 2, it does not send the email since its been reset.

How can I get an email when time sync has failed?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

I can see several options:
1. Remove action N3.
2. Change Action N3 to start only after 24 consecutive Bad results.
3. Change Action N4 to Send e-mail after 1 Bad.
4. Change actions N3 & N4 to repeat until status changes, chnage action N3 to start after 24 Bad statuses.

If none of these options are acceptable, please explain what exactly do you want to implement.
jea
Posts: 7
Joined: Mon Nov 22, 2004 5:08 am

Post by jea »

This just like this to Work :)

I have not made this test originally, all I can see is that I do not get any mails, since it resets.

You think I don't need the ResetRecurrencesTest.hms ??
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

I don't know what is content of ResetRecurrencesTest.hms and why do you need to reset recurrences.
That's why I'm asking you to explain what do you need.
If you don't know why test needs to reset resurrences,
you may disable this test and create a test copy (Action profile copy) with different settings, suggested in my previous post.
Also, could you show content of ResetRecurrencesTest.hms ?
jea
Posts: 7
Joined: Mon Nov 22, 2004 5:08 am

Post by jea »

Hi, I thought ResetRecurrencesTest.hms was a standard hms script that came along with the installation.

I have removed it, now I will test more.

Is there any other way to set local time on server without using N1 and N2 ??
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Hi, I thought ResetRecurrencesTest.hms was a standard hms script that came along with the installation.
ResetRecurrencesTest.hms file does not come with HostMonitor.
And there is no reason to use ResetRecurrencesTest HMScript command unless you want to repeat the same actions again and again.
(note: I have no idea what commands do you use in this script file, may be there is something useful...)
Is there any other way to set local time on server without using N1 and N2 ??
HostMonitor does not set time so you have to use external command.
BTW: IP-Tools can synchronize time in unattended mode
http://www.ks-soft.net/ip-tools.eng/mfr ... htm#page11

Regards
Alex
Post Reply