Difference between revisions of "Subagent:PortCheck"

136 bytes added ,  10:29, 16 January 2016
Improved formatting, fixed errors.
(Improved formatting, fixed errors.)
Line 7: Line 7:
When loaded, PORTCHECK subagent adds the following parameters to agent:
When loaded, PORTCHECK subagent adds the following parameters to agent:


ServiceCheck.* parameters:
{| class="wikitable" style="width: 70%"
{| class="wikitable" style="width: 70%"
|-
|-
Line 24: Line 25:
|-
|-
| ServiceCheck.Telnet(''target''[,''port''[,''timeout]]) || Check that Telnet service is running on ''target''.  Optional argument ''port'' specifies the port to connect with, otherwise 23 will be used.  Optional argument ''timeout'' specifies timeout in milliseconds.
| ServiceCheck.Telnet(''target''[,''port''[,''timeout]]) || Check that Telnet service is running on ''target''.  Optional argument ''port'' specifies the port to connect with, otherwise 23 will be used.  Optional argument ''timeout'' specifies timeout in milliseconds.
|}
ServiceResponseTime.* parameters:
{| class="wikitable" style="width: 70%"
|-
! Parameter !! Description
|-
|-
| ServiceResponseTime.Custom(''target'',''port''[,''timeout'']) || Same as ServiceCheck.Custom(*), but returned value is the response time of the service. See Response Codes table below.
| ServiceResponseTime.Custom(''target'',''port''[,''timeout'']) || Same as ServiceCheck.Custom(*), but returned value is the response time of the service. See Response Codes table below.
Line 56: Line 63:
|}
|}


All of the ServiceResponseTime.* parameters return the actual response time, up to uptime.<br>
All of the ServiceResponseTime.* parameters return the actual response time, up to timeout.<br>
If return value = timeout value, this means the service was unreachable.
If return value = timeout value, this means the service was unreachable.


184

edits