vaping.plugins.fping_mtr

Classes


FPingMTR

FPingMTR(vaping.plugins.fping.FPingBase)

Run fping on a traceroute path

Config

  • interval (float) time between pings
  • count (int) number of pings to send

Instanced Attributes

These attributes / properties will be available on instances of the class

  • hosts (list)
  • lines_read (int)
  • mtr_host (str)

Methods

get_hosts

def get_hosts(self)

Run traceroute for the mtr_host host and return the hosts found in the route

Returns

hosts (list<str>): list of hosts in the route to mtr_host


init

def init(self)

called after the plugin is initialized, plugin may define this for any other initialization code


parse_traceroute

def parse_traceroute(self, it)

parse traceroute output

Arguments

  • it: collection of lines to iterate through

Returns

hosts (list<str>): list of hosts in the traceroute result


parse_traceroute_line

def parse_traceroute_line(self, line)

parse host from verbose traceroute result format

Arguments

  • line (string type): line from traceroutei result output

Returns

host (str)


probe

def probe(self)

Gets a list of hosts via get_hosts and then runs fping against all of them to build mtr data

Returns

msg (dict)