| | | Forum Newbie
       
Group: Forum Members Last Login: 10/21/2008 8:39:08 PM Posts: 2, Visits: 5 |
| I am trying to monitor the NTP service on a UNIX box via TCP/IP monitor scripts. I've been searching online and the only script I found was this:
Send=%27%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0
Expect=%28%2
I did a test and this is the outcome:
TCP/UDP check for 10.12.17.20
Timeout=2 Protocol=UDP Port=123
Send=%27%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0%0
Expect=%28%2
Error=A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Does anyone know how to monitor the NTP service? Thanks. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 10/21/2008 8:39:08 PM Posts: 2, Visits: 5 |
| | anyone got anything for me? i tried contacting support about this and they gave me nothing. |
| | | | Forum Newbie
       
Group: Forum Members Last Login: 2 days ago @ 11:07:52 AM Posts: 1, Visits: 1 |
| This script is available via the knowledgebase:
Script for SNTP Active monitors on WUP2006-WUG v11.
Platform: Windows-XP (SP1),Windows-2000 SP4, Windows-2003 Server
Name: SNTP (Simple Network Time Protocol)
Type: TCP/IP Service Check
Network Type: UDP
Port: 123
Timeout: 5 seconds
Script:
Send=\x1b\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
Expect=\x1c
However, this last month there was a leap second, causing the script to fail for several weeks. The “expected” return code for the Whatsup NTP query should have included \x5c and maybe \x9c as well as \x1c.
LI Value Meaning
-------------------------------------------------------
00 0 no warning
01 1 last minute has 61 seconds
10 2 last minute has 59 seconds)
11 3 alarm condition (clock not synchronized)
00 011 100hex 1c\x1c
01 011 100hex 5c\x5c
10 011 100hex 9c\x9c
So the last line should probably be:
Expect=[\x5c\x9c\x1c] |
| |
|
|