The Ping Monitor is designed to ping a host or ip address using a fixed byte size.
In the situation where additional options are needed, an EXEC Monitor and a
third-party script can be used to accept a hostname or ip and zero or more additional parameters.
The standard usage for the ping script is as follows:
cscript.exe ping.vbs IP_Address/hostname [byte size] [timeout] [ping attempts]
Note that byte size must be specified first, if timeout is entered.
Similarily, byte size and timeout must be specified first, if ping attempts is entered.
The sample script provided, "ping.vbs", returns 0 if a reply is received for a ping request and -1 if no replies are received.
Sample Monitor Settings
-----------------------
For the following example, we will assume the following:
Host/IP to Ping: SERVER1
Number of Bytes to Send in Ping: 2
Timeout of each ping request is 10 seconds (in ms): 10000
The number of ping attempts is: 6
Script Location: c:\ipmscripts\
For Windows 2000
Executable Name: cscript.exe
Directory: c:\winnt\system32\
Command Line Parameters: ping.vbs SERVER1 2 10000 6
Startup Directory: c:\ipmscripts\
Compare the Process Return Value = SELECTED
Expected Return Value: 0
For Windows XP / 2003
Executable Name: cscript.exe
Directory: c:\windows\system32\
Command Line Parameters: ping.vbs SERVER1 2 10000 6
Startup Directory: c:\ipmscripts\
Compare the Process Return Value = SELECTED
Expected Return Value: 0
In the event that NO ping reply is received, the script will return a -1, that will cause the Monitor test to fail.