Module Expr Str Import alias ClassDef bases AttributeLoad AttributeLoad NameLoad attr attr body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Dict Str Str Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq SubscriptLoad NameLoad Slice Num Str body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr ListLoad Str Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr attr Str Index Num If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Str Index Num Assign NameStore Call NameLoad NameLoad orelse If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num attr Str Index Num Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Num decorator_list decorator_list
N/A N/A 
Collect icmp round trip times
Only valid for ipv4 hosts currently

#### Dependencies

 * ping

#### Configuration

Configuration is done by:

Create a file named: PingCollector.conf in the collectors_config_path

 * enabled = true
 * interval = 60
 * target_1 = example.org
 * target_fw = 192.168.0.1
 * target_localhost = localhost

Test your configuration using the following command:

diamond-setup --print -C PingCollector

You should get a response back that indicates 'enabled': True and see entries
for your targets in pairs like:

'target_1': 'example.org'

We extract out the key after target_ and use it in the graphite node we push.

 N/A diamond.collector PingCollector N/A N/A N/A diamond collector ProcessCollector N/A get_default_config_help N/A N/A self N/A N/A N/A config_help N/A N/A N/A super PingCollector self get_default_config_help N/A N/A N/A config_help update N/A bin The path to the ping binary N/A config_help N/A get_default_config N/A N/A self N/A N/A N/A 
        Returns the default collector settings
         N/A config N/A N/A N/A super PingCollector self get_default_config N/A N/A N/A config update N/A path bin ping /bin/ping N/A config N/A collect N/A N/A self N/A N/A N/A key N/A N/A N/A self config keys N/A N/A N/A N/A key N/A 7 target_ N/A N/A host N/A N/A self config N/A key N/A metric_name N/A N/A host replace . _ N/A ping N/A N/A self run_command N/A -nq -c 1 host N/A ping N/A N/A N/A N/A N/A N/A ping N/A 0 strip split N/A -1 N/A N/A N/A ping startswith rtt N/A N/A ping N/A N/A N/A N/A N/A N/A ping split N/A 3 split / N/A 0 N/A metric_value N/A float ping N/A N/A N/A N/A ping startswith round-trip  N/A N/A ping N/A N/A N/A N/A N/A N/A ping split N/A 3 split / N/A 0 N/A metric_value N/A float ping N/A N/A metric_value 10000 N/A N/A N/A self publish metric_name metric_value precision 3 N/A N/A