probes::basevars.pm(3)

probes::basevars.pm3

Another base class for implementing smokeping probes

Usage

 *** Targets ***
 menu = Top
 title = Top Page
 + branch_1
 menu = First menu
 title = First title
 host = host1
 ++ PROBE_CONF
 # vars for host host1
 var1 = foo
 var2 = bar
 ++ branch_1_2
 menu = Second menu
 title = Second title
 host = host2
 +++ PROBE_CONF
 # vars for host host2
 # var1 and var2 are propagated from above, override var2
 var2 = fii
 + branch_2
 # var1 and var2 are undefined here

Overview

Like probes::base, but supports host-specific variables for the probe.

Overview

Provides the method `targets' that returns a list of hashes. The hashes contain the entries:

addr

The address of the target.

vars

A hash containing variables defined in the corresponding `PROBE_CONF' config section.

tree

The unique index that `probe::base' uses for targets.

There's also the method 'vars' that returns the abovementioned hash corresponding to the 'tree' index parameter.

Author

Niko Tyni <[email protected]>

Bugs

Uses `probes::base' internals too much to be a derived class, but I didn't want to touch the base class directly.

From smokeping 1.38-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.