Difference between revisions of "PING Subagent"

487 bytes added ,  21:09, 1 April 2012
Line 44: Line 44:
! Parameter !! Format !! Description !! Default value
! Parameter !! Format !! Description !! Default value
|-
|-
| DefaultPacketSize || ''bytes'' || Set default packet size to ''bytes'' || 46
| DefaultPacketSize || ''bytes'' || Set default packet size to ''bytes''. || 46
|-
|-
| PacketRate || ''packets'' || Example || Example
| PacketRate || ''packets'' || Set ping packet rate per minute. || 4
|-
|-
| Target || ''ip'':''name'':''psize'' || Add target with IP address ''ip'' to background ping target list and assign an optional name ''name'' to it. Target will be pinged using packets of ''psize'' bytes size. Name and packet size fields are optional and can be omited. This parameter can be given multiple times to add multiple targets. || ''none''
| Target || ''ip'':''name'':''psize'' || Add target with IP address ''ip'' to background ping target list and assign an optional name ''name'' to it. Target will be pinged using packets of ''psize'' bytes size. Name and packet size fields are optional and can be omited. This parameter can be given multiple times to add multiple targets. || ''none''
Line 53: Line 53:
|}
|}


== Configuration Example ==
<nowiki>
# This sample nxagentd.conf instructs agent to:
#  1. load PING subagent
#  2. Ping target 10.0.0.1 with default size (46 bytes) packets and 10.0.0.2 with 1000 bytes packets
#  3. Timeout for ping set to 1 second and pings are sent 12 times per minute (each 5 seconds)
MasterServers = netxms.demo
SubAgent = ping.nsm
*PING
Timeout = 1000
PacketRate = 12
Target = 10.0.0.1:target_1
Target = 10.0.0.2:target_2:1000
</nowiki>


= Notes =
= Notes =


PING subagent uses value of 10000 to indicate timed out requests.
PING subagent uses value of 10000 to indicate timed out requests.
683

edits